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 obc)
141 throws com.liferay.portal.SystemException {
142 return getPersistence().findByTableId(tableId, start, end, obc);
143 }
144
145 public static com.liferay.portlet.expando.model.ExpandoRow findByTableId_First(
146 long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
147 throws com.liferay.portal.SystemException,
148 com.liferay.portlet.expando.NoSuchRowException {
149 return getPersistence().findByTableId_First(tableId, obc);
150 }
151
152 public static com.liferay.portlet.expando.model.ExpandoRow findByTableId_Last(
153 long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
154 throws com.liferay.portal.SystemException,
155 com.liferay.portlet.expando.NoSuchRowException {
156 return getPersistence().findByTableId_Last(tableId, obc);
157 }
158
159 public static com.liferay.portlet.expando.model.ExpandoRow[] findByTableId_PrevAndNext(
160 long rowId, long tableId,
161 com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.SystemException,
163 com.liferay.portlet.expando.NoSuchRowException {
164 return getPersistence().findByTableId_PrevAndNext(rowId, tableId, obc);
165 }
166
167 public static com.liferay.portlet.expando.model.ExpandoRow findByT_C(
168 long tableId, long classPK)
169 throws com.liferay.portal.SystemException,
170 com.liferay.portlet.expando.NoSuchRowException {
171 return getPersistence().findByT_C(tableId, classPK);
172 }
173
174 public static com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
175 long tableId, long classPK) throws com.liferay.portal.SystemException {
176 return getPersistence().fetchByT_C(tableId, classPK);
177 }
178
179 public static com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
180 long tableId, long classPK, boolean retrieveFromCache)
181 throws com.liferay.portal.SystemException {
182 return getPersistence().fetchByT_C(tableId, classPK, retrieveFromCache);
183 }
184
185 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll()
186 throws com.liferay.portal.SystemException {
187 return getPersistence().findAll();
188 }
189
190 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
191 int start, int end) throws com.liferay.portal.SystemException {
192 return getPersistence().findAll(start, end);
193 }
194
195 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
196 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
197 throws com.liferay.portal.SystemException {
198 return getPersistence().findAll(start, end, obc);
199 }
200
201 public static void removeByTableId(long tableId)
202 throws com.liferay.portal.SystemException {
203 getPersistence().removeByTableId(tableId);
204 }
205
206 public static void removeByT_C(long tableId, long classPK)
207 throws com.liferay.portal.SystemException,
208 com.liferay.portlet.expando.NoSuchRowException {
209 getPersistence().removeByT_C(tableId, classPK);
210 }
211
212 public static void removeAll() throws com.liferay.portal.SystemException {
213 getPersistence().removeAll();
214 }
215
216 public static int countByTableId(long tableId)
217 throws com.liferay.portal.SystemException {
218 return getPersistence().countByTableId(tableId);
219 }
220
221 public static int countByT_C(long tableId, long classPK)
222 throws com.liferay.portal.SystemException {
223 return getPersistence().countByT_C(tableId, classPK);
224 }
225
226 public static int countAll() throws com.liferay.portal.SystemException {
227 return getPersistence().countAll();
228 }
229
230 public static ExpandoRowPersistence getPersistence() {
231 if (_persistence == null) {
232 _persistence = (ExpandoRowPersistence)PortalBeanLocatorUtil.locate(ExpandoRowPersistence.class.getName());
233 }
234
235 return _persistence;
236 }
237
238 public void setPersistence(ExpandoRowPersistence persistence) {
239 _persistence = persistence;
240 }
241
242 private static ExpandoRowPersistence _persistence;
243 }