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