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="PhonePersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface PhonePersistence {
030: public com.liferay.portal.model.Phone create(long phoneId);
031:
032: public com.liferay.portal.model.Phone remove(long phoneId)
033: throws com.liferay.portal.SystemException,
034: com.liferay.portal.NoSuchPhoneException;
035:
036: public com.liferay.portal.model.Phone remove(
037: com.liferay.portal.model.Phone phone)
038: throws com.liferay.portal.SystemException;
039:
040: public com.liferay.portal.model.Phone update(
041: com.liferay.portal.model.Phone phone)
042: throws com.liferay.portal.SystemException;
043:
044: public com.liferay.portal.model.Phone update(
045: com.liferay.portal.model.Phone phone, boolean merge)
046: throws com.liferay.portal.SystemException;
047:
048: public com.liferay.portal.model.Phone updateImpl(
049: com.liferay.portal.model.Phone phone, boolean merge)
050: throws com.liferay.portal.SystemException;
051:
052: public com.liferay.portal.model.Phone findByPrimaryKey(long phoneId)
053: throws com.liferay.portal.SystemException,
054: com.liferay.portal.NoSuchPhoneException;
055:
056: public com.liferay.portal.model.Phone fetchByPrimaryKey(long phoneId)
057: 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.Phone findByCompanyId_First(
071: long companyId,
072: com.liferay.portal.kernel.util.OrderByComparator obc)
073: throws com.liferay.portal.SystemException,
074: com.liferay.portal.NoSuchPhoneException;
075:
076: public com.liferay.portal.model.Phone findByCompanyId_Last(
077: long companyId,
078: com.liferay.portal.kernel.util.OrderByComparator obc)
079: throws com.liferay.portal.SystemException,
080: com.liferay.portal.NoSuchPhoneException;
081:
082: public com.liferay.portal.model.Phone[] findByCompanyId_PrevAndNext(
083: long phoneId, long companyId,
084: com.liferay.portal.kernel.util.OrderByComparator obc)
085: throws com.liferay.portal.SystemException,
086: com.liferay.portal.NoSuchPhoneException;
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.Phone findByUserId_First(
099: long userId,
100: com.liferay.portal.kernel.util.OrderByComparator obc)
101: throws com.liferay.portal.SystemException,
102: com.liferay.portal.NoSuchPhoneException;
103:
104: public com.liferay.portal.model.Phone findByUserId_Last(
105: long userId,
106: com.liferay.portal.kernel.util.OrderByComparator obc)
107: throws com.liferay.portal.SystemException,
108: com.liferay.portal.NoSuchPhoneException;
109:
110: public com.liferay.portal.model.Phone[] findByUserId_PrevAndNext(
111: long phoneId, long userId,
112: com.liferay.portal.kernel.util.OrderByComparator obc)
113: throws com.liferay.portal.SystemException,
114: com.liferay.portal.NoSuchPhoneException;
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.Phone 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.NoSuchPhoneException;
133:
134: public com.liferay.portal.model.Phone 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.NoSuchPhoneException;
139:
140: public com.liferay.portal.model.Phone[] findByC_C_PrevAndNext(
141: long phoneId, long companyId, long classNameId,
142: com.liferay.portal.kernel.util.OrderByComparator obc)
143: throws com.liferay.portal.SystemException,
144: com.liferay.portal.NoSuchPhoneException;
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.Phone 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.NoSuchPhoneException;
163:
164: public com.liferay.portal.model.Phone 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.NoSuchPhoneException;
169:
170: public com.liferay.portal.model.Phone[] findByC_C_C_PrevAndNext(
171: long phoneId, 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.NoSuchPhoneException;
176:
177: public java.util.List findByC_C_C_P(long companyId,
178: long classNameId, long classPK, boolean primary)
179: throws com.liferay.portal.SystemException;
180:
181: public java.util.List findByC_C_C_P(long companyId,
182: long classNameId, long classPK, boolean primary, int begin,
183: int end) 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,
188: com.liferay.portal.kernel.util.OrderByComparator obc)
189: throws com.liferay.portal.SystemException;
190:
191: public com.liferay.portal.model.Phone findByC_C_C_P_First(
192: long companyId, long classNameId, long classPK,
193: boolean primary,
194: com.liferay.portal.kernel.util.OrderByComparator obc)
195: throws com.liferay.portal.SystemException,
196: com.liferay.portal.NoSuchPhoneException;
197:
198: public com.liferay.portal.model.Phone findByC_C_C_P_Last(
199: long companyId, long classNameId, long classPK,
200: boolean primary,
201: com.liferay.portal.kernel.util.OrderByComparator obc)
202: throws com.liferay.portal.SystemException,
203: com.liferay.portal.NoSuchPhoneException;
204:
205: public com.liferay.portal.model.Phone[] findByC_C_C_P_PrevAndNext(
206: long phoneId, long companyId, long classNameId,
207: long classPK, boolean primary,
208: com.liferay.portal.kernel.util.OrderByComparator obc)
209: throws com.liferay.portal.SystemException,
210: com.liferay.portal.NoSuchPhoneException;
211:
212: public java.util.List findWithDynamicQuery(
213: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
214: throws com.liferay.portal.SystemException;
215:
216: public java.util.List findWithDynamicQuery(
217: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
218: int begin, int end)
219: throws com.liferay.portal.SystemException;
220:
221: public java.util.List findAll()
222: throws com.liferay.portal.SystemException;
223:
224: public java.util.List findAll(int begin, int end)
225: throws com.liferay.portal.SystemException;
226:
227: public java.util.List findAll(int begin, int end,
228: com.liferay.portal.kernel.util.OrderByComparator obc)
229: throws com.liferay.portal.SystemException;
230:
231: public void removeByCompanyId(long companyId)
232: throws com.liferay.portal.SystemException;
233:
234: public void removeByUserId(long userId)
235: throws com.liferay.portal.SystemException;
236:
237: public void removeByC_C(long companyId, long classNameId)
238: throws com.liferay.portal.SystemException;
239:
240: public void removeByC_C_C(long companyId, long classNameId,
241: long classPK) throws com.liferay.portal.SystemException;
242:
243: public void removeByC_C_C_P(long companyId, long classNameId,
244: long classPK, boolean primary)
245: throws com.liferay.portal.SystemException;
246:
247: public void removeAll() throws com.liferay.portal.SystemException;
248:
249: public int countByCompanyId(long companyId)
250: throws com.liferay.portal.SystemException;
251:
252: public int countByUserId(long userId)
253: throws com.liferay.portal.SystemException;
254:
255: public int countByC_C(long companyId, long classNameId)
256: throws com.liferay.portal.SystemException;
257:
258: public int countByC_C_C(long companyId, long classNameId,
259: long classPK) throws com.liferay.portal.SystemException;
260:
261: public int countByC_C_C_P(long companyId, long classNameId,
262: long classPK, boolean primary)
263: throws com.liferay.portal.SystemException;
264:
265: public int countAll() throws com.liferay.portal.SystemException;
266: }
|