001
014
015 package com.liferay.portlet.expando.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.service.ServiceContext;
022
023 import com.liferay.portlet.expando.model.ExpandoRow;
024
025 import java.util.List;
026
027
033 public class ExpandoRowUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(ExpandoRow expandoRow) {
045 getPersistence().clearCache(expandoRow);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<ExpandoRow> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<ExpandoRow> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<ExpandoRow> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static ExpandoRow remove(ExpandoRow expandoRow)
088 throws SystemException {
089 return getPersistence().remove(expandoRow);
090 }
091
092
095 public static ExpandoRow update(ExpandoRow expandoRow, boolean merge)
096 throws SystemException {
097 return getPersistence().update(expandoRow, merge);
098 }
099
100
103 public static ExpandoRow update(ExpandoRow expandoRow, boolean merge,
104 ServiceContext serviceContext) throws SystemException {
105 return getPersistence().update(expandoRow, merge, serviceContext);
106 }
107
108 public static void cacheResult(
109 com.liferay.portlet.expando.model.ExpandoRow expandoRow) {
110 getPersistence().cacheResult(expandoRow);
111 }
112
113 public static void cacheResult(
114 java.util.List<com.liferay.portlet.expando.model.ExpandoRow> expandoRows) {
115 getPersistence().cacheResult(expandoRows);
116 }
117
118 public static com.liferay.portlet.expando.model.ExpandoRow create(
119 long rowId) {
120 return getPersistence().create(rowId);
121 }
122
123 public static com.liferay.portlet.expando.model.ExpandoRow remove(
124 long rowId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.expando.NoSuchRowException {
127 return getPersistence().remove(rowId);
128 }
129
130 public static com.liferay.portlet.expando.model.ExpandoRow updateImpl(
131 com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
132 throws com.liferay.portal.kernel.exception.SystemException {
133 return getPersistence().updateImpl(expandoRow, merge);
134 }
135
136 public static com.liferay.portlet.expando.model.ExpandoRow findByPrimaryKey(
137 long rowId)
138 throws com.liferay.portal.kernel.exception.SystemException,
139 com.liferay.portlet.expando.NoSuchRowException {
140 return getPersistence().findByPrimaryKey(rowId);
141 }
142
143 public static com.liferay.portlet.expando.model.ExpandoRow fetchByPrimaryKey(
144 long rowId) throws com.liferay.portal.kernel.exception.SystemException {
145 return getPersistence().fetchByPrimaryKey(rowId);
146 }
147
148 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
149 long tableId)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getPersistence().findByTableId(tableId);
152 }
153
154 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
155 long tableId, int start, int end)
156 throws com.liferay.portal.kernel.exception.SystemException {
157 return getPersistence().findByTableId(tableId, start, end);
158 }
159
160 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
161 long tableId, int start, int end,
162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getPersistence()
165 .findByTableId(tableId, start, end, orderByComparator);
166 }
167
168 public static com.liferay.portlet.expando.model.ExpandoRow findByTableId_First(
169 long tableId,
170 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171 throws com.liferay.portal.kernel.exception.SystemException,
172 com.liferay.portlet.expando.NoSuchRowException {
173 return getPersistence().findByTableId_First(tableId, orderByComparator);
174 }
175
176 public static com.liferay.portlet.expando.model.ExpandoRow findByTableId_Last(
177 long tableId,
178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179 throws com.liferay.portal.kernel.exception.SystemException,
180 com.liferay.portlet.expando.NoSuchRowException {
181 return getPersistence().findByTableId_Last(tableId, orderByComparator);
182 }
183
184 public static com.liferay.portlet.expando.model.ExpandoRow[] findByTableId_PrevAndNext(
185 long rowId, long tableId,
186 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187 throws com.liferay.portal.kernel.exception.SystemException,
188 com.liferay.portlet.expando.NoSuchRowException {
189 return getPersistence()
190 .findByTableId_PrevAndNext(rowId, tableId, orderByComparator);
191 }
192
193 public static com.liferay.portlet.expando.model.ExpandoRow findByT_C(
194 long tableId, long classPK)
195 throws com.liferay.portal.kernel.exception.SystemException,
196 com.liferay.portlet.expando.NoSuchRowException {
197 return getPersistence().findByT_C(tableId, classPK);
198 }
199
200 public static com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
201 long tableId, long classPK)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getPersistence().fetchByT_C(tableId, classPK);
204 }
205
206 public static com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
207 long tableId, long classPK, boolean retrieveFromCache)
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return getPersistence().fetchByT_C(tableId, classPK, retrieveFromCache);
210 }
211
212 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll()
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getPersistence().findAll();
215 }
216
217 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
218 int start, int end)
219 throws com.liferay.portal.kernel.exception.SystemException {
220 return getPersistence().findAll(start, end);
221 }
222
223 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
224 int start, int end,
225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226 throws com.liferay.portal.kernel.exception.SystemException {
227 return getPersistence().findAll(start, end, orderByComparator);
228 }
229
230 public static void removeByTableId(long tableId)
231 throws com.liferay.portal.kernel.exception.SystemException {
232 getPersistence().removeByTableId(tableId);
233 }
234
235 public static void removeByT_C(long tableId, long classPK)
236 throws com.liferay.portal.kernel.exception.SystemException,
237 com.liferay.portlet.expando.NoSuchRowException {
238 getPersistence().removeByT_C(tableId, classPK);
239 }
240
241 public static void removeAll()
242 throws com.liferay.portal.kernel.exception.SystemException {
243 getPersistence().removeAll();
244 }
245
246 public static int countByTableId(long tableId)
247 throws com.liferay.portal.kernel.exception.SystemException {
248 return getPersistence().countByTableId(tableId);
249 }
250
251 public static int countByT_C(long tableId, long classPK)
252 throws com.liferay.portal.kernel.exception.SystemException {
253 return getPersistence().countByT_C(tableId, classPK);
254 }
255
256 public static int countAll()
257 throws com.liferay.portal.kernel.exception.SystemException {
258 return getPersistence().countAll();
259 }
260
261 public static ExpandoRowPersistence getPersistence() {
262 if (_persistence == null) {
263 _persistence = (ExpandoRowPersistence)PortalBeanLocatorUtil.locate(ExpandoRowPersistence.class.getName());
264 }
265
266 return _persistence;
267 }
268
269 public void setPersistence(ExpandoRowPersistence persistence) {
270 _persistence = persistence;
271 }
272
273 private static ExpandoRowPersistence _persistence;
274 }