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  
26  /**
27   * <a href="UserTrackerPersistence.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       UserTrackerPersistenceImpl
36   * @see       UserTrackerUtil
37   * @generated
38   */
39  public interface UserTrackerPersistence extends BasePersistence {
40      public void cacheResult(com.liferay.portal.model.UserTracker userTracker);
41  
42      public void cacheResult(
43          java.util.List<com.liferay.portal.model.UserTracker> userTrackers);
44  
45      public void clearCache();
46  
47      public com.liferay.portal.model.UserTracker create(long userTrackerId);
48  
49      public com.liferay.portal.model.UserTracker remove(long userTrackerId)
50          throws com.liferay.portal.NoSuchUserTrackerException,
51              com.liferay.portal.SystemException;
52  
53      public com.liferay.portal.model.UserTracker remove(
54          com.liferay.portal.model.UserTracker userTracker)
55          throws com.liferay.portal.SystemException;
56  
57      /**
58       * @deprecated Use {@link #update(UserTracker, boolean merge)}.
59       */
60      public com.liferay.portal.model.UserTracker update(
61          com.liferay.portal.model.UserTracker userTracker)
62          throws com.liferay.portal.SystemException;
63  
64      /**
65       * Add, update, or merge, the entity. This method also calls the model
66       * listeners to trigger the proper events associated with adding, deleting,
67       * or updating an entity.
68       *
69       * @param  userTracker the entity to add, update, or merge
70       * @param  merge boolean value for whether to merge the entity. The default
71       *         value is false. Setting merge to true is more expensive and
72       *         should only be true when userTracker is transient. See
73       *         LEP-5473 for a detailed discussion of this method.
74       * @return the entity that was added, updated, or merged
75       */
76      public com.liferay.portal.model.UserTracker update(
77          com.liferay.portal.model.UserTracker userTracker, boolean merge)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portal.model.UserTracker updateImpl(
81          com.liferay.portal.model.UserTracker userTracker, boolean merge)
82          throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portal.model.UserTracker findByPrimaryKey(
85          long userTrackerId)
86          throws com.liferay.portal.NoSuchUserTrackerException,
87              com.liferay.portal.SystemException;
88  
89      public com.liferay.portal.model.UserTracker fetchByPrimaryKey(
90          long userTrackerId) throws com.liferay.portal.SystemException;
91  
92      public java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
93          long companyId) throws com.liferay.portal.SystemException;
94  
95      public java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
96          long companyId, int start, int end)
97          throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
100         long companyId, int start, int end,
101         com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portal.model.UserTracker findByCompanyId_First(
105         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.NoSuchUserTrackerException,
107             com.liferay.portal.SystemException;
108 
109     public com.liferay.portal.model.UserTracker findByCompanyId_Last(
110         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.NoSuchUserTrackerException,
112             com.liferay.portal.SystemException;
113 
114     public com.liferay.portal.model.UserTracker[] findByCompanyId_PrevAndNext(
115         long userTrackerId, long companyId,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.NoSuchUserTrackerException,
118             com.liferay.portal.SystemException;
119 
120     public java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
121         long userId) throws com.liferay.portal.SystemException;
122 
123     public java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
124         long userId, int start, int end)
125         throws com.liferay.portal.SystemException;
126 
127     public java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
128         long userId, int start, int end,
129         com.liferay.portal.kernel.util.OrderByComparator obc)
130         throws com.liferay.portal.SystemException;
131 
132     public com.liferay.portal.model.UserTracker findByUserId_First(
133         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.NoSuchUserTrackerException,
135             com.liferay.portal.SystemException;
136 
137     public com.liferay.portal.model.UserTracker findByUserId_Last(long userId,
138         com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.NoSuchUserTrackerException,
140             com.liferay.portal.SystemException;
141 
142     public com.liferay.portal.model.UserTracker[] findByUserId_PrevAndNext(
143         long userTrackerId, long userId,
144         com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.NoSuchUserTrackerException,
146             com.liferay.portal.SystemException;
147 
148     public java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
149         java.lang.String sessionId) throws com.liferay.portal.SystemException;
150 
151     public java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
152         java.lang.String sessionId, int start, int end)
153         throws com.liferay.portal.SystemException;
154 
155     public java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
156         java.lang.String sessionId, int start, int end,
157         com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException;
159 
160     public com.liferay.portal.model.UserTracker findBySessionId_First(
161         java.lang.String sessionId,
162         com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.NoSuchUserTrackerException,
164             com.liferay.portal.SystemException;
165 
166     public com.liferay.portal.model.UserTracker findBySessionId_Last(
167         java.lang.String sessionId,
168         com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.NoSuchUserTrackerException,
170             com.liferay.portal.SystemException;
171 
172     public com.liferay.portal.model.UserTracker[] findBySessionId_PrevAndNext(
173         long userTrackerId, java.lang.String sessionId,
174         com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.NoSuchUserTrackerException,
176             com.liferay.portal.SystemException;
177 
178     public java.util.List<Object> findWithDynamicQuery(
179         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
180         throws com.liferay.portal.SystemException;
181 
182     public java.util.List<Object> findWithDynamicQuery(
183         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
184         int end) throws com.liferay.portal.SystemException;
185 
186     public java.util.List<com.liferay.portal.model.UserTracker> findAll()
187         throws com.liferay.portal.SystemException;
188 
189     public java.util.List<com.liferay.portal.model.UserTracker> findAll(
190         int start, int end) throws com.liferay.portal.SystemException;
191 
192     public java.util.List<com.liferay.portal.model.UserTracker> findAll(
193         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
194         throws com.liferay.portal.SystemException;
195 
196     public void removeByCompanyId(long companyId)
197         throws com.liferay.portal.SystemException;
198 
199     public void removeByUserId(long userId)
200         throws com.liferay.portal.SystemException;
201 
202     public void removeBySessionId(java.lang.String sessionId)
203         throws com.liferay.portal.SystemException;
204 
205     public void removeAll() throws com.liferay.portal.SystemException;
206 
207     public int countByCompanyId(long companyId)
208         throws com.liferay.portal.SystemException;
209 
210     public int countByUserId(long userId)
211         throws com.liferay.portal.SystemException;
212 
213     public int countBySessionId(java.lang.String sessionId)
214         throws com.liferay.portal.SystemException;
215 
216     public int countAll() throws com.liferay.portal.SystemException;
217 }