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