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 orderByComparator)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public com.liferay.portal.model.Phone findByCompanyId_First(
69          long companyId,
70          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
71          throws com.liferay.portal.NoSuchPhoneException,
72              com.liferay.portal.kernel.exception.SystemException;
73  
74      public com.liferay.portal.model.Phone findByCompanyId_Last(long companyId,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.NoSuchPhoneException,
77              com.liferay.portal.kernel.exception.SystemException;
78  
79      public com.liferay.portal.model.Phone[] findByCompanyId_PrevAndNext(
80          long phoneId, long companyId,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.NoSuchPhoneException,
83              com.liferay.portal.kernel.exception.SystemException;
84  
85      public java.util.List<com.liferay.portal.model.Phone> findByUserId(
86          long userId) throws com.liferay.portal.kernel.exception.SystemException;
87  
88      public java.util.List<com.liferay.portal.model.Phone> findByUserId(
89          long userId, int start, int end)
90          throws com.liferay.portal.kernel.exception.SystemException;
91  
92      public java.util.List<com.liferay.portal.model.Phone> findByUserId(
93          long userId, int start, int end,
94          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public com.liferay.portal.model.Phone findByUserId_First(long userId,
98          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
99          throws com.liferay.portal.NoSuchPhoneException,
100             com.liferay.portal.kernel.exception.SystemException;
101 
102     public com.liferay.portal.model.Phone findByUserId_Last(long userId,
103         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
104         throws com.liferay.portal.NoSuchPhoneException,
105             com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portal.model.Phone[] findByUserId_PrevAndNext(
108         long phoneId, long userId,
109         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
110         throws com.liferay.portal.NoSuchPhoneException,
111             com.liferay.portal.kernel.exception.SystemException;
112 
113     public java.util.List<com.liferay.portal.model.Phone> findByC_C(
114         long companyId, long classNameId)
115         throws com.liferay.portal.kernel.exception.SystemException;
116 
117     public java.util.List<com.liferay.portal.model.Phone> findByC_C(
118         long companyId, long classNameId, int start, int end)
119         throws com.liferay.portal.kernel.exception.SystemException;
120 
121     public java.util.List<com.liferay.portal.model.Phone> findByC_C(
122         long companyId, long classNameId, int start, int end,
123         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public com.liferay.portal.model.Phone findByC_C_First(long companyId,
127         long classNameId,
128         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
129         throws com.liferay.portal.NoSuchPhoneException,
130             com.liferay.portal.kernel.exception.SystemException;
131 
132     public com.liferay.portal.model.Phone findByC_C_Last(long companyId,
133         long classNameId,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.NoSuchPhoneException,
136             com.liferay.portal.kernel.exception.SystemException;
137 
138     public com.liferay.portal.model.Phone[] findByC_C_PrevAndNext(
139         long phoneId, long companyId, long classNameId,
140         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141         throws com.liferay.portal.NoSuchPhoneException,
142             com.liferay.portal.kernel.exception.SystemException;
143 
144     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C(
145         long companyId, long classNameId, long classPK)
146         throws com.liferay.portal.kernel.exception.SystemException;
147 
148     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C(
149         long companyId, long classNameId, long classPK, int start, int end)
150         throws com.liferay.portal.kernel.exception.SystemException;
151 
152     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C(
153         long companyId, long classNameId, long classPK, int start, int end,
154         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155         throws com.liferay.portal.kernel.exception.SystemException;
156 
157     public com.liferay.portal.model.Phone findByC_C_C_First(long companyId,
158         long classNameId, long classPK,
159         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160         throws com.liferay.portal.NoSuchPhoneException,
161             com.liferay.portal.kernel.exception.SystemException;
162 
163     public com.liferay.portal.model.Phone findByC_C_C_Last(long companyId,
164         long classNameId, long classPK,
165         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166         throws com.liferay.portal.NoSuchPhoneException,
167             com.liferay.portal.kernel.exception.SystemException;
168 
169     public com.liferay.portal.model.Phone[] findByC_C_C_PrevAndNext(
170         long phoneId, long companyId, long classNameId, long classPK,
171         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172         throws com.liferay.portal.NoSuchPhoneException,
173             com.liferay.portal.kernel.exception.SystemException;
174 
175     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P(
176         long companyId, long classNameId, long classPK, boolean primary)
177         throws com.liferay.portal.kernel.exception.SystemException;
178 
179     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P(
180         long companyId, long classNameId, long classPK, boolean primary,
181         int start, int end)
182         throws com.liferay.portal.kernel.exception.SystemException;
183 
184     public java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P(
185         long companyId, long classNameId, long classPK, boolean primary,
186         int start, int end,
187         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188         throws com.liferay.portal.kernel.exception.SystemException;
189 
190     public com.liferay.portal.model.Phone findByC_C_C_P_First(long companyId,
191         long classNameId, long classPK, boolean primary,
192         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193         throws com.liferay.portal.NoSuchPhoneException,
194             com.liferay.portal.kernel.exception.SystemException;
195 
196     public com.liferay.portal.model.Phone findByC_C_C_P_Last(long companyId,
197         long classNameId, long classPK, boolean primary,
198         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199         throws com.liferay.portal.NoSuchPhoneException,
200             com.liferay.portal.kernel.exception.SystemException;
201 
202     public com.liferay.portal.model.Phone[] findByC_C_C_P_PrevAndNext(
203         long phoneId, long companyId, long classNameId, long classPK,
204         boolean primary,
205         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206         throws com.liferay.portal.NoSuchPhoneException,
207             com.liferay.portal.kernel.exception.SystemException;
208 
209     public java.util.List<com.liferay.portal.model.Phone> findAll()
210         throws com.liferay.portal.kernel.exception.SystemException;
211 
212     public java.util.List<com.liferay.portal.model.Phone> findAll(int start,
213         int end) throws com.liferay.portal.kernel.exception.SystemException;
214 
215     public java.util.List<com.liferay.portal.model.Phone> findAll(int start,
216         int end,
217         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
218         throws com.liferay.portal.kernel.exception.SystemException;
219 
220     public void removeByCompanyId(long companyId)
221         throws com.liferay.portal.kernel.exception.SystemException;
222 
223     public void removeByUserId(long userId)
224         throws com.liferay.portal.kernel.exception.SystemException;
225 
226     public void removeByC_C(long companyId, long classNameId)
227         throws com.liferay.portal.kernel.exception.SystemException;
228 
229     public void removeByC_C_C(long companyId, long classNameId, long classPK)
230         throws com.liferay.portal.kernel.exception.SystemException;
231 
232     public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
233         boolean primary)
234         throws com.liferay.portal.kernel.exception.SystemException;
235 
236     public void removeAll()
237         throws com.liferay.portal.kernel.exception.SystemException;
238 
239     public int countByCompanyId(long companyId)
240         throws com.liferay.portal.kernel.exception.SystemException;
241 
242     public int countByUserId(long userId)
243         throws com.liferay.portal.kernel.exception.SystemException;
244 
245     public int countByC_C(long companyId, long classNameId)
246         throws com.liferay.portal.kernel.exception.SystemException;
247 
248     public int countByC_C_C(long companyId, long classNameId, long classPK)
249         throws com.liferay.portal.kernel.exception.SystemException;
250 
251     public int countByC_C_C_P(long companyId, long classNameId, long classPK,
252         boolean primary)
253         throws com.liferay.portal.kernel.exception.SystemException;
254 
255     public int countAll()
256         throws com.liferay.portal.kernel.exception.SystemException;
257 }