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