1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  import com.liferay.portal.model.UserTracker;
26  
27  /**
28   * <a href="UserTrackerPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       UserTrackerPersistenceImpl
37   * @see       UserTrackerUtil
38   * @generated
39   */
40  public interface UserTrackerPersistence extends BasePersistence<UserTracker> {
41      public void cacheResult(com.liferay.portal.model.UserTracker userTracker);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portal.model.UserTracker> userTrackers);
45  
46      public com.liferay.portal.model.UserTracker create(long userTrackerId);
47  
48      public com.liferay.portal.model.UserTracker remove(long userTrackerId)
49          throws com.liferay.portal.NoSuchUserTrackerException,
50              com.liferay.portal.SystemException;
51  
52      /**
53       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
54       */
55      public com.liferay.portal.model.UserTracker update(
56          com.liferay.portal.model.UserTracker userTracker)
57          throws com.liferay.portal.SystemException;
58  
59      public com.liferay.portal.model.UserTracker updateImpl(
60          com.liferay.portal.model.UserTracker userTracker, boolean merge)
61          throws com.liferay.portal.SystemException;
62  
63      public com.liferay.portal.model.UserTracker findByPrimaryKey(
64          long userTrackerId)
65          throws com.liferay.portal.NoSuchUserTrackerException,
66              com.liferay.portal.SystemException;
67  
68      public com.liferay.portal.model.UserTracker fetchByPrimaryKey(
69          long userTrackerId) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
72          long companyId) throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
75          long companyId, int start, int end)
76          throws com.liferay.portal.SystemException;
77  
78      public java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
79          long companyId, int start, int end,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.SystemException;
82  
83      public com.liferay.portal.model.UserTracker findByCompanyId_First(
84          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.NoSuchUserTrackerException,
86              com.liferay.portal.SystemException;
87  
88      public com.liferay.portal.model.UserTracker findByCompanyId_Last(
89          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
90          throws com.liferay.portal.NoSuchUserTrackerException,
91              com.liferay.portal.SystemException;
92  
93      public com.liferay.portal.model.UserTracker[] findByCompanyId_PrevAndNext(
94          long userTrackerId, long companyId,
95          com.liferay.portal.kernel.util.OrderByComparator obc)
96          throws com.liferay.portal.NoSuchUserTrackerException,
97              com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
100         long userId) throws com.liferay.portal.SystemException;
101 
102     public java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
103         long userId, int start, int end)
104         throws com.liferay.portal.SystemException;
105 
106     public java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
107         long userId, int start, int end,
108         com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.SystemException;
110 
111     public com.liferay.portal.model.UserTracker findByUserId_First(
112         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.NoSuchUserTrackerException,
114             com.liferay.portal.SystemException;
115 
116     public com.liferay.portal.model.UserTracker findByUserId_Last(long userId,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.NoSuchUserTrackerException,
119             com.liferay.portal.SystemException;
120 
121     public com.liferay.portal.model.UserTracker[] findByUserId_PrevAndNext(
122         long userTrackerId, long userId,
123         com.liferay.portal.kernel.util.OrderByComparator obc)
124         throws com.liferay.portal.NoSuchUserTrackerException,
125             com.liferay.portal.SystemException;
126 
127     public java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
128         java.lang.String sessionId) throws com.liferay.portal.SystemException;
129 
130     public java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
131         java.lang.String sessionId, int start, int end)
132         throws com.liferay.portal.SystemException;
133 
134     public java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
135         java.lang.String sessionId, int start, int end,
136         com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException;
138 
139     public com.liferay.portal.model.UserTracker findBySessionId_First(
140         java.lang.String sessionId,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.NoSuchUserTrackerException,
143             com.liferay.portal.SystemException;
144 
145     public com.liferay.portal.model.UserTracker findBySessionId_Last(
146         java.lang.String sessionId,
147         com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.NoSuchUserTrackerException,
149             com.liferay.portal.SystemException;
150 
151     public com.liferay.portal.model.UserTracker[] findBySessionId_PrevAndNext(
152         long userTrackerId, java.lang.String sessionId,
153         com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.NoSuchUserTrackerException,
155             com.liferay.portal.SystemException;
156 
157     public java.util.List<com.liferay.portal.model.UserTracker> findAll()
158         throws com.liferay.portal.SystemException;
159 
160     public java.util.List<com.liferay.portal.model.UserTracker> findAll(
161         int start, int end) throws com.liferay.portal.SystemException;
162 
163     public java.util.List<com.liferay.portal.model.UserTracker> findAll(
164         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
165         throws com.liferay.portal.SystemException;
166 
167     public void removeByCompanyId(long companyId)
168         throws com.liferay.portal.SystemException;
169 
170     public void removeByUserId(long userId)
171         throws com.liferay.portal.SystemException;
172 
173     public void removeBySessionId(java.lang.String sessionId)
174         throws com.liferay.portal.SystemException;
175 
176     public void removeAll() throws com.liferay.portal.SystemException;
177 
178     public int countByCompanyId(long companyId)
179         throws com.liferay.portal.SystemException;
180 
181     public int countByUserId(long userId)
182         throws com.liferay.portal.SystemException;
183 
184     public int countBySessionId(java.lang.String sessionId)
185         throws com.liferay.portal.SystemException;
186 
187     public int countAll() throws com.liferay.portal.SystemException;
188 }