1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public interface PhonePersistence {
32 public com.liferay.portal.model.Phone create(long phoneId);
33
34 public com.liferay.portal.model.Phone remove(long phoneId)
35 throws com.liferay.portal.SystemException,
36 com.liferay.portal.NoSuchPhoneException;
37
38 public com.liferay.portal.model.Phone remove(
39 com.liferay.portal.model.Phone phone)
40 throws com.liferay.portal.SystemException;
41
42 public com.liferay.portal.model.Phone update(
43 com.liferay.portal.model.Phone phone)
44 throws com.liferay.portal.SystemException;
45
46 public com.liferay.portal.model.Phone update(
47 com.liferay.portal.model.Phone phone, boolean merge)
48 throws com.liferay.portal.SystemException;
49
50 public com.liferay.portal.model.Phone updateImpl(
51 com.liferay.portal.model.Phone phone, boolean merge)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portal.model.Phone findByPrimaryKey(long phoneId)
55 throws com.liferay.portal.SystemException,
56 com.liferay.portal.NoSuchPhoneException;
57
58 public com.liferay.portal.model.Phone fetchByPrimaryKey(long phoneId)
59 throws com.liferay.portal.SystemException;
60
61 public java.util.List findByCompanyId(long companyId)
62 throws com.liferay.portal.SystemException;
63
64 public java.util.List findByCompanyId(long companyId, int begin, int end)
65 throws com.liferay.portal.SystemException;
66
67 public java.util.List findByCompanyId(long companyId, int begin, int end,
68 com.liferay.portal.kernel.util.OrderByComparator obc)
69 throws com.liferay.portal.SystemException;
70
71 public com.liferay.portal.model.Phone findByCompanyId_First(
72 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
73 throws com.liferay.portal.SystemException,
74 com.liferay.portal.NoSuchPhoneException;
75
76 public com.liferay.portal.model.Phone findByCompanyId_Last(long companyId,
77 com.liferay.portal.kernel.util.OrderByComparator obc)
78 throws com.liferay.portal.SystemException,
79 com.liferay.portal.NoSuchPhoneException;
80
81 public com.liferay.portal.model.Phone[] findByCompanyId_PrevAndNext(
82 long phoneId, long companyId,
83 com.liferay.portal.kernel.util.OrderByComparator obc)
84 throws com.liferay.portal.SystemException,
85 com.liferay.portal.NoSuchPhoneException;
86
87 public java.util.List findByUserId(long userId)
88 throws com.liferay.portal.SystemException;
89
90 public java.util.List findByUserId(long userId, int begin, int end)
91 throws com.liferay.portal.SystemException;
92
93 public java.util.List findByUserId(long userId, int begin, int end,
94 com.liferay.portal.kernel.util.OrderByComparator obc)
95 throws com.liferay.portal.SystemException;
96
97 public com.liferay.portal.model.Phone findByUserId_First(long userId,
98 com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException,
100 com.liferay.portal.NoSuchPhoneException;
101
102 public com.liferay.portal.model.Phone findByUserId_Last(long userId,
103 com.liferay.portal.kernel.util.OrderByComparator obc)
104 throws com.liferay.portal.SystemException,
105 com.liferay.portal.NoSuchPhoneException;
106
107 public com.liferay.portal.model.Phone[] findByUserId_PrevAndNext(
108 long phoneId, long userId,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portal.NoSuchPhoneException;
112
113 public java.util.List findByC_C(long companyId, long classNameId)
114 throws com.liferay.portal.SystemException;
115
116 public java.util.List findByC_C(long companyId, long classNameId,
117 int begin, int end) throws com.liferay.portal.SystemException;
118
119 public java.util.List findByC_C(long companyId, long classNameId,
120 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException;
122
123 public com.liferay.portal.model.Phone findByC_C_First(long companyId,
124 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portal.NoSuchPhoneException;
127
128 public com.liferay.portal.model.Phone findByC_C_Last(long companyId,
129 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
130 throws com.liferay.portal.SystemException,
131 com.liferay.portal.NoSuchPhoneException;
132
133 public com.liferay.portal.model.Phone[] findByC_C_PrevAndNext(
134 long phoneId, long companyId, long classNameId,
135 com.liferay.portal.kernel.util.OrderByComparator obc)
136 throws com.liferay.portal.SystemException,
137 com.liferay.portal.NoSuchPhoneException;
138
139 public java.util.List findByC_C_C(long companyId, long classNameId,
140 long classPK) throws com.liferay.portal.SystemException;
141
142 public java.util.List findByC_C_C(long companyId, long classNameId,
143 long classPK, int begin, int end)
144 throws com.liferay.portal.SystemException;
145
146 public java.util.List findByC_C_C(long companyId, long classNameId,
147 long classPK, int begin, int end,
148 com.liferay.portal.kernel.util.OrderByComparator obc)
149 throws com.liferay.portal.SystemException;
150
151 public com.liferay.portal.model.Phone findByC_C_C_First(long companyId,
152 long classNameId, long classPK,
153 com.liferay.portal.kernel.util.OrderByComparator obc)
154 throws com.liferay.portal.SystemException,
155 com.liferay.portal.NoSuchPhoneException;
156
157 public com.liferay.portal.model.Phone findByC_C_C_Last(long companyId,
158 long classNameId, long classPK,
159 com.liferay.portal.kernel.util.OrderByComparator obc)
160 throws com.liferay.portal.SystemException,
161 com.liferay.portal.NoSuchPhoneException;
162
163 public com.liferay.portal.model.Phone[] findByC_C_C_PrevAndNext(
164 long phoneId, long companyId, long classNameId, long classPK,
165 com.liferay.portal.kernel.util.OrderByComparator obc)
166 throws com.liferay.portal.SystemException,
167 com.liferay.portal.NoSuchPhoneException;
168
169 public java.util.List findByC_C_C_P(long companyId, long classNameId,
170 long classPK, boolean primary)
171 throws com.liferay.portal.SystemException;
172
173 public java.util.List findByC_C_C_P(long companyId, long classNameId,
174 long classPK, boolean primary, int begin, int end)
175 throws com.liferay.portal.SystemException;
176
177 public java.util.List findByC_C_C_P(long companyId, long classNameId,
178 long classPK, boolean primary, int begin, int end,
179 com.liferay.portal.kernel.util.OrderByComparator obc)
180 throws com.liferay.portal.SystemException;
181
182 public com.liferay.portal.model.Phone findByC_C_C_P_First(long companyId,
183 long classNameId, long classPK, boolean primary,
184 com.liferay.portal.kernel.util.OrderByComparator obc)
185 throws com.liferay.portal.SystemException,
186 com.liferay.portal.NoSuchPhoneException;
187
188 public com.liferay.portal.model.Phone findByC_C_C_P_Last(long companyId,
189 long classNameId, long classPK, boolean primary,
190 com.liferay.portal.kernel.util.OrderByComparator obc)
191 throws com.liferay.portal.SystemException,
192 com.liferay.portal.NoSuchPhoneException;
193
194 public com.liferay.portal.model.Phone[] findByC_C_C_P_PrevAndNext(
195 long phoneId, long companyId, long classNameId, long classPK,
196 boolean primary, com.liferay.portal.kernel.util.OrderByComparator obc)
197 throws com.liferay.portal.SystemException,
198 com.liferay.portal.NoSuchPhoneException;
199
200 public java.util.List findWithDynamicQuery(
201 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
202 throws com.liferay.portal.SystemException;
203
204 public java.util.List findWithDynamicQuery(
205 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
206 int begin, int end) throws com.liferay.portal.SystemException;
207
208 public java.util.List findAll() throws com.liferay.portal.SystemException;
209
210 public java.util.List findAll(int begin, int end)
211 throws com.liferay.portal.SystemException;
212
213 public java.util.List findAll(int begin, int end,
214 com.liferay.portal.kernel.util.OrderByComparator obc)
215 throws com.liferay.portal.SystemException;
216
217 public void removeByCompanyId(long companyId)
218 throws com.liferay.portal.SystemException;
219
220 public void removeByUserId(long userId)
221 throws com.liferay.portal.SystemException;
222
223 public void removeByC_C(long companyId, long classNameId)
224 throws com.liferay.portal.SystemException;
225
226 public void removeByC_C_C(long companyId, long classNameId, long classPK)
227 throws com.liferay.portal.SystemException;
228
229 public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
230 boolean primary) throws com.liferay.portal.SystemException;
231
232 public void removeAll() throws com.liferay.portal.SystemException;
233
234 public int countByCompanyId(long companyId)
235 throws com.liferay.portal.SystemException;
236
237 public int countByUserId(long userId)
238 throws com.liferay.portal.SystemException;
239
240 public int countByC_C(long companyId, long classNameId)
241 throws com.liferay.portal.SystemException;
242
243 public int countByC_C_C(long companyId, long classNameId, long classPK)
244 throws com.liferay.portal.SystemException;
245
246 public int countByC_C_C_P(long companyId, long classNameId, long classPK,
247 boolean primary) throws com.liferay.portal.SystemException;
248
249 public int countAll() throws com.liferay.portal.SystemException;
250 }