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.EmailAddress;
18  
19  /**
20   * <a href="EmailAddressPersistence.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       EmailAddressPersistenceImpl
29   * @see       EmailAddressUtil
30   * @generated
31   */
32  public interface EmailAddressPersistence extends BasePersistence<EmailAddress> {
33      public void cacheResult(com.liferay.portal.model.EmailAddress emailAddress);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses);
37  
38      public com.liferay.portal.model.EmailAddress create(long emailAddressId);
39  
40      public com.liferay.portal.model.EmailAddress remove(long emailAddressId)
41          throws com.liferay.portal.NoSuchEmailAddressException,
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.EmailAddress update(
48          com.liferay.portal.model.EmailAddress emailAddress)
49          throws com.liferay.portal.SystemException;
50  
51      public com.liferay.portal.model.EmailAddress updateImpl(
52          com.liferay.portal.model.EmailAddress emailAddress, boolean merge)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portal.model.EmailAddress findByPrimaryKey(
56          long emailAddressId)
57          throws com.liferay.portal.NoSuchEmailAddressException,
58              com.liferay.portal.SystemException;
59  
60      public com.liferay.portal.model.EmailAddress fetchByPrimaryKey(
61          long emailAddressId) throws com.liferay.portal.SystemException;
62  
63      public java.util.List<com.liferay.portal.model.EmailAddress> findByCompanyId(
64          long companyId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portal.model.EmailAddress> findByCompanyId(
67          long companyId, int start, int end)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<com.liferay.portal.model.EmailAddress> findByCompanyId(
71          long companyId, int start, int end,
72          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
73          throws com.liferay.portal.SystemException;
74  
75      public com.liferay.portal.model.EmailAddress findByCompanyId_First(
76          long companyId,
77          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78          throws com.liferay.portal.NoSuchEmailAddressException,
79              com.liferay.portal.SystemException;
80  
81      public com.liferay.portal.model.EmailAddress findByCompanyId_Last(
82          long companyId,
83          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84          throws com.liferay.portal.NoSuchEmailAddressException,
85              com.liferay.portal.SystemException;
86  
87      public com.liferay.portal.model.EmailAddress[] findByCompanyId_PrevAndNext(
88          long emailAddressId, long companyId,
89          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
90          throws com.liferay.portal.NoSuchEmailAddressException,
91              com.liferay.portal.SystemException;
92  
93      public java.util.List<com.liferay.portal.model.EmailAddress> findByUserId(
94          long userId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portal.model.EmailAddress> findByUserId(
97          long userId, int start, int end)
98          throws com.liferay.portal.SystemException;
99  
100     public java.util.List<com.liferay.portal.model.EmailAddress> findByUserId(
101         long userId, int start, int end,
102         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
103         throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portal.model.EmailAddress findByUserId_First(
106         long userId,
107         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108         throws com.liferay.portal.NoSuchEmailAddressException,
109             com.liferay.portal.SystemException;
110 
111     public com.liferay.portal.model.EmailAddress findByUserId_Last(
112         long userId,
113         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114         throws com.liferay.portal.NoSuchEmailAddressException,
115             com.liferay.portal.SystemException;
116 
117     public com.liferay.portal.model.EmailAddress[] findByUserId_PrevAndNext(
118         long emailAddressId, long userId,
119         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
120         throws com.liferay.portal.NoSuchEmailAddressException,
121             com.liferay.portal.SystemException;
122 
123     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C(
124         long companyId, long classNameId)
125         throws com.liferay.portal.SystemException;
126 
127     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C(
128         long companyId, long classNameId, int start, int end)
129         throws com.liferay.portal.SystemException;
130 
131     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C(
132         long companyId, long classNameId, int start, int end,
133         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134         throws com.liferay.portal.SystemException;
135 
136     public com.liferay.portal.model.EmailAddress findByC_C_First(
137         long companyId, long classNameId,
138         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139         throws com.liferay.portal.NoSuchEmailAddressException,
140             com.liferay.portal.SystemException;
141 
142     public com.liferay.portal.model.EmailAddress findByC_C_Last(
143         long companyId, long classNameId,
144         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145         throws com.liferay.portal.NoSuchEmailAddressException,
146             com.liferay.portal.SystemException;
147 
148     public com.liferay.portal.model.EmailAddress[] findByC_C_PrevAndNext(
149         long emailAddressId, long companyId, long classNameId,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.NoSuchEmailAddressException,
152             com.liferay.portal.SystemException;
153 
154     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C(
155         long companyId, long classNameId, long classPK)
156         throws com.liferay.portal.SystemException;
157 
158     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C(
159         long companyId, long classNameId, long classPK, int start, int end)
160         throws com.liferay.portal.SystemException;
161 
162     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C(
163         long companyId, long classNameId, long classPK, int start, int end,
164         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165         throws com.liferay.portal.SystemException;
166 
167     public com.liferay.portal.model.EmailAddress findByC_C_C_First(
168         long companyId, long classNameId, long classPK,
169         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170         throws com.liferay.portal.NoSuchEmailAddressException,
171             com.liferay.portal.SystemException;
172 
173     public com.liferay.portal.model.EmailAddress findByC_C_C_Last(
174         long companyId, long classNameId, long classPK,
175         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176         throws com.liferay.portal.NoSuchEmailAddressException,
177             com.liferay.portal.SystemException;
178 
179     public com.liferay.portal.model.EmailAddress[] findByC_C_C_PrevAndNext(
180         long emailAddressId, long companyId, long classNameId, long classPK,
181         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182         throws com.liferay.portal.NoSuchEmailAddressException,
183             com.liferay.portal.SystemException;
184 
185     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P(
186         long companyId, long classNameId, long classPK, boolean primary)
187         throws com.liferay.portal.SystemException;
188 
189     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P(
190         long companyId, long classNameId, long classPK, boolean primary,
191         int start, int end) throws com.liferay.portal.SystemException;
192 
193     public java.util.List<com.liferay.portal.model.EmailAddress> findByC_C_C_P(
194         long companyId, long classNameId, long classPK, boolean primary,
195         int start, int end,
196         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197         throws com.liferay.portal.SystemException;
198 
199     public com.liferay.portal.model.EmailAddress findByC_C_C_P_First(
200         long companyId, long classNameId, long classPK, boolean primary,
201         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202         throws com.liferay.portal.NoSuchEmailAddressException,
203             com.liferay.portal.SystemException;
204 
205     public com.liferay.portal.model.EmailAddress findByC_C_C_P_Last(
206         long companyId, long classNameId, long classPK, boolean primary,
207         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208         throws com.liferay.portal.NoSuchEmailAddressException,
209             com.liferay.portal.SystemException;
210 
211     public com.liferay.portal.model.EmailAddress[] findByC_C_C_P_PrevAndNext(
212         long emailAddressId, long companyId, long classNameId, long classPK,
213         boolean primary,
214         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
215         throws com.liferay.portal.NoSuchEmailAddressException,
216             com.liferay.portal.SystemException;
217 
218     public java.util.List<com.liferay.portal.model.EmailAddress> findAll()
219         throws com.liferay.portal.SystemException;
220 
221     public java.util.List<com.liferay.portal.model.EmailAddress> findAll(
222         int start, int end) throws com.liferay.portal.SystemException;
223 
224     public java.util.List<com.liferay.portal.model.EmailAddress> findAll(
225         int start, int end,
226         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227         throws com.liferay.portal.SystemException;
228 
229     public void removeByCompanyId(long companyId)
230         throws com.liferay.portal.SystemException;
231 
232     public void removeByUserId(long userId)
233         throws com.liferay.portal.SystemException;
234 
235     public void removeByC_C(long companyId, long classNameId)
236         throws com.liferay.portal.SystemException;
237 
238     public void removeByC_C_C(long companyId, long classNameId, long classPK)
239         throws com.liferay.portal.SystemException;
240 
241     public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
242         boolean primary) throws com.liferay.portal.SystemException;
243 
244     public void removeAll() throws com.liferay.portal.SystemException;
245 
246     public int countByCompanyId(long companyId)
247         throws com.liferay.portal.SystemException;
248 
249     public int countByUserId(long userId)
250         throws com.liferay.portal.SystemException;
251 
252     public int countByC_C(long companyId, long classNameId)
253         throws com.liferay.portal.SystemException;
254 
255     public int countByC_C_C(long companyId, long classNameId, long classPK)
256         throws com.liferay.portal.SystemException;
257 
258     public int countByC_C_C_P(long companyId, long classNameId, long classPK,
259         boolean primary) throws com.liferay.portal.SystemException;
260 
261     public int countAll() throws com.liferay.portal.SystemException;
262 }