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.messageboards.service.persistence;
022:
023: /**
024: * <a href="MBStatsUserPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface MBStatsUserPersistence {
030: public com.liferay.portlet.messageboards.model.MBStatsUser create(
031: long statsUserId);
032:
033: public com.liferay.portlet.messageboards.model.MBStatsUser remove(
034: long statsUserId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portlet.messageboards.NoSuchStatsUserException;
037:
038: public com.liferay.portlet.messageboards.model.MBStatsUser remove(
039: com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portlet.messageboards.model.MBStatsUser update(
043: com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portlet.messageboards.model.MBStatsUser update(
047: com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portlet.messageboards.model.MBStatsUser updateImpl(
051: com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portlet.messageboards.model.MBStatsUser findByPrimaryKey(
055: long statsUserId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portlet.messageboards.NoSuchStatsUserException;
058:
059: public com.liferay.portlet.messageboards.model.MBStatsUser 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.messageboards.model.MBStatsUser findByGroupId_First(
074: long groupId,
075: com.liferay.portal.kernel.util.OrderByComparator obc)
076: throws com.liferay.portal.SystemException,
077: com.liferay.portlet.messageboards.NoSuchStatsUserException;
078:
079: public com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_Last(
080: long groupId,
081: com.liferay.portal.kernel.util.OrderByComparator obc)
082: throws com.liferay.portal.SystemException,
083: com.liferay.portlet.messageboards.NoSuchStatsUserException;
084:
085: public com.liferay.portlet.messageboards.model.MBStatsUser[] 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.messageboards.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.messageboards.model.MBStatsUser findByUserId_First(
102: long userId,
103: com.liferay.portal.kernel.util.OrderByComparator obc)
104: throws com.liferay.portal.SystemException,
105: com.liferay.portlet.messageboards.NoSuchStatsUserException;
106:
107: public com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_Last(
108: long userId,
109: com.liferay.portal.kernel.util.OrderByComparator obc)
110: throws com.liferay.portal.SystemException,
111: com.liferay.portlet.messageboards.NoSuchStatsUserException;
112:
113: public com.liferay.portlet.messageboards.model.MBStatsUser[] 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.messageboards.NoSuchStatsUserException;
118:
119: public com.liferay.portlet.messageboards.model.MBStatsUser findByG_U(
120: long groupId, long userId)
121: throws com.liferay.portal.SystemException,
122: com.liferay.portlet.messageboards.NoSuchStatsUserException;
123:
124: public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
125: long groupId, long userId)
126: throws com.liferay.portal.SystemException;
127:
128: public java.util.List findByG_M(long groupId, int messageCount)
129: throws com.liferay.portal.SystemException;
130:
131: public java.util.List findByG_M(long groupId, int messageCount,
132: int begin, int end)
133: throws com.liferay.portal.SystemException;
134:
135: public java.util.List findByG_M(long groupId, int messageCount,
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.messageboards.model.MBStatsUser findByG_M_First(
141: long groupId, int messageCount,
142: com.liferay.portal.kernel.util.OrderByComparator obc)
143: throws com.liferay.portal.SystemException,
144: com.liferay.portlet.messageboards.NoSuchStatsUserException;
145:
146: public com.liferay.portlet.messageboards.model.MBStatsUser findByG_M_Last(
147: long groupId, int messageCount,
148: com.liferay.portal.kernel.util.OrderByComparator obc)
149: throws com.liferay.portal.SystemException,
150: com.liferay.portlet.messageboards.NoSuchStatsUserException;
151:
152: public com.liferay.portlet.messageboards.model.MBStatsUser[] findByG_M_PrevAndNext(
153: long statsUserId, long groupId, int messageCount,
154: com.liferay.portal.kernel.util.OrderByComparator obc)
155: throws com.liferay.portal.SystemException,
156: com.liferay.portlet.messageboards.NoSuchStatsUserException;
157:
158: public java.util.List findWithDynamicQuery(
159: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
160: throws com.liferay.portal.SystemException;
161:
162: public java.util.List findWithDynamicQuery(
163: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
164: int begin, int end)
165: throws com.liferay.portal.SystemException;
166:
167: public java.util.List findAll()
168: throws com.liferay.portal.SystemException;
169:
170: public java.util.List findAll(int begin, int end)
171: throws com.liferay.portal.SystemException;
172:
173: public java.util.List findAll(int begin, int end,
174: com.liferay.portal.kernel.util.OrderByComparator obc)
175: throws com.liferay.portal.SystemException;
176:
177: public void removeByGroupId(long groupId)
178: throws com.liferay.portal.SystemException;
179:
180: public void removeByUserId(long userId)
181: throws com.liferay.portal.SystemException;
182:
183: public void removeByG_U(long groupId, long userId)
184: throws com.liferay.portal.SystemException,
185: com.liferay.portlet.messageboards.NoSuchStatsUserException;
186:
187: public void removeByG_M(long groupId, int messageCount)
188: throws com.liferay.portal.SystemException;
189:
190: public void removeAll() throws com.liferay.portal.SystemException;
191:
192: public int countByGroupId(long groupId)
193: throws com.liferay.portal.SystemException;
194:
195: public int countByUserId(long userId)
196: throws com.liferay.portal.SystemException;
197:
198: public int countByG_U(long groupId, long userId)
199: throws com.liferay.portal.SystemException;
200:
201: public int countByG_M(long groupId, int messageCount)
202: throws com.liferay.portal.SystemException;
203:
204: public int countAll() throws com.liferay.portal.SystemException;
205: }
|