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.portlet.blogs.service.persistence;
022:
023: /**
024: * <a href="BlogsStatsUserPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface BlogsStatsUserPersistence {
030: public com.liferay.portlet.blogs.model.BlogsStatsUser create(
031: long statsUserId);
032:
033: public com.liferay.portlet.blogs.model.BlogsStatsUser remove(
034: long statsUserId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portlet.blogs.NoSuchStatsUserException;
037:
038: public com.liferay.portlet.blogs.model.BlogsStatsUser remove(
039: com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portlet.blogs.model.BlogsStatsUser update(
043: com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portlet.blogs.model.BlogsStatsUser update(
047: com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portlet.blogs.model.BlogsStatsUser updateImpl(
051: com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portlet.blogs.model.BlogsStatsUser findByPrimaryKey(
055: long statsUserId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portlet.blogs.NoSuchStatsUserException;
058:
059: public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByPrimaryKey(
060: long statsUserId) throws com.liferay.portal.SystemException;
061:
062: public java.util.List findByGroupId(long groupId)
063: throws com.liferay.portal.SystemException;
064:
065: public java.util.List findByGroupId(long groupId, int begin, int end)
066: throws com.liferay.portal.SystemException;
067:
068: public java.util.List findByGroupId(long groupId, int begin,
069: int end,
070: com.liferay.portal.kernel.util.OrderByComparator obc)
071: throws com.liferay.portal.SystemException;
072:
073: public com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_First(
074: long groupId,
075: com.liferay.portal.kernel.util.OrderByComparator obc)
076: throws com.liferay.portal.SystemException,
077: com.liferay.portlet.blogs.NoSuchStatsUserException;
078:
079: public com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last(
080: long groupId,
081: com.liferay.portal.kernel.util.OrderByComparator obc)
082: throws com.liferay.portal.SystemException,
083: com.liferay.portlet.blogs.NoSuchStatsUserException;
084:
085: public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByGroupId_PrevAndNext(
086: long statsUserId, long groupId,
087: com.liferay.portal.kernel.util.OrderByComparator obc)
088: throws com.liferay.portal.SystemException,
089: com.liferay.portlet.blogs.NoSuchStatsUserException;
090:
091: public java.util.List findByUserId(long userId)
092: throws com.liferay.portal.SystemException;
093:
094: public java.util.List findByUserId(long userId, int begin, int end)
095: throws com.liferay.portal.SystemException;
096:
097: public java.util.List findByUserId(long userId, int begin, int end,
098: com.liferay.portal.kernel.util.OrderByComparator obc)
099: throws com.liferay.portal.SystemException;
100:
101: public com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_First(
102: long userId,
103: com.liferay.portal.kernel.util.OrderByComparator obc)
104: throws com.liferay.portal.SystemException,
105: com.liferay.portlet.blogs.NoSuchStatsUserException;
106:
107: public com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_Last(
108: long userId,
109: com.liferay.portal.kernel.util.OrderByComparator obc)
110: throws com.liferay.portal.SystemException,
111: com.liferay.portlet.blogs.NoSuchStatsUserException;
112:
113: public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByUserId_PrevAndNext(
114: long statsUserId, long userId,
115: com.liferay.portal.kernel.util.OrderByComparator obc)
116: throws com.liferay.portal.SystemException,
117: com.liferay.portlet.blogs.NoSuchStatsUserException;
118:
119: public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_U(
120: long groupId, long userId)
121: throws com.liferay.portal.SystemException,
122: com.liferay.portlet.blogs.NoSuchStatsUserException;
123:
124: public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
125: long groupId, long userId)
126: throws com.liferay.portal.SystemException;
127:
128: public java.util.List findByG_E(long groupId, int entryCount)
129: throws com.liferay.portal.SystemException;
130:
131: public java.util.List findByG_E(long groupId, int entryCount,
132: int begin, int end)
133: throws com.liferay.portal.SystemException;
134:
135: public java.util.List findByG_E(long groupId, int entryCount,
136: int begin, int end,
137: com.liferay.portal.kernel.util.OrderByComparator obc)
138: throws com.liferay.portal.SystemException;
139:
140: public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_First(
141: long groupId, int entryCount,
142: com.liferay.portal.kernel.util.OrderByComparator obc)
143: throws com.liferay.portal.SystemException,
144: com.liferay.portlet.blogs.NoSuchStatsUserException;
145:
146: public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_Last(
147: long groupId, int entryCount,
148: com.liferay.portal.kernel.util.OrderByComparator obc)
149: throws com.liferay.portal.SystemException,
150: com.liferay.portlet.blogs.NoSuchStatsUserException;
151:
152: public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByG_E_PrevAndNext(
153: long statsUserId, long groupId, int entryCount,
154: com.liferay.portal.kernel.util.OrderByComparator obc)
155: throws com.liferay.portal.SystemException,
156: com.liferay.portlet.blogs.NoSuchStatsUserException;
157:
158: public java.util.List findByC_E(long companyId, int entryCount)
159: throws com.liferay.portal.SystemException;
160:
161: public java.util.List findByC_E(long companyId, int entryCount,
162: int begin, int end)
163: throws com.liferay.portal.SystemException;
164:
165: public java.util.List findByC_E(long companyId, int entryCount,
166: int begin, int end,
167: com.liferay.portal.kernel.util.OrderByComparator obc)
168: throws com.liferay.portal.SystemException;
169:
170: public com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_First(
171: long companyId, int entryCount,
172: com.liferay.portal.kernel.util.OrderByComparator obc)
173: throws com.liferay.portal.SystemException,
174: com.liferay.portlet.blogs.NoSuchStatsUserException;
175:
176: public com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_Last(
177: long companyId, int entryCount,
178: com.liferay.portal.kernel.util.OrderByComparator obc)
179: throws com.liferay.portal.SystemException,
180: com.liferay.portlet.blogs.NoSuchStatsUserException;
181:
182: public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByC_E_PrevAndNext(
183: long statsUserId, long companyId, int entryCount,
184: com.liferay.portal.kernel.util.OrderByComparator obc)
185: throws com.liferay.portal.SystemException,
186: com.liferay.portlet.blogs.NoSuchStatsUserException;
187:
188: public java.util.List findWithDynamicQuery(
189: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
190: throws com.liferay.portal.SystemException;
191:
192: public java.util.List findWithDynamicQuery(
193: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
194: int begin, int end)
195: throws com.liferay.portal.SystemException;
196:
197: public java.util.List findAll()
198: throws com.liferay.portal.SystemException;
199:
200: public java.util.List findAll(int begin, int end)
201: throws com.liferay.portal.SystemException;
202:
203: public java.util.List findAll(int begin, int end,
204: com.liferay.portal.kernel.util.OrderByComparator obc)
205: throws com.liferay.portal.SystemException;
206:
207: public void removeByGroupId(long groupId)
208: throws com.liferay.portal.SystemException;
209:
210: public void removeByUserId(long userId)
211: throws com.liferay.portal.SystemException;
212:
213: public void removeByG_U(long groupId, long userId)
214: throws com.liferay.portal.SystemException,
215: com.liferay.portlet.blogs.NoSuchStatsUserException;
216:
217: public void removeByG_E(long groupId, int entryCount)
218: throws com.liferay.portal.SystemException;
219:
220: public void removeByC_E(long companyId, int entryCount)
221: throws com.liferay.portal.SystemException;
222:
223: public void removeAll() throws com.liferay.portal.SystemException;
224:
225: public int countByGroupId(long groupId)
226: throws com.liferay.portal.SystemException;
227:
228: public int countByUserId(long userId)
229: throws com.liferay.portal.SystemException;
230:
231: public int countByG_U(long groupId, long userId)
232: throws com.liferay.portal.SystemException;
233:
234: public int countByG_E(long groupId, int entryCount)
235: throws com.liferay.portal.SystemException;
236:
237: public int countByC_E(long companyId, int entryCount)
238: throws com.liferay.portal.SystemException;
239:
240: public int countAll() throws com.liferay.portal.SystemException;
241: }
|