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="MBBanPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface MBBanPersistence {
030: public com.liferay.portlet.messageboards.model.MBBan create(
031: long banId);
032:
033: public com.liferay.portlet.messageboards.model.MBBan remove(
034: long banId) throws com.liferay.portal.SystemException,
035: com.liferay.portlet.messageboards.NoSuchBanException;
036:
037: public com.liferay.portlet.messageboards.model.MBBan remove(
038: com.liferay.portlet.messageboards.model.MBBan mbBan)
039: throws com.liferay.portal.SystemException;
040:
041: public com.liferay.portlet.messageboards.model.MBBan update(
042: com.liferay.portlet.messageboards.model.MBBan mbBan)
043: throws com.liferay.portal.SystemException;
044:
045: public com.liferay.portlet.messageboards.model.MBBan update(
046: com.liferay.portlet.messageboards.model.MBBan mbBan,
047: boolean merge) throws com.liferay.portal.SystemException;
048:
049: public com.liferay.portlet.messageboards.model.MBBan updateImpl(
050: com.liferay.portlet.messageboards.model.MBBan mbBan,
051: boolean merge) throws com.liferay.portal.SystemException;
052:
053: public com.liferay.portlet.messageboards.model.MBBan findByPrimaryKey(
054: long banId) throws com.liferay.portal.SystemException,
055: com.liferay.portlet.messageboards.NoSuchBanException;
056:
057: public com.liferay.portlet.messageboards.model.MBBan fetchByPrimaryKey(
058: long banId) throws com.liferay.portal.SystemException;
059:
060: public java.util.List findByGroupId(long groupId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByGroupId(long groupId, int begin, int end)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByGroupId(long groupId, int begin,
067: int end,
068: com.liferay.portal.kernel.util.OrderByComparator obc)
069: throws com.liferay.portal.SystemException;
070:
071: public com.liferay.portlet.messageboards.model.MBBan findByGroupId_First(
072: long groupId,
073: com.liferay.portal.kernel.util.OrderByComparator obc)
074: throws com.liferay.portal.SystemException,
075: com.liferay.portlet.messageboards.NoSuchBanException;
076:
077: public com.liferay.portlet.messageboards.model.MBBan findByGroupId_Last(
078: long groupId,
079: com.liferay.portal.kernel.util.OrderByComparator obc)
080: throws com.liferay.portal.SystemException,
081: com.liferay.portlet.messageboards.NoSuchBanException;
082:
083: public com.liferay.portlet.messageboards.model.MBBan[] findByGroupId_PrevAndNext(
084: long banId, long groupId,
085: com.liferay.portal.kernel.util.OrderByComparator obc)
086: throws com.liferay.portal.SystemException,
087: com.liferay.portlet.messageboards.NoSuchBanException;
088:
089: public java.util.List findByUserId(long userId)
090: throws com.liferay.portal.SystemException;
091:
092: public java.util.List findByUserId(long userId, int begin, int end)
093: throws com.liferay.portal.SystemException;
094:
095: public java.util.List findByUserId(long userId, int begin, int end,
096: com.liferay.portal.kernel.util.OrderByComparator obc)
097: throws com.liferay.portal.SystemException;
098:
099: public com.liferay.portlet.messageboards.model.MBBan findByUserId_First(
100: long userId,
101: com.liferay.portal.kernel.util.OrderByComparator obc)
102: throws com.liferay.portal.SystemException,
103: com.liferay.portlet.messageboards.NoSuchBanException;
104:
105: public com.liferay.portlet.messageboards.model.MBBan findByUserId_Last(
106: long userId,
107: com.liferay.portal.kernel.util.OrderByComparator obc)
108: throws com.liferay.portal.SystemException,
109: com.liferay.portlet.messageboards.NoSuchBanException;
110:
111: public com.liferay.portlet.messageboards.model.MBBan[] findByUserId_PrevAndNext(
112: long banId, long userId,
113: com.liferay.portal.kernel.util.OrderByComparator obc)
114: throws com.liferay.portal.SystemException,
115: com.liferay.portlet.messageboards.NoSuchBanException;
116:
117: public java.util.List findByBanUserId(long banUserId)
118: throws com.liferay.portal.SystemException;
119:
120: public java.util.List findByBanUserId(long banUserId, int begin,
121: int end) throws com.liferay.portal.SystemException;
122:
123: public java.util.List findByBanUserId(long banUserId, int begin,
124: int end,
125: com.liferay.portal.kernel.util.OrderByComparator obc)
126: throws com.liferay.portal.SystemException;
127:
128: public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_First(
129: long banUserId,
130: com.liferay.portal.kernel.util.OrderByComparator obc)
131: throws com.liferay.portal.SystemException,
132: com.liferay.portlet.messageboards.NoSuchBanException;
133:
134: public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_Last(
135: long banUserId,
136: com.liferay.portal.kernel.util.OrderByComparator obc)
137: throws com.liferay.portal.SystemException,
138: com.liferay.portlet.messageboards.NoSuchBanException;
139:
140: public com.liferay.portlet.messageboards.model.MBBan[] findByBanUserId_PrevAndNext(
141: long banId, long banUserId,
142: com.liferay.portal.kernel.util.OrderByComparator obc)
143: throws com.liferay.portal.SystemException,
144: com.liferay.portlet.messageboards.NoSuchBanException;
145:
146: public com.liferay.portlet.messageboards.model.MBBan findByG_B(
147: long groupId, long banUserId)
148: throws com.liferay.portal.SystemException,
149: com.liferay.portlet.messageboards.NoSuchBanException;
150:
151: public com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
152: long groupId, long banUserId)
153: throws com.liferay.portal.SystemException;
154:
155: public java.util.List findWithDynamicQuery(
156: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
157: throws com.liferay.portal.SystemException;
158:
159: public java.util.List findWithDynamicQuery(
160: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
161: int begin, int end)
162: throws com.liferay.portal.SystemException;
163:
164: public java.util.List findAll()
165: throws com.liferay.portal.SystemException;
166:
167: public java.util.List findAll(int begin, int end)
168: throws com.liferay.portal.SystemException;
169:
170: public java.util.List findAll(int begin, int end,
171: com.liferay.portal.kernel.util.OrderByComparator obc)
172: throws com.liferay.portal.SystemException;
173:
174: public void removeByGroupId(long groupId)
175: throws com.liferay.portal.SystemException;
176:
177: public void removeByUserId(long userId)
178: throws com.liferay.portal.SystemException;
179:
180: public void removeByBanUserId(long banUserId)
181: throws com.liferay.portal.SystemException;
182:
183: public void removeByG_B(long groupId, long banUserId)
184: throws com.liferay.portal.SystemException,
185: com.liferay.portlet.messageboards.NoSuchBanException;
186:
187: public void removeAll() throws com.liferay.portal.SystemException;
188:
189: public int countByGroupId(long groupId)
190: throws com.liferay.portal.SystemException;
191:
192: public int countByUserId(long userId)
193: throws com.liferay.portal.SystemException;
194:
195: public int countByBanUserId(long banUserId)
196: throws com.liferay.portal.SystemException;
197:
198: public int countByG_B(long groupId, long banUserId)
199: throws com.liferay.portal.SystemException;
200:
201: public int countAll() throws com.liferay.portal.SystemException;
202: }
|