1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.Phone;
18  
19  /**
20   * <a href="PhonePersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       PhonePersistenceImpl
29   * @see       PhoneUtil
30   * @generated
31   */
32  public interface PhonePersistence extends BasePersistence<Phone> {
33      public void cacheResult(com.liferay.portal.model.Phone phone);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.Phone> phones);
37  
38      public com.liferay.portal.model.Phone create(long phoneId);
39  
40      public com.liferay.portal.model.Phone remove(long phoneId)
41          throws com.liferay.portal.NoSuchPhoneException,
42              com.liferay.portal.kernel.exception.SystemException;
43  
44      public com.liferay.portal.model.Phone updateImpl(
45          com.liferay.portal.model.Phone phone, boolean merge)
46          throws com.liferay.portal.kernel.exception.SystemException;
47  
48      public com.liferay.portal.model.Phone findByPrimaryKey(long phoneId)
49          throws com.liferay.portal.NoSuchPhoneException,
50              com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portal.model.Phone fetchByPrimaryKey(long phoneId)
53          throws com.liferay.portal.kernel.exception.SystemException;
54  
55      public java.util.List<com.liferay.portal.model.Phone> findByCompanyId(
56          long companyId)
57          throws com.liferay.portal.kernel.exception.SystemException;
58  
59      public java.util.List<com.liferay.portal.model.Phone> findByCompanyId(
60          long companyId, int start, int end)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portal.model.Phone> findByCompanyId(
64          long companyId, int start, int end,
65          com.liferay.portal.kernel.util.OrderByComparator obc)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public com.liferay.portal.model.Phone findByCompanyId_First(
69          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
70          throws com.liferay.portal.NoSuchPhoneException,
71              com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portal.model.Phone findByCompanyId_Last(long companyId,
74          com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.NoSuchPhoneException,
76              com.liferay.portal.kernel.exception.SystemException;
77  
78      public com.liferay.portal.model.Phone[] findByCompanyId_PrevAndNext(
79          long phoneId, long companyId,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.NoSuchPhoneException,
82              com.liferay.portal.kernel.exception.SystemException;
83  
84      public java.util.List<com.liferay.portal.model.Phone> findByUserId(
85          long userId) throws com.liferay.portal.kernel.exception.SystemException;
86  
87      public java.util.List<com.liferay.portal.model.Phone> findByUserId(
88          long userId, int start, int end)
89          throws com.liferay.portal.kernel.exception.SystemException;
90  
91      public java.util.List<com.liferay.portal.model.Phone> findByUserId(
92          long userId, int start, int end,
93          com.liferay.portal.kernel.util.OrderByComparator obc)
94          throws com.liferay.portal.kernel.exception.SystemException;
95  
96      public com.liferay.portal.model.Phone findByUserId_First(long userId,
97          com.liferay.portal.kernel.util.OrderByComparator obc)
98          throws com.liferay.portal.NoSuchPhoneException,
99              com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portal.model.Phone findByUserId_Last(long userId,
102         com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.NoSuchPhoneException,
104             com.liferay.portal.kernel.exception.SystemException;
105 
106     public com.liferay.portal.model.Phone[] findByUserId_PrevAndNext(
107         long phoneId, long userId,
108         com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.NoSuchPhoneException,
110             com.liferay.portal.kernel.exception.SystemException;
111 
112     public java.util.List<com.liferay.portal.model.Phone> findByC_C(
113         long companyId, long classNameId)
114         throws com.liferay.portal.kernel.exception.SystemException;
115 
116     public java.util.List<com.liferay.portal.model.Phone> findByC_C(
117         long companyId, long classNameId, int start, int end)
118         throws com.liferay.portal.kernel.exception.SystemException;
119 
120     public java.util.List<com.liferay.portal.model.Phone> findByC_C(
121         long companyId, long classNameId, int start, int end,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.kernel.exception.SystemException;
124 
125     public com.liferay.portal.model.Phone findByC_C_First(long companyId,
126         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
127         throws com.liferay.portal.NoSuchPhoneException,
128             com.liferay.portal.kernel.exception.SystemException;
129 
130     public com.liferay.portal.model.Phone findByC_C_Last(long companyId,
131         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
132         throws com.liferay.portal.NoSuchPhoneException,
133             com.liferay.portal.kernel.exception.SystemException;
134 
135     public com.liferay.portal.model.Phone[] findByC_C_PrevAndNext(
136         long phoneId, long companyId, long classNameId,
137         com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.NoSuchPhoneException,
139             com.liferay.portal.kernel.exception.SystemException;
140 
141     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C(
142         long companyId, long classNameId, long classPK)
143         throws com.liferay.portal.kernel.exception.SystemException;
144 
145     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C(
146         long companyId, long classNameId, long classPK, int start, int end)
147         throws com.liferay.portal.kernel.exception.SystemException;
148 
149     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C(
150         long companyId, long classNameId, long classPK, int start, int end,
151         com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.kernel.exception.SystemException;
153 
154     public com.liferay.portal.model.Phone findByC_C_C_First(long companyId,
155         long classNameId, long classPK,
156         com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.NoSuchPhoneException,
158             com.liferay.portal.kernel.exception.SystemException;
159 
160     public com.liferay.portal.model.Phone findByC_C_C_Last(long companyId,
161         long classNameId, long classPK,
162         com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.NoSuchPhoneException,
164             com.liferay.portal.kernel.exception.SystemException;
165 
166     public com.liferay.portal.model.Phone[] findByC_C_C_PrevAndNext(
167         long phoneId, long companyId, long classNameId, long classPK,
168         com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.NoSuchPhoneException,
170             com.liferay.portal.kernel.exception.SystemException;
171 
172     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P(
173         long companyId, long classNameId, long classPK, boolean primary)
174         throws com.liferay.portal.kernel.exception.SystemException;
175 
176     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P(
177         long companyId, long classNameId, long classPK, boolean primary,
178         int start, int end)
179         throws com.liferay.portal.kernel.exception.SystemException;
180 
181     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P(
182         long companyId, long classNameId, long classPK, boolean primary,
183         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.kernel.exception.SystemException;
185 
186     public com.liferay.portal.model.Phone findByC_C_C_P_First(long companyId,
187         long classNameId, long classPK, boolean primary,
188         com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.NoSuchPhoneException,
190             com.liferay.portal.kernel.exception.SystemException;
191 
192     public com.liferay.portal.model.Phone findByC_C_C_P_Last(long companyId,
193         long classNameId, long classPK, boolean primary,
194         com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.NoSuchPhoneException,
196             com.liferay.portal.kernel.exception.SystemException;
197 
198     public com.liferay.portal.model.Phone[] findByC_C_C_P_PrevAndNext(
199         long phoneId, long companyId, long classNameId, long classPK,
200         boolean primary, com.liferay.portal.kernel.util.OrderByComparator obc)
201         throws com.liferay.portal.NoSuchPhoneException,
202             com.liferay.portal.kernel.exception.SystemException;
203 
204     public java.util.List<com.liferay.portal.model.Phone> findAll()
205         throws com.liferay.portal.kernel.exception.SystemException;
206 
207     public java.util.List<com.liferay.portal.model.Phone> findAll(int start,
208         int end) throws com.liferay.portal.kernel.exception.SystemException;
209 
210     public java.util.List<com.liferay.portal.model.Phone> findAll(int start,
211         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
212         throws com.liferay.portal.kernel.exception.SystemException;
213 
214     public void removeByCompanyId(long companyId)
215         throws com.liferay.portal.kernel.exception.SystemException;
216 
217     public void removeByUserId(long userId)
218         throws com.liferay.portal.kernel.exception.SystemException;
219 
220     public void removeByC_C(long companyId, long classNameId)
221         throws com.liferay.portal.kernel.exception.SystemException;
222 
223     public void removeByC_C_C(long companyId, long classNameId, long classPK)
224         throws com.liferay.portal.kernel.exception.SystemException;
225 
226     public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
227         boolean primary)
228         throws com.liferay.portal.kernel.exception.SystemException;
229 
230     public void removeAll()
231         throws com.liferay.portal.kernel.exception.SystemException;
232 
233     public int countByCompanyId(long companyId)
234         throws com.liferay.portal.kernel.exception.SystemException;
235 
236     public int countByUserId(long userId)
237         throws com.liferay.portal.kernel.exception.SystemException;
238 
239     public int countByC_C(long companyId, long classNameId)
240         throws com.liferay.portal.kernel.exception.SystemException;
241 
242     public int countByC_C_C(long companyId, long classNameId, long classPK)
243         throws com.liferay.portal.kernel.exception.SystemException;
244 
245     public int countByC_C_C_P(long companyId, long classNameId, long classPK,
246         boolean primary)
247         throws com.liferay.portal.kernel.exception.SystemException;
248 
249     public int countAll()
250         throws com.liferay.portal.kernel.exception.SystemException;
251 }