1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20 import com.liferay.portal.model.LayoutPrototype;
21
22 import java.util.List;
23
24
37 public class LayoutPrototypeUtil {
38
41 public static void clearCache() {
42 getPersistence().clearCache();
43 }
44
45
48 public static void clearCache(LayoutPrototype layoutPrototype) {
49 getPersistence().clearCache(layoutPrototype);
50 }
51
52
55 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
56 throws SystemException {
57 return getPersistence().countWithDynamicQuery(dynamicQuery);
58 }
59
60
63 public static List<LayoutPrototype> findWithDynamicQuery(
64 DynamicQuery dynamicQuery) throws SystemException {
65 return getPersistence().findWithDynamicQuery(dynamicQuery);
66 }
67
68
71 public static List<LayoutPrototype> findWithDynamicQuery(
72 DynamicQuery dynamicQuery, int start, int end)
73 throws SystemException {
74 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
75 }
76
77
80 public static LayoutPrototype remove(LayoutPrototype layoutPrototype)
81 throws SystemException {
82 return getPersistence().remove(layoutPrototype);
83 }
84
85
88 public static LayoutPrototype update(LayoutPrototype layoutPrototype,
89 boolean merge) throws SystemException {
90 return getPersistence().update(layoutPrototype, merge);
91 }
92
93 public static void cacheResult(
94 com.liferay.portal.model.LayoutPrototype layoutPrototype) {
95 getPersistence().cacheResult(layoutPrototype);
96 }
97
98 public static void cacheResult(
99 java.util.List<com.liferay.portal.model.LayoutPrototype> layoutPrototypes) {
100 getPersistence().cacheResult(layoutPrototypes);
101 }
102
103 public static com.liferay.portal.model.LayoutPrototype create(
104 long layoutPrototypeId) {
105 return getPersistence().create(layoutPrototypeId);
106 }
107
108 public static com.liferay.portal.model.LayoutPrototype remove(
109 long layoutPrototypeId)
110 throws com.liferay.portal.NoSuchLayoutPrototypeException,
111 com.liferay.portal.kernel.exception.SystemException {
112 return getPersistence().remove(layoutPrototypeId);
113 }
114
115 public static com.liferay.portal.model.LayoutPrototype updateImpl(
116 com.liferay.portal.model.LayoutPrototype layoutPrototype, boolean merge)
117 throws com.liferay.portal.kernel.exception.SystemException {
118 return getPersistence().updateImpl(layoutPrototype, merge);
119 }
120
121 public static com.liferay.portal.model.LayoutPrototype findByPrimaryKey(
122 long layoutPrototypeId)
123 throws com.liferay.portal.NoSuchLayoutPrototypeException,
124 com.liferay.portal.kernel.exception.SystemException {
125 return getPersistence().findByPrimaryKey(layoutPrototypeId);
126 }
127
128 public static com.liferay.portal.model.LayoutPrototype fetchByPrimaryKey(
129 long layoutPrototypeId)
130 throws com.liferay.portal.kernel.exception.SystemException {
131 return getPersistence().fetchByPrimaryKey(layoutPrototypeId);
132 }
133
134 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
135 long companyId)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 return getPersistence().findByCompanyId(companyId);
138 }
139
140 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
141 long companyId, int start, int end)
142 throws com.liferay.portal.kernel.exception.SystemException {
143 return getPersistence().findByCompanyId(companyId, start, end);
144 }
145
146 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
147 long companyId, int start, int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getPersistence()
151 .findByCompanyId(companyId, start, end, orderByComparator);
152 }
153
154 public static com.liferay.portal.model.LayoutPrototype findByCompanyId_First(
155 long companyId,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.NoSuchLayoutPrototypeException,
158 com.liferay.portal.kernel.exception.SystemException {
159 return getPersistence()
160 .findByCompanyId_First(companyId, orderByComparator);
161 }
162
163 public static com.liferay.portal.model.LayoutPrototype findByCompanyId_Last(
164 long companyId,
165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166 throws com.liferay.portal.NoSuchLayoutPrototypeException,
167 com.liferay.portal.kernel.exception.SystemException {
168 return getPersistence()
169 .findByCompanyId_Last(companyId, orderByComparator);
170 }
171
172 public static com.liferay.portal.model.LayoutPrototype[] findByCompanyId_PrevAndNext(
173 long layoutPrototypeId, long companyId,
174 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175 throws com.liferay.portal.NoSuchLayoutPrototypeException,
176 com.liferay.portal.kernel.exception.SystemException {
177 return getPersistence()
178 .findByCompanyId_PrevAndNext(layoutPrototypeId, companyId,
179 orderByComparator);
180 }
181
182 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
183 long companyId, boolean active)
184 throws com.liferay.portal.kernel.exception.SystemException {
185 return getPersistence().findByC_A(companyId, active);
186 }
187
188 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
189 long companyId, boolean active, int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException {
191 return getPersistence().findByC_A(companyId, active, start, end);
192 }
193
194 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
195 long companyId, boolean active, int start, int end,
196 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197 throws com.liferay.portal.kernel.exception.SystemException {
198 return getPersistence()
199 .findByC_A(companyId, active, start, end, orderByComparator);
200 }
201
202 public static com.liferay.portal.model.LayoutPrototype findByC_A_First(
203 long companyId, boolean active,
204 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205 throws com.liferay.portal.NoSuchLayoutPrototypeException,
206 com.liferay.portal.kernel.exception.SystemException {
207 return getPersistence()
208 .findByC_A_First(companyId, active, orderByComparator);
209 }
210
211 public static com.liferay.portal.model.LayoutPrototype findByC_A_Last(
212 long companyId, boolean active,
213 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214 throws com.liferay.portal.NoSuchLayoutPrototypeException,
215 com.liferay.portal.kernel.exception.SystemException {
216 return getPersistence()
217 .findByC_A_Last(companyId, active, orderByComparator);
218 }
219
220 public static com.liferay.portal.model.LayoutPrototype[] findByC_A_PrevAndNext(
221 long layoutPrototypeId, long companyId, boolean active,
222 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223 throws com.liferay.portal.NoSuchLayoutPrototypeException,
224 com.liferay.portal.kernel.exception.SystemException {
225 return getPersistence()
226 .findByC_A_PrevAndNext(layoutPrototypeId, companyId, active,
227 orderByComparator);
228 }
229
230 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findAll()
231 throws com.liferay.portal.kernel.exception.SystemException {
232 return getPersistence().findAll();
233 }
234
235 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findAll(
236 int start, int end)
237 throws com.liferay.portal.kernel.exception.SystemException {
238 return getPersistence().findAll(start, end);
239 }
240
241 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findAll(
242 int start, int end,
243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 return getPersistence().findAll(start, end, orderByComparator);
246 }
247
248 public static void removeByCompanyId(long companyId)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 getPersistence().removeByCompanyId(companyId);
251 }
252
253 public static void removeByC_A(long companyId, boolean active)
254 throws com.liferay.portal.kernel.exception.SystemException {
255 getPersistence().removeByC_A(companyId, active);
256 }
257
258 public static void removeAll()
259 throws com.liferay.portal.kernel.exception.SystemException {
260 getPersistence().removeAll();
261 }
262
263 public static int countByCompanyId(long companyId)
264 throws com.liferay.portal.kernel.exception.SystemException {
265 return getPersistence().countByCompanyId(companyId);
266 }
267
268 public static int countByC_A(long companyId, boolean active)
269 throws com.liferay.portal.kernel.exception.SystemException {
270 return getPersistence().countByC_A(companyId, active);
271 }
272
273 public static int countAll()
274 throws com.liferay.portal.kernel.exception.SystemException {
275 return getPersistence().countAll();
276 }
277
278 public static LayoutPrototypePersistence getPersistence() {
279 if (_persistence == null) {
280 _persistence = (LayoutPrototypePersistence)PortalBeanLocatorUtil.locate(LayoutPrototypePersistence.class.getName());
281 }
282
283 return _persistence;
284 }
285
286 public void setPersistence(LayoutPrototypePersistence persistence) {
287 _persistence = persistence;
288 }
289
290 private static LayoutPrototypePersistence _persistence;
291 }