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 List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49 throws SystemException {
50 return getPersistence().findWithDynamicQuery(dynamicQuery);
51 }
52
53
56 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
57 int start, int end) throws SystemException {
58 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
59 }
60
61
64 public static LayoutPrototype remove(LayoutPrototype layoutPrototype)
65 throws SystemException {
66 return getPersistence().remove(layoutPrototype);
67 }
68
69
72 public static LayoutPrototype update(LayoutPrototype layoutPrototype,
73 boolean merge) throws SystemException {
74 return getPersistence().update(layoutPrototype, merge);
75 }
76
77 public static void cacheResult(
78 com.liferay.portal.model.LayoutPrototype layoutPrototype) {
79 getPersistence().cacheResult(layoutPrototype);
80 }
81
82 public static void cacheResult(
83 java.util.List<com.liferay.portal.model.LayoutPrototype> layoutPrototypes) {
84 getPersistence().cacheResult(layoutPrototypes);
85 }
86
87 public static com.liferay.portal.model.LayoutPrototype create(
88 long layoutPrototypeId) {
89 return getPersistence().create(layoutPrototypeId);
90 }
91
92 public static com.liferay.portal.model.LayoutPrototype remove(
93 long layoutPrototypeId)
94 throws com.liferay.portal.NoSuchLayoutPrototypeException,
95 com.liferay.portal.kernel.exception.SystemException {
96 return getPersistence().remove(layoutPrototypeId);
97 }
98
99 public static com.liferay.portal.model.LayoutPrototype updateImpl(
100 com.liferay.portal.model.LayoutPrototype layoutPrototype, boolean merge)
101 throws com.liferay.portal.kernel.exception.SystemException {
102 return getPersistence().updateImpl(layoutPrototype, merge);
103 }
104
105 public static com.liferay.portal.model.LayoutPrototype findByPrimaryKey(
106 long layoutPrototypeId)
107 throws com.liferay.portal.NoSuchLayoutPrototypeException,
108 com.liferay.portal.kernel.exception.SystemException {
109 return getPersistence().findByPrimaryKey(layoutPrototypeId);
110 }
111
112 public static com.liferay.portal.model.LayoutPrototype fetchByPrimaryKey(
113 long layoutPrototypeId)
114 throws com.liferay.portal.kernel.exception.SystemException {
115 return getPersistence().fetchByPrimaryKey(layoutPrototypeId);
116 }
117
118 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
119 long companyId)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getPersistence().findByCompanyId(companyId);
122 }
123
124 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
125 long companyId, int start, int end)
126 throws com.liferay.portal.kernel.exception.SystemException {
127 return getPersistence().findByCompanyId(companyId, start, end);
128 }
129
130 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByCompanyId(
131 long companyId, int start, int end,
132 com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().findByCompanyId(companyId, start, end, obc);
135 }
136
137 public static com.liferay.portal.model.LayoutPrototype findByCompanyId_First(
138 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
139 throws com.liferay.portal.NoSuchLayoutPrototypeException,
140 com.liferay.portal.kernel.exception.SystemException {
141 return getPersistence().findByCompanyId_First(companyId, obc);
142 }
143
144 public static com.liferay.portal.model.LayoutPrototype findByCompanyId_Last(
145 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.NoSuchLayoutPrototypeException,
147 com.liferay.portal.kernel.exception.SystemException {
148 return getPersistence().findByCompanyId_Last(companyId, obc);
149 }
150
151 public static com.liferay.portal.model.LayoutPrototype[] findByCompanyId_PrevAndNext(
152 long layoutPrototypeId, long companyId,
153 com.liferay.portal.kernel.util.OrderByComparator obc)
154 throws com.liferay.portal.NoSuchLayoutPrototypeException,
155 com.liferay.portal.kernel.exception.SystemException {
156 return getPersistence()
157 .findByCompanyId_PrevAndNext(layoutPrototypeId, companyId,
158 obc);
159 }
160
161 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
162 long companyId, boolean active)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getPersistence().findByC_A(companyId, active);
165 }
166
167 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
168 long companyId, boolean active, int start, int end)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getPersistence().findByC_A(companyId, active, start, end);
171 }
172
173 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findByC_A(
174 long companyId, boolean active, int start, int end,
175 com.liferay.portal.kernel.util.OrderByComparator obc)
176 throws com.liferay.portal.kernel.exception.SystemException {
177 return getPersistence().findByC_A(companyId, active, start, end, obc);
178 }
179
180 public static com.liferay.portal.model.LayoutPrototype findByC_A_First(
181 long companyId, boolean active,
182 com.liferay.portal.kernel.util.OrderByComparator obc)
183 throws com.liferay.portal.NoSuchLayoutPrototypeException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getPersistence().findByC_A_First(companyId, active, obc);
186 }
187
188 public static com.liferay.portal.model.LayoutPrototype findByC_A_Last(
189 long companyId, boolean active,
190 com.liferay.portal.kernel.util.OrderByComparator obc)
191 throws com.liferay.portal.NoSuchLayoutPrototypeException,
192 com.liferay.portal.kernel.exception.SystemException {
193 return getPersistence().findByC_A_Last(companyId, active, obc);
194 }
195
196 public static com.liferay.portal.model.LayoutPrototype[] findByC_A_PrevAndNext(
197 long layoutPrototypeId, long companyId, boolean active,
198 com.liferay.portal.kernel.util.OrderByComparator obc)
199 throws com.liferay.portal.NoSuchLayoutPrototypeException,
200 com.liferay.portal.kernel.exception.SystemException {
201 return getPersistence()
202 .findByC_A_PrevAndNext(layoutPrototypeId, companyId, active,
203 obc);
204 }
205
206 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findAll()
207 throws com.liferay.portal.kernel.exception.SystemException {
208 return getPersistence().findAll();
209 }
210
211 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findAll(
212 int start, int end)
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getPersistence().findAll(start, end);
215 }
216
217 public static java.util.List<com.liferay.portal.model.LayoutPrototype> findAll(
218 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
219 throws com.liferay.portal.kernel.exception.SystemException {
220 return getPersistence().findAll(start, end, obc);
221 }
222
223 public static void removeByCompanyId(long companyId)
224 throws com.liferay.portal.kernel.exception.SystemException {
225 getPersistence().removeByCompanyId(companyId);
226 }
227
228 public static void removeByC_A(long companyId, boolean active)
229 throws com.liferay.portal.kernel.exception.SystemException {
230 getPersistence().removeByC_A(companyId, active);
231 }
232
233 public static void removeAll()
234 throws com.liferay.portal.kernel.exception.SystemException {
235 getPersistence().removeAll();
236 }
237
238 public static int countByCompanyId(long companyId)
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getPersistence().countByCompanyId(companyId);
241 }
242
243 public static int countByC_A(long companyId, boolean active)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 return getPersistence().countByC_A(companyId, active);
246 }
247
248 public static int countAll()
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getPersistence().countAll();
251 }
252
253 public static LayoutPrototypePersistence getPersistence() {
254 if (_persistence == null) {
255 _persistence = (LayoutPrototypePersistence)PortalBeanLocatorUtil.locate(LayoutPrototypePersistence.class.getName());
256 }
257
258 return _persistence;
259 }
260
261 public void setPersistence(LayoutPrototypePersistence persistence) {
262 _persistence = persistence;
263 }
264
265 private static LayoutPrototypePersistence _persistence;
266 }