1
14
15 package com.liferay.portlet.expando.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
21 import com.liferay.portlet.expando.model.ExpandoRow;
22
23 import java.util.List;
24
25
38 public class ExpandoRowUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(ExpandoRow expandoRow) {
50 getPersistence().clearCache(expandoRow);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<ExpandoRow> findWithDynamicQuery(
65 DynamicQuery dynamicQuery) throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<ExpandoRow> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static ExpandoRow remove(ExpandoRow expandoRow)
82 throws SystemException {
83 return getPersistence().remove(expandoRow);
84 }
85
86
89 public static ExpandoRow update(ExpandoRow expandoRow, boolean merge)
90 throws SystemException {
91 return getPersistence().update(expandoRow, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.expando.model.ExpandoRow expandoRow) {
96 getPersistence().cacheResult(expandoRow);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.expando.model.ExpandoRow> expandoRows) {
101 getPersistence().cacheResult(expandoRows);
102 }
103
104 public static com.liferay.portlet.expando.model.ExpandoRow create(
105 long rowId) {
106 return getPersistence().create(rowId);
107 }
108
109 public static com.liferay.portlet.expando.model.ExpandoRow remove(
110 long rowId)
111 throws com.liferay.portal.kernel.exception.SystemException,
112 com.liferay.portlet.expando.NoSuchRowException {
113 return getPersistence().remove(rowId);
114 }
115
116 public static com.liferay.portlet.expando.model.ExpandoRow updateImpl(
117 com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
118 throws com.liferay.portal.kernel.exception.SystemException {
119 return getPersistence().updateImpl(expandoRow, merge);
120 }
121
122 public static com.liferay.portlet.expando.model.ExpandoRow findByPrimaryKey(
123 long rowId)
124 throws com.liferay.portal.kernel.exception.SystemException,
125 com.liferay.portlet.expando.NoSuchRowException {
126 return getPersistence().findByPrimaryKey(rowId);
127 }
128
129 public static com.liferay.portlet.expando.model.ExpandoRow fetchByPrimaryKey(
130 long rowId) throws com.liferay.portal.kernel.exception.SystemException {
131 return getPersistence().fetchByPrimaryKey(rowId);
132 }
133
134 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
135 long tableId)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 return getPersistence().findByTableId(tableId);
138 }
139
140 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
141 long tableId, int start, int end)
142 throws com.liferay.portal.kernel.exception.SystemException {
143 return getPersistence().findByTableId(tableId, start, end);
144 }
145
146 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
147 long tableId, int start, int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getPersistence()
151 .findByTableId(tableId, start, end, orderByComparator);
152 }
153
154 public static com.liferay.portlet.expando.model.ExpandoRow findByTableId_First(
155 long tableId,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.kernel.exception.SystemException,
158 com.liferay.portlet.expando.NoSuchRowException {
159 return getPersistence().findByTableId_First(tableId, orderByComparator);
160 }
161
162 public static com.liferay.portlet.expando.model.ExpandoRow findByTableId_Last(
163 long tableId,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.kernel.exception.SystemException,
166 com.liferay.portlet.expando.NoSuchRowException {
167 return getPersistence().findByTableId_Last(tableId, orderByComparator);
168 }
169
170 public static com.liferay.portlet.expando.model.ExpandoRow[] findByTableId_PrevAndNext(
171 long rowId, long tableId,
172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173 throws com.liferay.portal.kernel.exception.SystemException,
174 com.liferay.portlet.expando.NoSuchRowException {
175 return getPersistence()
176 .findByTableId_PrevAndNext(rowId, tableId, orderByComparator);
177 }
178
179 public static com.liferay.portlet.expando.model.ExpandoRow findByT_C(
180 long tableId, long classPK)
181 throws com.liferay.portal.kernel.exception.SystemException,
182 com.liferay.portlet.expando.NoSuchRowException {
183 return getPersistence().findByT_C(tableId, classPK);
184 }
185
186 public static com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
187 long tableId, long classPK)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getPersistence().fetchByT_C(tableId, classPK);
190 }
191
192 public static com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
193 long tableId, long classPK, boolean retrieveFromCache)
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getPersistence().fetchByT_C(tableId, classPK, retrieveFromCache);
196 }
197
198 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll()
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getPersistence().findAll();
201 }
202
203 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
204 int start, int end)
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return getPersistence().findAll(start, end);
207 }
208
209 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
210 int start, int end,
211 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getPersistence().findAll(start, end, orderByComparator);
214 }
215
216 public static void removeByTableId(long tableId)
217 throws com.liferay.portal.kernel.exception.SystemException {
218 getPersistence().removeByTableId(tableId);
219 }
220
221 public static void removeByT_C(long tableId, long classPK)
222 throws com.liferay.portal.kernel.exception.SystemException,
223 com.liferay.portlet.expando.NoSuchRowException {
224 getPersistence().removeByT_C(tableId, classPK);
225 }
226
227 public static void removeAll()
228 throws com.liferay.portal.kernel.exception.SystemException {
229 getPersistence().removeAll();
230 }
231
232 public static int countByTableId(long tableId)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 return getPersistence().countByTableId(tableId);
235 }
236
237 public static int countByT_C(long tableId, long classPK)
238 throws com.liferay.portal.kernel.exception.SystemException {
239 return getPersistence().countByT_C(tableId, classPK);
240 }
241
242 public static int countAll()
243 throws com.liferay.portal.kernel.exception.SystemException {
244 return getPersistence().countAll();
245 }
246
247 public static ExpandoRowPersistence getPersistence() {
248 if (_persistence == null) {
249 _persistence = (ExpandoRowPersistence)PortalBeanLocatorUtil.locate(ExpandoRowPersistence.class.getName());
250 }
251
252 return _persistence;
253 }
254
255 public void setPersistence(ExpandoRowPersistence persistence) {
256 _persistence = persistence;
257 }
258
259 private static ExpandoRowPersistence _persistence;
260 }