1
22
23 package com.liferay.portlet.expando.service.persistence;
24
25
31 public class ExpandoRowUtil {
32 public static void cacheResult(
33 com.liferay.portlet.expando.model.ExpandoRow expandoRow) {
34 getPersistence().cacheResult(expandoRow);
35 }
36
37 public static void cacheResult(
38 java.util.List<com.liferay.portlet.expando.model.ExpandoRow> expandoRows) {
39 getPersistence().cacheResult(expandoRows);
40 }
41
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46 public static com.liferay.portlet.expando.model.ExpandoRow create(
47 long rowId) {
48 return getPersistence().create(rowId);
49 }
50
51 public static com.liferay.portlet.expando.model.ExpandoRow remove(
52 long rowId)
53 throws com.liferay.portal.SystemException,
54 com.liferay.portlet.expando.NoSuchRowException {
55 return getPersistence().remove(rowId);
56 }
57
58 public static com.liferay.portlet.expando.model.ExpandoRow remove(
59 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
60 throws com.liferay.portal.SystemException {
61 return getPersistence().remove(expandoRow);
62 }
63
64
67 public static com.liferay.portlet.expando.model.ExpandoRow update(
68 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
69 throws com.liferay.portal.SystemException {
70 return getPersistence().update(expandoRow);
71 }
72
73
86 public static com.liferay.portlet.expando.model.ExpandoRow update(
87 com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
88 throws com.liferay.portal.SystemException {
89 return getPersistence().update(expandoRow, merge);
90 }
91
92 public static com.liferay.portlet.expando.model.ExpandoRow updateImpl(
93 com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
94 throws com.liferay.portal.SystemException {
95 return getPersistence().updateImpl(expandoRow, merge);
96 }
97
98 public static com.liferay.portlet.expando.model.ExpandoRow findByPrimaryKey(
99 long rowId)
100 throws com.liferay.portal.SystemException,
101 com.liferay.portlet.expando.NoSuchRowException {
102 return getPersistence().findByPrimaryKey(rowId);
103 }
104
105 public static com.liferay.portlet.expando.model.ExpandoRow fetchByPrimaryKey(
106 long rowId) throws com.liferay.portal.SystemException {
107 return getPersistence().fetchByPrimaryKey(rowId);
108 }
109
110 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
111 long tableId) throws com.liferay.portal.SystemException {
112 return getPersistence().findByTableId(tableId);
113 }
114
115 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
116 long tableId, int start, int end)
117 throws com.liferay.portal.SystemException {
118 return getPersistence().findByTableId(tableId, start, end);
119 }
120
121 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findByTableId(
122 long tableId, int start, int end,
123 com.liferay.portal.kernel.util.OrderByComparator obc)
124 throws com.liferay.portal.SystemException {
125 return getPersistence().findByTableId(tableId, start, end, obc);
126 }
127
128 public static com.liferay.portlet.expando.model.ExpandoRow findByTableId_First(
129 long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
130 throws com.liferay.portal.SystemException,
131 com.liferay.portlet.expando.NoSuchRowException {
132 return getPersistence().findByTableId_First(tableId, obc);
133 }
134
135 public static com.liferay.portlet.expando.model.ExpandoRow findByTableId_Last(
136 long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portlet.expando.NoSuchRowException {
139 return getPersistence().findByTableId_Last(tableId, obc);
140 }
141
142 public static com.liferay.portlet.expando.model.ExpandoRow[] findByTableId_PrevAndNext(
143 long rowId, long tableId,
144 com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.SystemException,
146 com.liferay.portlet.expando.NoSuchRowException {
147 return getPersistence().findByTableId_PrevAndNext(rowId, tableId, obc);
148 }
149
150 public static com.liferay.portlet.expando.model.ExpandoRow findByT_C(
151 long tableId, long classPK)
152 throws com.liferay.portal.SystemException,
153 com.liferay.portlet.expando.NoSuchRowException {
154 return getPersistence().findByT_C(tableId, classPK);
155 }
156
157 public static com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
158 long tableId, long classPK) throws com.liferay.portal.SystemException {
159 return getPersistence().fetchByT_C(tableId, classPK);
160 }
161
162 public static com.liferay.portlet.expando.model.ExpandoRow fetchByT_C(
163 long tableId, long classPK, boolean retrieveFromCache)
164 throws com.liferay.portal.SystemException {
165 return getPersistence().fetchByT_C(tableId, classPK, retrieveFromCache);
166 }
167
168 public static java.util.List<Object> findWithDynamicQuery(
169 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
170 throws com.liferay.portal.SystemException {
171 return getPersistence().findWithDynamicQuery(dynamicQuery);
172 }
173
174 public static java.util.List<Object> findWithDynamicQuery(
175 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
176 int end) throws com.liferay.portal.SystemException {
177 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
178 }
179
180 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll()
181 throws com.liferay.portal.SystemException {
182 return getPersistence().findAll();
183 }
184
185 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
186 int start, int end) throws com.liferay.portal.SystemException {
187 return getPersistence().findAll(start, end);
188 }
189
190 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> findAll(
191 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
192 throws com.liferay.portal.SystemException {
193 return getPersistence().findAll(start, end, obc);
194 }
195
196 public static void removeByTableId(long tableId)
197 throws com.liferay.portal.SystemException {
198 getPersistence().removeByTableId(tableId);
199 }
200
201 public static void removeByT_C(long tableId, long classPK)
202 throws com.liferay.portal.SystemException,
203 com.liferay.portlet.expando.NoSuchRowException {
204 getPersistence().removeByT_C(tableId, classPK);
205 }
206
207 public static void removeAll() throws com.liferay.portal.SystemException {
208 getPersistence().removeAll();
209 }
210
211 public static int countByTableId(long tableId)
212 throws com.liferay.portal.SystemException {
213 return getPersistence().countByTableId(tableId);
214 }
215
216 public static int countByT_C(long tableId, long classPK)
217 throws com.liferay.portal.SystemException {
218 return getPersistence().countByT_C(tableId, classPK);
219 }
220
221 public static int countAll() throws com.liferay.portal.SystemException {
222 return getPersistence().countAll();
223 }
224
225 public static ExpandoRowPersistence getPersistence() {
226 return _persistence;
227 }
228
229 public void setPersistence(ExpandoRowPersistence persistence) {
230 _persistence = persistence;
231 }
232
233 private static ExpandoRowPersistence _persistence;
234 }