001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.model.Phone;
018
019
025 public interface PhonePersistence extends BasePersistence<Phone> {
026 public void cacheResult(com.liferay.portal.model.Phone phone);
027
028 public void cacheResult(
029 java.util.List<com.liferay.portal.model.Phone> phones);
030
031 public com.liferay.portal.model.Phone create(long phoneId);
032
033 public com.liferay.portal.model.Phone remove(long phoneId)
034 throws com.liferay.portal.NoSuchPhoneException,
035 com.liferay.portal.kernel.exception.SystemException;
036
037 public com.liferay.portal.model.Phone updateImpl(
038 com.liferay.portal.model.Phone phone, boolean merge)
039 throws com.liferay.portal.kernel.exception.SystemException;
040
041 public com.liferay.portal.model.Phone findByPrimaryKey(long phoneId)
042 throws com.liferay.portal.NoSuchPhoneException,
043 com.liferay.portal.kernel.exception.SystemException;
044
045 public com.liferay.portal.model.Phone fetchByPrimaryKey(long phoneId)
046 throws com.liferay.portal.kernel.exception.SystemException;
047
048 public java.util.List<com.liferay.portal.model.Phone> findByCompanyId(
049 long companyId)
050 throws com.liferay.portal.kernel.exception.SystemException;
051
052 public java.util.List<com.liferay.portal.model.Phone> findByCompanyId(
053 long companyId, int start, int end)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056 public java.util.List<com.liferay.portal.model.Phone> findByCompanyId(
057 long companyId, int start, int end,
058 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061 public com.liferay.portal.model.Phone findByCompanyId_First(
062 long companyId,
063 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
064 throws com.liferay.portal.NoSuchPhoneException,
065 com.liferay.portal.kernel.exception.SystemException;
066
067 public com.liferay.portal.model.Phone findByCompanyId_Last(long companyId,
068 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
069 throws com.liferay.portal.NoSuchPhoneException,
070 com.liferay.portal.kernel.exception.SystemException;
071
072 public com.liferay.portal.model.Phone[] findByCompanyId_PrevAndNext(
073 long phoneId, long companyId,
074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075 throws com.liferay.portal.NoSuchPhoneException,
076 com.liferay.portal.kernel.exception.SystemException;
077
078 public java.util.List<com.liferay.portal.model.Phone> findByUserId(
079 long userId) throws com.liferay.portal.kernel.exception.SystemException;
080
081 public java.util.List<com.liferay.portal.model.Phone> findByUserId(
082 long userId, int start, int end)
083 throws com.liferay.portal.kernel.exception.SystemException;
084
085 public java.util.List<com.liferay.portal.model.Phone> findByUserId(
086 long userId, int start, int end,
087 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 public com.liferay.portal.model.Phone findByUserId_First(long userId,
091 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
092 throws com.liferay.portal.NoSuchPhoneException,
093 com.liferay.portal.kernel.exception.SystemException;
094
095 public com.liferay.portal.model.Phone findByUserId_Last(long userId,
096 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097 throws com.liferay.portal.NoSuchPhoneException,
098 com.liferay.portal.kernel.exception.SystemException;
099
100 public com.liferay.portal.model.Phone[] findByUserId_PrevAndNext(
101 long phoneId, long userId,
102 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
103 throws com.liferay.portal.NoSuchPhoneException,
104 com.liferay.portal.kernel.exception.SystemException;
105
106 public java.util.List<com.liferay.portal.model.Phone> findByC_C(
107 long companyId, long classNameId)
108 throws com.liferay.portal.kernel.exception.SystemException;
109
110 public java.util.List<com.liferay.portal.model.Phone> findByC_C(
111 long companyId, long classNameId, int start, int end)
112 throws com.liferay.portal.kernel.exception.SystemException;
113
114 public java.util.List<com.liferay.portal.model.Phone> findByC_C(
115 long companyId, long classNameId, int start, int end,
116 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 public com.liferay.portal.model.Phone findByC_C_First(long companyId,
120 long classNameId,
121 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
122 throws com.liferay.portal.NoSuchPhoneException,
123 com.liferay.portal.kernel.exception.SystemException;
124
125 public com.liferay.portal.model.Phone findByC_C_Last(long companyId,
126 long classNameId,
127 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128 throws com.liferay.portal.NoSuchPhoneException,
129 com.liferay.portal.kernel.exception.SystemException;
130
131 public com.liferay.portal.model.Phone[] findByC_C_PrevAndNext(
132 long phoneId, long companyId, long classNameId,
133 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134 throws com.liferay.portal.NoSuchPhoneException,
135 com.liferay.portal.kernel.exception.SystemException;
136
137 public java.util.List<com.liferay.portal.model.Phone> findByC_C_C(
138 long companyId, long classNameId, long classPK)
139 throws 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, int start, int end)
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 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148 throws com.liferay.portal.kernel.exception.SystemException;
149
150 public com.liferay.portal.model.Phone findByC_C_C_First(long companyId,
151 long classNameId, long classPK,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.NoSuchPhoneException,
154 com.liferay.portal.kernel.exception.SystemException;
155
156 public com.liferay.portal.model.Phone findByC_C_C_Last(long companyId,
157 long classNameId, long classPK,
158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159 throws com.liferay.portal.NoSuchPhoneException,
160 com.liferay.portal.kernel.exception.SystemException;
161
162 public com.liferay.portal.model.Phone[] findByC_C_C_PrevAndNext(
163 long phoneId, long companyId, long classNameId, long classPK,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.NoSuchPhoneException,
166 com.liferay.portal.kernel.exception.SystemException;
167
168 public java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P(
169 long companyId, long classNameId, long classPK, boolean primary)
170 throws 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 int start, int end)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177 public java.util.List<com.liferay.portal.model.Phone> findByC_C_C_P(
178 long companyId, long classNameId, long classPK, boolean primary,
179 int start, int end,
180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181 throws com.liferay.portal.kernel.exception.SystemException;
182
183 public com.liferay.portal.model.Phone findByC_C_C_P_First(long companyId,
184 long classNameId, long classPK, boolean primary,
185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186 throws com.liferay.portal.NoSuchPhoneException,
187 com.liferay.portal.kernel.exception.SystemException;
188
189 public com.liferay.portal.model.Phone findByC_C_C_P_Last(long companyId,
190 long classNameId, long classPK, boolean primary,
191 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
192 throws com.liferay.portal.NoSuchPhoneException,
193 com.liferay.portal.kernel.exception.SystemException;
194
195 public com.liferay.portal.model.Phone[] findByC_C_C_P_PrevAndNext(
196 long phoneId, long companyId, long classNameId, long classPK,
197 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 java.util.List<com.liferay.portal.model.Phone> findAll()
203 throws com.liferay.portal.kernel.exception.SystemException;
204
205 public java.util.List<com.liferay.portal.model.Phone> findAll(int start,
206 int end) throws com.liferay.portal.kernel.exception.SystemException;
207
208 public java.util.List<com.liferay.portal.model.Phone> findAll(int start,
209 int end,
210 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213 public void removeByCompanyId(long companyId)
214 throws com.liferay.portal.kernel.exception.SystemException;
215
216 public void removeByUserId(long userId)
217 throws com.liferay.portal.kernel.exception.SystemException;
218
219 public void removeByC_C(long companyId, long classNameId)
220 throws com.liferay.portal.kernel.exception.SystemException;
221
222 public void removeByC_C_C(long companyId, long classNameId, long classPK)
223 throws com.liferay.portal.kernel.exception.SystemException;
224
225 public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
226 boolean primary)
227 throws com.liferay.portal.kernel.exception.SystemException;
228
229 public void removeAll()
230 throws com.liferay.portal.kernel.exception.SystemException;
231
232 public int countByCompanyId(long companyId)
233 throws com.liferay.portal.kernel.exception.SystemException;
234
235 public int countByUserId(long userId)
236 throws com.liferay.portal.kernel.exception.SystemException;
237
238 public int countByC_C(long companyId, long classNameId)
239 throws com.liferay.portal.kernel.exception.SystemException;
240
241 public int countByC_C_C(long companyId, long classNameId, long classPK)
242 throws com.liferay.portal.kernel.exception.SystemException;
243
244 public int countByC_C_C_P(long companyId, long classNameId, long classPK,
245 boolean primary)
246 throws com.liferay.portal.kernel.exception.SystemException;
247
248 public int countAll()
249 throws com.liferay.portal.kernel.exception.SystemException;
250 }