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="EmailAddressPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface EmailAddressPersistence {
030: public com.liferay.portal.model.EmailAddress create(
031: long emailAddressId);
032:
033: public com.liferay.portal.model.EmailAddress remove(
034: long emailAddressId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portal.NoSuchEmailAddressException;
037:
038: public com.liferay.portal.model.EmailAddress remove(
039: com.liferay.portal.model.EmailAddress emailAddress)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portal.model.EmailAddress update(
043: com.liferay.portal.model.EmailAddress emailAddress)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portal.model.EmailAddress update(
047: com.liferay.portal.model.EmailAddress emailAddress,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portal.model.EmailAddress updateImpl(
051: com.liferay.portal.model.EmailAddress emailAddress,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portal.model.EmailAddress findByPrimaryKey(
055: long emailAddressId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portal.NoSuchEmailAddressException;
058:
059: public com.liferay.portal.model.EmailAddress fetchByPrimaryKey(
060: long emailAddressId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByCompanyId(long companyId)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByCompanyId(long companyId, int begin,
067: int end) throws com.liferay.portal.SystemException;
068:
069: public java.util.List findByCompanyId(long companyId, 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.EmailAddress findByCompanyId_First(
075: long companyId,
076: com.liferay.portal.kernel.util.OrderByComparator obc)
077: throws com.liferay.portal.SystemException,
078: com.liferay.portal.NoSuchEmailAddressException;
079:
080: public com.liferay.portal.model.EmailAddress findByCompanyId_Last(
081: long companyId,
082: com.liferay.portal.kernel.util.OrderByComparator obc)
083: throws com.liferay.portal.SystemException,
084: com.liferay.portal.NoSuchEmailAddressException;
085:
086: public com.liferay.portal.model.EmailAddress[] findByCompanyId_PrevAndNext(
087: long emailAddressId, long companyId,
088: com.liferay.portal.kernel.util.OrderByComparator obc)
089: throws com.liferay.portal.SystemException,
090: com.liferay.portal.NoSuchEmailAddressException;
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.EmailAddress findByUserId_First(
103: long userId,
104: com.liferay.portal.kernel.util.OrderByComparator obc)
105: throws com.liferay.portal.SystemException,
106: com.liferay.portal.NoSuchEmailAddressException;
107:
108: public com.liferay.portal.model.EmailAddress findByUserId_Last(
109: long userId,
110: com.liferay.portal.kernel.util.OrderByComparator obc)
111: throws com.liferay.portal.SystemException,
112: com.liferay.portal.NoSuchEmailAddressException;
113:
114: public com.liferay.portal.model.EmailAddress[] findByUserId_PrevAndNext(
115: long emailAddressId, long userId,
116: com.liferay.portal.kernel.util.OrderByComparator obc)
117: throws com.liferay.portal.SystemException,
118: com.liferay.portal.NoSuchEmailAddressException;
119:
120: public java.util.List findByC_C(long companyId, long classNameId)
121: throws com.liferay.portal.SystemException;
122:
123: public java.util.List findByC_C(long companyId, long classNameId,
124: int begin, int end)
125: throws com.liferay.portal.SystemException;
126:
127: public java.util.List findByC_C(long companyId, long classNameId,
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.EmailAddress findByC_C_First(
133: long companyId, long classNameId,
134: com.liferay.portal.kernel.util.OrderByComparator obc)
135: throws com.liferay.portal.SystemException,
136: com.liferay.portal.NoSuchEmailAddressException;
137:
138: public com.liferay.portal.model.EmailAddress findByC_C_Last(
139: long companyId, long classNameId,
140: com.liferay.portal.kernel.util.OrderByComparator obc)
141: throws com.liferay.portal.SystemException,
142: com.liferay.portal.NoSuchEmailAddressException;
143:
144: public com.liferay.portal.model.EmailAddress[] findByC_C_PrevAndNext(
145: long emailAddressId, long companyId, long classNameId,
146: com.liferay.portal.kernel.util.OrderByComparator obc)
147: throws com.liferay.portal.SystemException,
148: com.liferay.portal.NoSuchEmailAddressException;
149:
150: public java.util.List findByC_C_C(long companyId, long classNameId,
151: long classPK) throws com.liferay.portal.SystemException;
152:
153: public java.util.List findByC_C_C(long companyId, long classNameId,
154: long classPK, int begin, int end)
155: throws com.liferay.portal.SystemException;
156:
157: public java.util.List findByC_C_C(long companyId, long classNameId,
158: long classPK, int begin, int end,
159: com.liferay.portal.kernel.util.OrderByComparator obc)
160: throws com.liferay.portal.SystemException;
161:
162: public com.liferay.portal.model.EmailAddress findByC_C_C_First(
163: long companyId, long classNameId, long classPK,
164: com.liferay.portal.kernel.util.OrderByComparator obc)
165: throws com.liferay.portal.SystemException,
166: com.liferay.portal.NoSuchEmailAddressException;
167:
168: public com.liferay.portal.model.EmailAddress findByC_C_C_Last(
169: long companyId, long classNameId, long classPK,
170: com.liferay.portal.kernel.util.OrderByComparator obc)
171: throws com.liferay.portal.SystemException,
172: com.liferay.portal.NoSuchEmailAddressException;
173:
174: public com.liferay.portal.model.EmailAddress[] findByC_C_C_PrevAndNext(
175: long emailAddressId, long companyId, long classNameId,
176: long classPK,
177: com.liferay.portal.kernel.util.OrderByComparator obc)
178: throws com.liferay.portal.SystemException,
179: com.liferay.portal.NoSuchEmailAddressException;
180:
181: public java.util.List findByC_C_C_P(long companyId,
182: long classNameId, long classPK, boolean primary)
183: throws com.liferay.portal.SystemException;
184:
185: public java.util.List findByC_C_C_P(long companyId,
186: long classNameId, long classPK, boolean primary, int begin,
187: int end) throws com.liferay.portal.SystemException;
188:
189: public java.util.List findByC_C_C_P(long companyId,
190: long classNameId, long classPK, boolean primary, int begin,
191: int end,
192: com.liferay.portal.kernel.util.OrderByComparator obc)
193: throws com.liferay.portal.SystemException;
194:
195: public com.liferay.portal.model.EmailAddress findByC_C_C_P_First(
196: long companyId, long classNameId, long classPK,
197: boolean primary,
198: com.liferay.portal.kernel.util.OrderByComparator obc)
199: throws com.liferay.portal.SystemException,
200: com.liferay.portal.NoSuchEmailAddressException;
201:
202: public com.liferay.portal.model.EmailAddress findByC_C_C_P_Last(
203: long companyId, long classNameId, long classPK,
204: boolean primary,
205: com.liferay.portal.kernel.util.OrderByComparator obc)
206: throws com.liferay.portal.SystemException,
207: com.liferay.portal.NoSuchEmailAddressException;
208:
209: public com.liferay.portal.model.EmailAddress[] findByC_C_C_P_PrevAndNext(
210: long emailAddressId, long companyId, long classNameId,
211: long classPK, boolean primary,
212: com.liferay.portal.kernel.util.OrderByComparator obc)
213: throws com.liferay.portal.SystemException,
214: com.liferay.portal.NoSuchEmailAddressException;
215:
216: public java.util.List findWithDynamicQuery(
217: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
218: throws com.liferay.portal.SystemException;
219:
220: public java.util.List findWithDynamicQuery(
221: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
222: int begin, int end)
223: throws com.liferay.portal.SystemException;
224:
225: public java.util.List findAll()
226: throws com.liferay.portal.SystemException;
227:
228: public java.util.List findAll(int begin, int end)
229: throws com.liferay.portal.SystemException;
230:
231: public java.util.List findAll(int begin, int end,
232: com.liferay.portal.kernel.util.OrderByComparator obc)
233: throws com.liferay.portal.SystemException;
234:
235: public void removeByCompanyId(long companyId)
236: throws com.liferay.portal.SystemException;
237:
238: public void removeByUserId(long userId)
239: throws com.liferay.portal.SystemException;
240:
241: public void removeByC_C(long companyId, long classNameId)
242: throws com.liferay.portal.SystemException;
243:
244: public void removeByC_C_C(long companyId, long classNameId,
245: long classPK) throws com.liferay.portal.SystemException;
246:
247: public void removeByC_C_C_P(long companyId, long classNameId,
248: long classPK, boolean primary)
249: throws com.liferay.portal.SystemException;
250:
251: public void removeAll() throws com.liferay.portal.SystemException;
252:
253: public int countByCompanyId(long companyId)
254: throws com.liferay.portal.SystemException;
255:
256: public int countByUserId(long userId)
257: throws com.liferay.portal.SystemException;
258:
259: public int countByC_C(long companyId, long classNameId)
260: throws com.liferay.portal.SystemException;
261:
262: public int countByC_C_C(long companyId, long classNameId,
263: long classPK) throws com.liferay.portal.SystemException;
264:
265: public int countByC_C_C_P(long companyId, long classNameId,
266: long classPK, boolean primary)
267: throws com.liferay.portal.SystemException;
268:
269: public int countAll() throws com.liferay.portal.SystemException;
270: }
|