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