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.LayoutSet;
21
22 import java.util.List;
23
24
37 public class LayoutSetUtil {
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 LayoutSet remove(LayoutSet layoutSet)
65 throws SystemException {
66 return getPersistence().remove(layoutSet);
67 }
68
69
72 public static LayoutSet update(LayoutSet layoutSet, boolean merge)
73 throws SystemException {
74 return getPersistence().update(layoutSet, merge);
75 }
76
77 public static void cacheResult(com.liferay.portal.model.LayoutSet layoutSet) {
78 getPersistence().cacheResult(layoutSet);
79 }
80
81 public static void cacheResult(
82 java.util.List<com.liferay.portal.model.LayoutSet> layoutSets) {
83 getPersistence().cacheResult(layoutSets);
84 }
85
86 public static com.liferay.portal.model.LayoutSet create(long layoutSetId) {
87 return getPersistence().create(layoutSetId);
88 }
89
90 public static com.liferay.portal.model.LayoutSet remove(long layoutSetId)
91 throws com.liferay.portal.NoSuchLayoutSetException,
92 com.liferay.portal.kernel.exception.SystemException {
93 return getPersistence().remove(layoutSetId);
94 }
95
96 public static com.liferay.portal.model.LayoutSet updateImpl(
97 com.liferay.portal.model.LayoutSet layoutSet, boolean merge)
98 throws com.liferay.portal.kernel.exception.SystemException {
99 return getPersistence().updateImpl(layoutSet, merge);
100 }
101
102 public static com.liferay.portal.model.LayoutSet findByPrimaryKey(
103 long layoutSetId)
104 throws com.liferay.portal.NoSuchLayoutSetException,
105 com.liferay.portal.kernel.exception.SystemException {
106 return getPersistence().findByPrimaryKey(layoutSetId);
107 }
108
109 public static com.liferay.portal.model.LayoutSet fetchByPrimaryKey(
110 long layoutSetId)
111 throws com.liferay.portal.kernel.exception.SystemException {
112 return getPersistence().fetchByPrimaryKey(layoutSetId);
113 }
114
115 public static java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
116 long groupId)
117 throws com.liferay.portal.kernel.exception.SystemException {
118 return getPersistence().findByGroupId(groupId);
119 }
120
121 public static java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
122 long groupId, int start, int end)
123 throws com.liferay.portal.kernel.exception.SystemException {
124 return getPersistence().findByGroupId(groupId, start, end);
125 }
126
127 public static java.util.List<com.liferay.portal.model.LayoutSet> findByGroupId(
128 long groupId, int start, int end,
129 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130 throws com.liferay.portal.kernel.exception.SystemException {
131 return getPersistence()
132 .findByGroupId(groupId, start, end, orderByComparator);
133 }
134
135 public static com.liferay.portal.model.LayoutSet findByGroupId_First(
136 long groupId,
137 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138 throws com.liferay.portal.NoSuchLayoutSetException,
139 com.liferay.portal.kernel.exception.SystemException {
140 return getPersistence().findByGroupId_First(groupId, orderByComparator);
141 }
142
143 public static com.liferay.portal.model.LayoutSet findByGroupId_Last(
144 long groupId,
145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146 throws com.liferay.portal.NoSuchLayoutSetException,
147 com.liferay.portal.kernel.exception.SystemException {
148 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
149 }
150
151 public static com.liferay.portal.model.LayoutSet[] findByGroupId_PrevAndNext(
152 long layoutSetId, long groupId,
153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154 throws com.liferay.portal.NoSuchLayoutSetException,
155 com.liferay.portal.kernel.exception.SystemException {
156 return getPersistence()
157 .findByGroupId_PrevAndNext(layoutSetId, groupId,
158 orderByComparator);
159 }
160
161 public static com.liferay.portal.model.LayoutSet findByVirtualHost(
162 java.lang.String virtualHost)
163 throws com.liferay.portal.NoSuchLayoutSetException,
164 com.liferay.portal.kernel.exception.SystemException {
165 return getPersistence().findByVirtualHost(virtualHost);
166 }
167
168 public static com.liferay.portal.model.LayoutSet fetchByVirtualHost(
169 java.lang.String virtualHost)
170 throws com.liferay.portal.kernel.exception.SystemException {
171 return getPersistence().fetchByVirtualHost(virtualHost);
172 }
173
174 public static com.liferay.portal.model.LayoutSet fetchByVirtualHost(
175 java.lang.String virtualHost, boolean retrieveFromCache)
176 throws com.liferay.portal.kernel.exception.SystemException {
177 return getPersistence()
178 .fetchByVirtualHost(virtualHost, retrieveFromCache);
179 }
180
181 public static com.liferay.portal.model.LayoutSet findByG_P(long groupId,
182 boolean privateLayout)
183 throws com.liferay.portal.NoSuchLayoutSetException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getPersistence().findByG_P(groupId, privateLayout);
186 }
187
188 public static com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
189 boolean privateLayout)
190 throws com.liferay.portal.kernel.exception.SystemException {
191 return getPersistence().fetchByG_P(groupId, privateLayout);
192 }
193
194 public static com.liferay.portal.model.LayoutSet fetchByG_P(long groupId,
195 boolean privateLayout, boolean retrieveFromCache)
196 throws com.liferay.portal.kernel.exception.SystemException {
197 return getPersistence()
198 .fetchByG_P(groupId, privateLayout, retrieveFromCache);
199 }
200
201 public static java.util.List<com.liferay.portal.model.LayoutSet> findAll()
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getPersistence().findAll();
204 }
205
206 public static java.util.List<com.liferay.portal.model.LayoutSet> findAll(
207 int start, int end)
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return getPersistence().findAll(start, end);
210 }
211
212 public static java.util.List<com.liferay.portal.model.LayoutSet> findAll(
213 int start, int end,
214 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getPersistence().findAll(start, end, orderByComparator);
217 }
218
219 public static void removeByGroupId(long groupId)
220 throws com.liferay.portal.kernel.exception.SystemException {
221 getPersistence().removeByGroupId(groupId);
222 }
223
224 public static void removeByVirtualHost(java.lang.String virtualHost)
225 throws com.liferay.portal.NoSuchLayoutSetException,
226 com.liferay.portal.kernel.exception.SystemException {
227 getPersistence().removeByVirtualHost(virtualHost);
228 }
229
230 public static void removeByG_P(long groupId, boolean privateLayout)
231 throws com.liferay.portal.NoSuchLayoutSetException,
232 com.liferay.portal.kernel.exception.SystemException {
233 getPersistence().removeByG_P(groupId, privateLayout);
234 }
235
236 public static void removeAll()
237 throws com.liferay.portal.kernel.exception.SystemException {
238 getPersistence().removeAll();
239 }
240
241 public static int countByGroupId(long groupId)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return getPersistence().countByGroupId(groupId);
244 }
245
246 public static int countByVirtualHost(java.lang.String virtualHost)
247 throws com.liferay.portal.kernel.exception.SystemException {
248 return getPersistence().countByVirtualHost(virtualHost);
249 }
250
251 public static int countByG_P(long groupId, boolean privateLayout)
252 throws com.liferay.portal.kernel.exception.SystemException {
253 return getPersistence().countByG_P(groupId, privateLayout);
254 }
255
256 public static int countAll()
257 throws com.liferay.portal.kernel.exception.SystemException {
258 return getPersistence().countAll();
259 }
260
261 public static LayoutSetPersistence getPersistence() {
262 if (_persistence == null) {
263 _persistence = (LayoutSetPersistence)PortalBeanLocatorUtil.locate(LayoutSetPersistence.class.getName());
264 }
265
266 return _persistence;
267 }
268
269 public void setPersistence(LayoutSetPersistence persistence) {
270 _persistence = persistence;
271 }
272
273 private static LayoutSetPersistence _persistence;
274 }