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 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.kernel.exception.SystemException,
96 com.liferay.portlet.expando.NoSuchRowException {
97 return getPersistence().remove(rowId);
98 }
99
100 public static com.liferay.portlet.expando.model.ExpandoRow updateImpl(
101 com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getPersistence().updateImpl(expandoRow, merge);
104 }
105
106 public static com.liferay.portlet.expando.model.ExpandoRow findByPrimaryKey(
107 long rowId)
108 throws com.liferay.portal.kernel.exception.SystemException,
109 com.liferay.portlet.expando.NoSuchRowException {
110 return getPersistence().findByPrimaryKey(rowId);
111 }
112
113 public static com.liferay.portlet.expando.model.ExpandoRow fetchByPrimaryKey(
114 long rowId) throws com.liferay.portal.kernel.exception.SystemException {
115 return getPersistence().fetchByPrimaryKey(rowId);
116 }
117
118 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
119 long tableId)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getPersistence().findByTableId(tableId);
122 }
123
124 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
125 long tableId, int start, int end)
126 throws com.liferay.portal.kernel.exception.SystemException {
127 return getPersistence().findByTableId(tableId, start, end);
128 }
129
130 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
131 long tableId, int start, int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence()
135 .findByTableId(tableId, start, end, orderByComparator);
136 }
137
138 public static com.liferay.portlet.expando.model.ExpandoRow findByTableId_First(
139 long tableId,
140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141 throws com.liferay.portal.kernel.exception.SystemException,
142 com.liferay.portlet.expando.NoSuchRowException {
143 return getPersistence().findByTableId_First(tableId, orderByComparator);
144 }
145
146 public static com.liferay.portlet.expando.model.ExpandoRow findByTableId_Last(
147 long tableId,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException,
150 com.liferay.portlet.expando.NoSuchRowException {
151 return getPersistence().findByTableId_Last(tableId, orderByComparator);
152 }
153
154 public static com.liferay.portlet.expando.model.ExpandoRow[] findByTableId_PrevAndNext(
155 long rowId, 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()
160 .findByTableId_PrevAndNext(rowId, tableId, orderByComparator);
161 }
162
163 public static com.liferay.portlet.expando.model.ExpandoRow findByT_C(
164 long tableId, long classPK)
165 throws com.liferay.portal.kernel.exception.SystemException,
166 com.liferay.portlet.expando.NoSuchRowException {
167 return getPersistence().findByT_C(tableId, classPK);
168 }
169
170 public static com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
171 long tableId, long classPK)
172 throws com.liferay.portal.kernel.exception.SystemException {
173 return getPersistence().fetchByT_C(tableId, classPK);
174 }
175
176 public static com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
177 long tableId, long classPK, boolean retrieveFromCache)
178 throws com.liferay.portal.kernel.exception.SystemException {
179 return getPersistence().fetchByT_C(tableId, classPK, retrieveFromCache);
180 }
181
182 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll()
183 throws com.liferay.portal.kernel.exception.SystemException {
184 return getPersistence().findAll();
185 }
186
187 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
188 int start, int end)
189 throws com.liferay.portal.kernel.exception.SystemException {
190 return getPersistence().findAll(start, end);
191 }
192
193 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
194 int start, int end,
195 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196 throws com.liferay.portal.kernel.exception.SystemException {
197 return getPersistence().findAll(start, end, orderByComparator);
198 }
199
200 public static void removeByTableId(long tableId)
201 throws com.liferay.portal.kernel.exception.SystemException {
202 getPersistence().removeByTableId(tableId);
203 }
204
205 public static void removeByT_C(long tableId, long classPK)
206 throws com.liferay.portal.kernel.exception.SystemException,
207 com.liferay.portlet.expando.NoSuchRowException {
208 getPersistence().removeByT_C(tableId, classPK);
209 }
210
211 public static void removeAll()
212 throws com.liferay.portal.kernel.exception.SystemException {
213 getPersistence().removeAll();
214 }
215
216 public static int countByTableId(long tableId)
217 throws com.liferay.portal.kernel.exception.SystemException {
218 return getPersistence().countByTableId(tableId);
219 }
220
221 public static int countByT_C(long tableId, long classPK)
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return getPersistence().countByT_C(tableId, classPK);
224 }
225
226 public static int countAll()
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getPersistence().countAll();
229 }
230
231 public static ExpandoRowPersistence getPersistence() {
232 if (_persistence == null) {
233 _persistence = (ExpandoRowPersistence)PortalBeanLocatorUtil.locate(ExpandoRowPersistence.class.getName());
234 }
235
236 return _persistence;
237 }
238
239 public void setPersistence(ExpandoRowPersistence persistence) {
240 _persistence = persistence;
241 }
242
243 private static ExpandoRowPersistence _persistence;
244 }