1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
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.SystemException;
43  
44      /**
45       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
46       */
47      public com.liferay.portal.model.Phone update(
48          com.liferay.portal.model.Phone phone)
49          throws com.liferay.portal.SystemException;
50  
51      public com.liferay.portal.model.Phone updateImpl(
52          com.liferay.portal.model.Phone phone, boolean merge)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portal.model.Phone findByPrimaryKey(long phoneId)
56          throws com.liferay.portal.NoSuchPhoneException,
57              com.liferay.portal.SystemException;
58  
59      public com.liferay.portal.model.Phone fetchByPrimaryKey(long phoneId)
60          throws com.liferay.portal.SystemException;
61  
62      public java.util.List<com.liferay.portal.model.Phone> findByCompanyId(
63          long companyId) throws com.liferay.portal.SystemException;
64  
65      public java.util.List<com.liferay.portal.model.Phone> findByCompanyId(
66          long companyId, int start, int end)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portal.model.Phone> findByCompanyId(
70          long companyId, int start, int end,
71          com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portal.model.Phone findByCompanyId_First(
75          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.NoSuchPhoneException,
77              com.liferay.portal.SystemException;
78  
79      public com.liferay.portal.model.Phone findByCompanyId_Last(long companyId,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.NoSuchPhoneException,
82              com.liferay.portal.SystemException;
83  
84      public com.liferay.portal.model.Phone[] findByCompanyId_PrevAndNext(
85          long phoneId, long companyId,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.NoSuchPhoneException,
88              com.liferay.portal.SystemException;
89  
90      public java.util.List<com.liferay.portal.model.Phone> findByUserId(
91          long userId) throws com.liferay.portal.SystemException;
92  
93      public java.util.List<com.liferay.portal.model.Phone> findByUserId(
94          long userId, int start, int end)
95          throws com.liferay.portal.SystemException;
96  
97      public java.util.List<com.liferay.portal.model.Phone> findByUserId(
98          long userId, int start, int end,
99          com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.SystemException;
101 
102     public com.liferay.portal.model.Phone findByUserId_First(long userId,
103         com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.NoSuchPhoneException,
105             com.liferay.portal.SystemException;
106 
107     public com.liferay.portal.model.Phone findByUserId_Last(long userId,
108         com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.NoSuchPhoneException,
110             com.liferay.portal.SystemException;
111 
112     public com.liferay.portal.model.Phone[] findByUserId_PrevAndNext(
113         long phoneId, long userId,
114         com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.NoSuchPhoneException,
116             com.liferay.portal.SystemException;
117 
118     public java.util.List<com.liferay.portal.model.Phone> findByC_C(
119         long companyId, long classNameId)
120         throws com.liferay.portal.SystemException;
121 
122     public java.util.List<com.liferay.portal.model.Phone> findByC_C(
123         long companyId, long classNameId, int start, int end)
124         throws com.liferay.portal.SystemException;
125 
126     public java.util.List<com.liferay.portal.model.Phone> findByC_C(
127         long companyId, long classNameId, int start, int end,
128         com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException;
130 
131     public com.liferay.portal.model.Phone findByC_C_First(long companyId,
132         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.NoSuchPhoneException,
134             com.liferay.portal.SystemException;
135 
136     public com.liferay.portal.model.Phone findByC_C_Last(long companyId,
137         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.NoSuchPhoneException,
139             com.liferay.portal.SystemException;
140 
141     public com.liferay.portal.model.Phone[] findByC_C_PrevAndNext(
142         long phoneId, long companyId, long classNameId,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.NoSuchPhoneException,
145             com.liferay.portal.SystemException;
146 
147     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C(
148         long companyId, long classNameId, long classPK)
149         throws com.liferay.portal.SystemException;
150 
151     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C(
152         long companyId, long classNameId, long classPK, int start, int end)
153         throws com.liferay.portal.SystemException;
154 
155     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C(
156         long companyId, long classNameId, long classPK, int start, int end,
157         com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException;
159 
160     public com.liferay.portal.model.Phone findByC_C_C_First(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.SystemException;
165 
166     public com.liferay.portal.model.Phone findByC_C_C_Last(long companyId,
167         long classNameId, long classPK,
168         com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.NoSuchPhoneException,
170             com.liferay.portal.SystemException;
171 
172     public com.liferay.portal.model.Phone[] findByC_C_C_PrevAndNext(
173         long phoneId, long companyId, long classNameId, long classPK,
174         com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.NoSuchPhoneException,
176             com.liferay.portal.SystemException;
177 
178     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P(
179         long companyId, long classNameId, long classPK, boolean primary)
180         throws com.liferay.portal.SystemException;
181 
182     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P(
183         long companyId, long classNameId, long classPK, boolean primary,
184         int start, int end) throws com.liferay.portal.SystemException;
185 
186     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P(
187         long companyId, long classNameId, long classPK, boolean primary,
188         int start, int end, 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(long companyId,
192         long classNameId, long classPK, boolean primary,
193         com.liferay.portal.kernel.util.OrderByComparator obc)
194         throws com.liferay.portal.NoSuchPhoneException,
195             com.liferay.portal.SystemException;
196 
197     public com.liferay.portal.model.Phone findByC_C_C_P_Last(long companyId,
198         long classNameId, long classPK, boolean primary,
199         com.liferay.portal.kernel.util.OrderByComparator obc)
200         throws com.liferay.portal.NoSuchPhoneException,
201             com.liferay.portal.SystemException;
202 
203     public com.liferay.portal.model.Phone[] findByC_C_C_P_PrevAndNext(
204         long phoneId, long companyId, long classNameId, long classPK,
205         boolean primary, com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.NoSuchPhoneException,
207             com.liferay.portal.SystemException;
208 
209     public java.util.List<com.liferay.portal.model.Phone> findAll()
210         throws com.liferay.portal.SystemException;
211 
212     public java.util.List<com.liferay.portal.model.Phone> findAll(int start,
213         int end) throws com.liferay.portal.SystemException;
214 
215     public java.util.List<com.liferay.portal.model.Phone> findAll(int start,
216         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
217         throws com.liferay.portal.SystemException;
218 
219     public void removeByCompanyId(long companyId)
220         throws com.liferay.portal.SystemException;
221 
222     public void removeByUserId(long userId)
223         throws com.liferay.portal.SystemException;
224 
225     public void removeByC_C(long companyId, long classNameId)
226         throws com.liferay.portal.SystemException;
227 
228     public void removeByC_C_C(long companyId, long classNameId, long classPK)
229         throws com.liferay.portal.SystemException;
230 
231     public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
232         boolean primary) throws com.liferay.portal.SystemException;
233 
234     public void removeAll() throws com.liferay.portal.SystemException;
235 
236     public int countByCompanyId(long companyId)
237         throws com.liferay.portal.SystemException;
238 
239     public int countByUserId(long userId)
240         throws com.liferay.portal.SystemException;
241 
242     public int countByC_C(long companyId, long classNameId)
243         throws com.liferay.portal.SystemException;
244 
245     public int countByC_C_C(long companyId, long classNameId, long classPK)
246         throws com.liferay.portal.SystemException;
247 
248     public int countByC_C_C_P(long companyId, long classNameId, long classPK,
249         boolean primary) throws com.liferay.portal.SystemException;
250 
251     public int countAll() throws com.liferay.portal.SystemException;
252 }