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="AddressPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface AddressPersistence {
030: public com.liferay.portal.model.Address create(long addressId);
031:
032: public com.liferay.portal.model.Address remove(long addressId)
033: throws com.liferay.portal.SystemException,
034: com.liferay.portal.NoSuchAddressException;
035:
036: public com.liferay.portal.model.Address remove(
037: com.liferay.portal.model.Address address)
038: throws com.liferay.portal.SystemException;
039:
040: public com.liferay.portal.model.Address update(
041: com.liferay.portal.model.Address address)
042: throws com.liferay.portal.SystemException;
043:
044: public com.liferay.portal.model.Address update(
045: com.liferay.portal.model.Address address, boolean merge)
046: throws com.liferay.portal.SystemException;
047:
048: public com.liferay.portal.model.Address updateImpl(
049: com.liferay.portal.model.Address address, boolean merge)
050: throws com.liferay.portal.SystemException;
051:
052: public com.liferay.portal.model.Address findByPrimaryKey(
053: long addressId) throws com.liferay.portal.SystemException,
054: com.liferay.portal.NoSuchAddressException;
055:
056: public com.liferay.portal.model.Address fetchByPrimaryKey(
057: long addressId) throws com.liferay.portal.SystemException;
058:
059: public java.util.List findByCompanyId(long companyId)
060: throws com.liferay.portal.SystemException;
061:
062: public java.util.List findByCompanyId(long companyId, int begin,
063: int end) throws com.liferay.portal.SystemException;
064:
065: public java.util.List findByCompanyId(long companyId, int begin,
066: int end,
067: com.liferay.portal.kernel.util.OrderByComparator obc)
068: throws com.liferay.portal.SystemException;
069:
070: public com.liferay.portal.model.Address findByCompanyId_First(
071: long companyId,
072: com.liferay.portal.kernel.util.OrderByComparator obc)
073: throws com.liferay.portal.SystemException,
074: com.liferay.portal.NoSuchAddressException;
075:
076: public com.liferay.portal.model.Address findByCompanyId_Last(
077: long companyId,
078: com.liferay.portal.kernel.util.OrderByComparator obc)
079: throws com.liferay.portal.SystemException,
080: com.liferay.portal.NoSuchAddressException;
081:
082: public com.liferay.portal.model.Address[] findByCompanyId_PrevAndNext(
083: long addressId, long companyId,
084: com.liferay.portal.kernel.util.OrderByComparator obc)
085: throws com.liferay.portal.SystemException,
086: com.liferay.portal.NoSuchAddressException;
087:
088: public java.util.List findByUserId(long userId)
089: throws com.liferay.portal.SystemException;
090:
091: public java.util.List findByUserId(long userId, int begin, int end)
092: throws com.liferay.portal.SystemException;
093:
094: public java.util.List findByUserId(long userId, int begin, int end,
095: com.liferay.portal.kernel.util.OrderByComparator obc)
096: throws com.liferay.portal.SystemException;
097:
098: public com.liferay.portal.model.Address findByUserId_First(
099: long userId,
100: com.liferay.portal.kernel.util.OrderByComparator obc)
101: throws com.liferay.portal.SystemException,
102: com.liferay.portal.NoSuchAddressException;
103:
104: public com.liferay.portal.model.Address findByUserId_Last(
105: long userId,
106: com.liferay.portal.kernel.util.OrderByComparator obc)
107: throws com.liferay.portal.SystemException,
108: com.liferay.portal.NoSuchAddressException;
109:
110: public com.liferay.portal.model.Address[] findByUserId_PrevAndNext(
111: long addressId, long userId,
112: com.liferay.portal.kernel.util.OrderByComparator obc)
113: throws com.liferay.portal.SystemException,
114: com.liferay.portal.NoSuchAddressException;
115:
116: public java.util.List findByC_C(long companyId, long classNameId)
117: throws com.liferay.portal.SystemException;
118:
119: public java.util.List findByC_C(long companyId, long classNameId,
120: int begin, int end)
121: throws com.liferay.portal.SystemException;
122:
123: public java.util.List findByC_C(long companyId, long classNameId,
124: int begin, int end,
125: com.liferay.portal.kernel.util.OrderByComparator obc)
126: throws com.liferay.portal.SystemException;
127:
128: public com.liferay.portal.model.Address findByC_C_First(
129: long companyId, long classNameId,
130: com.liferay.portal.kernel.util.OrderByComparator obc)
131: throws com.liferay.portal.SystemException,
132: com.liferay.portal.NoSuchAddressException;
133:
134: public com.liferay.portal.model.Address findByC_C_Last(
135: long companyId, long classNameId,
136: com.liferay.portal.kernel.util.OrderByComparator obc)
137: throws com.liferay.portal.SystemException,
138: com.liferay.portal.NoSuchAddressException;
139:
140: public com.liferay.portal.model.Address[] findByC_C_PrevAndNext(
141: long addressId, long companyId, long classNameId,
142: com.liferay.portal.kernel.util.OrderByComparator obc)
143: throws com.liferay.portal.SystemException,
144: com.liferay.portal.NoSuchAddressException;
145:
146: public java.util.List findByC_C_C(long companyId, long classNameId,
147: long classPK) throws com.liferay.portal.SystemException;
148:
149: public java.util.List findByC_C_C(long companyId, long classNameId,
150: long classPK, int begin, int end)
151: 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: com.liferay.portal.kernel.util.OrderByComparator obc)
156: throws com.liferay.portal.SystemException;
157:
158: public com.liferay.portal.model.Address findByC_C_C_First(
159: long companyId, long classNameId, long classPK,
160: com.liferay.portal.kernel.util.OrderByComparator obc)
161: throws com.liferay.portal.SystemException,
162: com.liferay.portal.NoSuchAddressException;
163:
164: public com.liferay.portal.model.Address findByC_C_C_Last(
165: long companyId, long classNameId, long classPK,
166: com.liferay.portal.kernel.util.OrderByComparator obc)
167: throws com.liferay.portal.SystemException,
168: com.liferay.portal.NoSuchAddressException;
169:
170: public com.liferay.portal.model.Address[] findByC_C_C_PrevAndNext(
171: long addressId, long companyId, long classNameId,
172: long classPK,
173: com.liferay.portal.kernel.util.OrderByComparator obc)
174: throws com.liferay.portal.SystemException,
175: com.liferay.portal.NoSuchAddressException;
176:
177: public java.util.List findByC_C_C_M(long companyId,
178: long classNameId, long classPK, boolean mailing)
179: throws com.liferay.portal.SystemException;
180:
181: public java.util.List findByC_C_C_M(long companyId,
182: long classNameId, long classPK, boolean mailing, int begin,
183: int end) throws com.liferay.portal.SystemException;
184:
185: public java.util.List findByC_C_C_M(long companyId,
186: long classNameId, long classPK, boolean mailing, int begin,
187: int end,
188: com.liferay.portal.kernel.util.OrderByComparator obc)
189: throws com.liferay.portal.SystemException;
190:
191: public com.liferay.portal.model.Address findByC_C_C_M_First(
192: long companyId, long classNameId, long classPK,
193: boolean mailing,
194: com.liferay.portal.kernel.util.OrderByComparator obc)
195: throws com.liferay.portal.SystemException,
196: com.liferay.portal.NoSuchAddressException;
197:
198: public com.liferay.portal.model.Address findByC_C_C_M_Last(
199: long companyId, long classNameId, long classPK,
200: boolean mailing,
201: com.liferay.portal.kernel.util.OrderByComparator obc)
202: throws com.liferay.portal.SystemException,
203: com.liferay.portal.NoSuchAddressException;
204:
205: public com.liferay.portal.model.Address[] findByC_C_C_M_PrevAndNext(
206: long addressId, long companyId, long classNameId,
207: long classPK, boolean mailing,
208: com.liferay.portal.kernel.util.OrderByComparator obc)
209: throws com.liferay.portal.SystemException,
210: com.liferay.portal.NoSuchAddressException;
211:
212: public java.util.List findByC_C_C_P(long companyId,
213: long classNameId, long classPK, boolean primary)
214: throws com.liferay.portal.SystemException;
215:
216: public java.util.List findByC_C_C_P(long companyId,
217: long classNameId, long classPK, boolean primary, int begin,
218: int end) throws com.liferay.portal.SystemException;
219:
220: public java.util.List findByC_C_C_P(long companyId,
221: long classNameId, long classPK, boolean primary, int begin,
222: int end,
223: com.liferay.portal.kernel.util.OrderByComparator obc)
224: throws com.liferay.portal.SystemException;
225:
226: public com.liferay.portal.model.Address findByC_C_C_P_First(
227: long companyId, long classNameId, long classPK,
228: boolean primary,
229: com.liferay.portal.kernel.util.OrderByComparator obc)
230: throws com.liferay.portal.SystemException,
231: com.liferay.portal.NoSuchAddressException;
232:
233: public com.liferay.portal.model.Address findByC_C_C_P_Last(
234: long companyId, long classNameId, long classPK,
235: boolean primary,
236: com.liferay.portal.kernel.util.OrderByComparator obc)
237: throws com.liferay.portal.SystemException,
238: com.liferay.portal.NoSuchAddressException;
239:
240: public com.liferay.portal.model.Address[] findByC_C_C_P_PrevAndNext(
241: long addressId, long companyId, long classNameId,
242: long classPK, boolean primary,
243: com.liferay.portal.kernel.util.OrderByComparator obc)
244: throws com.liferay.portal.SystemException,
245: com.liferay.portal.NoSuchAddressException;
246:
247: public java.util.List findWithDynamicQuery(
248: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
249: throws com.liferay.portal.SystemException;
250:
251: public java.util.List findWithDynamicQuery(
252: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
253: int begin, int end)
254: throws com.liferay.portal.SystemException;
255:
256: public java.util.List findAll()
257: throws com.liferay.portal.SystemException;
258:
259: public java.util.List findAll(int begin, int end)
260: throws com.liferay.portal.SystemException;
261:
262: public java.util.List findAll(int begin, int end,
263: com.liferay.portal.kernel.util.OrderByComparator obc)
264: throws com.liferay.portal.SystemException;
265:
266: public void removeByCompanyId(long companyId)
267: throws com.liferay.portal.SystemException;
268:
269: public void removeByUserId(long userId)
270: throws com.liferay.portal.SystemException;
271:
272: public void removeByC_C(long companyId, long classNameId)
273: throws com.liferay.portal.SystemException;
274:
275: public void removeByC_C_C(long companyId, long classNameId,
276: long classPK) throws com.liferay.portal.SystemException;
277:
278: public void removeByC_C_C_M(long companyId, long classNameId,
279: long classPK, boolean mailing)
280: throws com.liferay.portal.SystemException;
281:
282: public void removeByC_C_C_P(long companyId, long classNameId,
283: long classPK, boolean primary)
284: throws com.liferay.portal.SystemException;
285:
286: public void removeAll() throws com.liferay.portal.SystemException;
287:
288: public int countByCompanyId(long companyId)
289: throws com.liferay.portal.SystemException;
290:
291: public int countByUserId(long userId)
292: throws com.liferay.portal.SystemException;
293:
294: public int countByC_C(long companyId, long classNameId)
295: throws com.liferay.portal.SystemException;
296:
297: public int countByC_C_C(long companyId, long classNameId,
298: long classPK) throws com.liferay.portal.SystemException;
299:
300: public int countByC_C_C_M(long companyId, long classNameId,
301: long classPK, boolean mailing)
302: throws com.liferay.portal.SystemException;
303:
304: public int countByC_C_C_P(long companyId, long classNameId,
305: long classPK, boolean primary)
306: throws com.liferay.portal.SystemException;
307:
308: public int countAll() throws com.liferay.portal.SystemException;
309: }
|