001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service.persistence;
022:
023: /**
024: * <a href="ActivityTrackerPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface ActivityTrackerPersistence {
030: public com.liferay.portal.model.ActivityTracker create(
031: long activityTrackerId);
032:
033: public com.liferay.portal.model.ActivityTracker remove(
034: long activityTrackerId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portal.NoSuchActivityTrackerException;
037:
038: public com.liferay.portal.model.ActivityTracker remove(
039: com.liferay.portal.model.ActivityTracker activityTracker)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portal.model.ActivityTracker update(
043: com.liferay.portal.model.ActivityTracker activityTracker)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portal.model.ActivityTracker update(
047: com.liferay.portal.model.ActivityTracker activityTracker,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portal.model.ActivityTracker updateImpl(
051: com.liferay.portal.model.ActivityTracker activityTracker,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portal.model.ActivityTracker findByPrimaryKey(
055: long activityTrackerId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portal.NoSuchActivityTrackerException;
058:
059: public com.liferay.portal.model.ActivityTracker fetchByPrimaryKey(
060: long activityTrackerId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByGroupId(long groupId)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByGroupId(long groupId, int begin, int end)
067: throws com.liferay.portal.SystemException;
068:
069: public java.util.List findByGroupId(long groupId, int begin,
070: int end,
071: com.liferay.portal.kernel.util.OrderByComparator obc)
072: throws com.liferay.portal.SystemException;
073:
074: public com.liferay.portal.model.ActivityTracker findByGroupId_First(
075: long groupId,
076: com.liferay.portal.kernel.util.OrderByComparator obc)
077: throws com.liferay.portal.SystemException,
078: com.liferay.portal.NoSuchActivityTrackerException;
079:
080: public com.liferay.portal.model.ActivityTracker findByGroupId_Last(
081: long groupId,
082: com.liferay.portal.kernel.util.OrderByComparator obc)
083: throws com.liferay.portal.SystemException,
084: com.liferay.portal.NoSuchActivityTrackerException;
085:
086: public com.liferay.portal.model.ActivityTracker[] findByGroupId_PrevAndNext(
087: long activityTrackerId, long groupId,
088: com.liferay.portal.kernel.util.OrderByComparator obc)
089: throws com.liferay.portal.SystemException,
090: com.liferay.portal.NoSuchActivityTrackerException;
091:
092: public java.util.List findByCompanyId(long companyId)
093: throws com.liferay.portal.SystemException;
094:
095: public java.util.List findByCompanyId(long companyId, int begin,
096: int end) throws com.liferay.portal.SystemException;
097:
098: public java.util.List findByCompanyId(long companyId, int begin,
099: int end,
100: com.liferay.portal.kernel.util.OrderByComparator obc)
101: throws com.liferay.portal.SystemException;
102:
103: public com.liferay.portal.model.ActivityTracker findByCompanyId_First(
104: long companyId,
105: com.liferay.portal.kernel.util.OrderByComparator obc)
106: throws com.liferay.portal.SystemException,
107: com.liferay.portal.NoSuchActivityTrackerException;
108:
109: public com.liferay.portal.model.ActivityTracker findByCompanyId_Last(
110: long companyId,
111: com.liferay.portal.kernel.util.OrderByComparator obc)
112: throws com.liferay.portal.SystemException,
113: com.liferay.portal.NoSuchActivityTrackerException;
114:
115: public com.liferay.portal.model.ActivityTracker[] findByCompanyId_PrevAndNext(
116: long activityTrackerId, long companyId,
117: com.liferay.portal.kernel.util.OrderByComparator obc)
118: throws com.liferay.portal.SystemException,
119: com.liferay.portal.NoSuchActivityTrackerException;
120:
121: public java.util.List findByUserId(long userId)
122: throws com.liferay.portal.SystemException;
123:
124: public java.util.List findByUserId(long userId, int begin, int end)
125: throws com.liferay.portal.SystemException;
126:
127: public java.util.List findByUserId(long userId, int begin, int end,
128: com.liferay.portal.kernel.util.OrderByComparator obc)
129: throws com.liferay.portal.SystemException;
130:
131: public com.liferay.portal.model.ActivityTracker findByUserId_First(
132: long userId,
133: com.liferay.portal.kernel.util.OrderByComparator obc)
134: throws com.liferay.portal.SystemException,
135: com.liferay.portal.NoSuchActivityTrackerException;
136:
137: public com.liferay.portal.model.ActivityTracker findByUserId_Last(
138: long userId,
139: com.liferay.portal.kernel.util.OrderByComparator obc)
140: throws com.liferay.portal.SystemException,
141: com.liferay.portal.NoSuchActivityTrackerException;
142:
143: public com.liferay.portal.model.ActivityTracker[] findByUserId_PrevAndNext(
144: long activityTrackerId, long userId,
145: com.liferay.portal.kernel.util.OrderByComparator obc)
146: throws com.liferay.portal.SystemException,
147: com.liferay.portal.NoSuchActivityTrackerException;
148:
149: public java.util.List findByReceiverUserId(long receiverUserId)
150: throws com.liferay.portal.SystemException;
151:
152: public java.util.List findByReceiverUserId(long receiverUserId,
153: int begin, int end)
154: throws com.liferay.portal.SystemException;
155:
156: public java.util.List findByReceiverUserId(long receiverUserId,
157: int begin, int end,
158: com.liferay.portal.kernel.util.OrderByComparator obc)
159: throws com.liferay.portal.SystemException;
160:
161: public com.liferay.portal.model.ActivityTracker findByReceiverUserId_First(
162: long receiverUserId,
163: com.liferay.portal.kernel.util.OrderByComparator obc)
164: throws com.liferay.portal.SystemException,
165: com.liferay.portal.NoSuchActivityTrackerException;
166:
167: public com.liferay.portal.model.ActivityTracker findByReceiverUserId_Last(
168: long receiverUserId,
169: com.liferay.portal.kernel.util.OrderByComparator obc)
170: throws com.liferay.portal.SystemException,
171: com.liferay.portal.NoSuchActivityTrackerException;
172:
173: public com.liferay.portal.model.ActivityTracker[] findByReceiverUserId_PrevAndNext(
174: long activityTrackerId, long receiverUserId,
175: com.liferay.portal.kernel.util.OrderByComparator obc)
176: throws com.liferay.portal.SystemException,
177: com.liferay.portal.NoSuchActivityTrackerException;
178:
179: public java.util.List findByC_C(long classNameId, long classPK)
180: throws com.liferay.portal.SystemException;
181:
182: public java.util.List findByC_C(long classNameId, long classPK,
183: int begin, int end)
184: throws com.liferay.portal.SystemException;
185:
186: public java.util.List findByC_C(long classNameId, long classPK,
187: int begin, int end,
188: com.liferay.portal.kernel.util.OrderByComparator obc)
189: throws com.liferay.portal.SystemException;
190:
191: public com.liferay.portal.model.ActivityTracker findByC_C_First(
192: long classNameId, long classPK,
193: com.liferay.portal.kernel.util.OrderByComparator obc)
194: throws com.liferay.portal.SystemException,
195: com.liferay.portal.NoSuchActivityTrackerException;
196:
197: public com.liferay.portal.model.ActivityTracker findByC_C_Last(
198: long classNameId, long classPK,
199: com.liferay.portal.kernel.util.OrderByComparator obc)
200: throws com.liferay.portal.SystemException,
201: com.liferay.portal.NoSuchActivityTrackerException;
202:
203: public com.liferay.portal.model.ActivityTracker[] findByC_C_PrevAndNext(
204: long activityTrackerId, long classNameId, long classPK,
205: com.liferay.portal.kernel.util.OrderByComparator obc)
206: throws com.liferay.portal.SystemException,
207: com.liferay.portal.NoSuchActivityTrackerException;
208:
209: public java.util.List findWithDynamicQuery(
210: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
211: throws com.liferay.portal.SystemException;
212:
213: public java.util.List findWithDynamicQuery(
214: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
215: int begin, int end)
216: throws com.liferay.portal.SystemException;
217:
218: public java.util.List findAll()
219: throws com.liferay.portal.SystemException;
220:
221: public java.util.List findAll(int begin, int end)
222: throws com.liferay.portal.SystemException;
223:
224: public java.util.List findAll(int begin, int end,
225: com.liferay.portal.kernel.util.OrderByComparator obc)
226: throws com.liferay.portal.SystemException;
227:
228: public void removeByGroupId(long groupId)
229: throws com.liferay.portal.SystemException;
230:
231: public void removeByCompanyId(long companyId)
232: throws com.liferay.portal.SystemException;
233:
234: public void removeByUserId(long userId)
235: throws com.liferay.portal.SystemException;
236:
237: public void removeByReceiverUserId(long receiverUserId)
238: throws com.liferay.portal.SystemException;
239:
240: public void removeByC_C(long classNameId, long classPK)
241: throws com.liferay.portal.SystemException;
242:
243: public void removeAll() throws com.liferay.portal.SystemException;
244:
245: public int countByGroupId(long groupId)
246: throws com.liferay.portal.SystemException;
247:
248: public int countByCompanyId(long companyId)
249: throws com.liferay.portal.SystemException;
250:
251: public int countByUserId(long userId)
252: throws com.liferay.portal.SystemException;
253:
254: public int countByReceiverUserId(long receiverUserId)
255: throws com.liferay.portal.SystemException;
256:
257: public int countByC_C(long classNameId, long classPK)
258: throws com.liferay.portal.SystemException;
259:
260: public int countAll() throws com.liferay.portal.SystemException;
261: }
|