001
014
015 package com.liferay.portlet.expando.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.service.ServiceContext;
022
023 import com.liferay.portlet.expando.model.ExpandoTable;
024
025 import java.util.List;
026
027
033 public class ExpandoTableUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(ExpandoTable expandoTable) {
045 getPersistence().clearCache(expandoTable);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<ExpandoTable> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<ExpandoTable> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<ExpandoTable> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static ExpandoTable remove(ExpandoTable expandoTable)
088 throws SystemException {
089 return getPersistence().remove(expandoTable);
090 }
091
092
095 public static ExpandoTable update(ExpandoTable expandoTable, boolean merge)
096 throws SystemException {
097 return getPersistence().update(expandoTable, merge);
098 }
099
100
103 public static ExpandoTable update(ExpandoTable expandoTable, boolean merge,
104 ServiceContext serviceContext) throws SystemException {
105 return getPersistence().update(expandoTable, merge, serviceContext);
106 }
107
108 public static void cacheResult(
109 com.liferay.portlet.expando.model.ExpandoTable expandoTable) {
110 getPersistence().cacheResult(expandoTable);
111 }
112
113 public static void cacheResult(
114 java.util.List<com.liferay.portlet.expando.model.ExpandoTable> expandoTables) {
115 getPersistence().cacheResult(expandoTables);
116 }
117
118 public static com.liferay.portlet.expando.model.ExpandoTable create(
119 long tableId) {
120 return getPersistence().create(tableId);
121 }
122
123 public static com.liferay.portlet.expando.model.ExpandoTable remove(
124 long tableId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.expando.NoSuchTableException {
127 return getPersistence().remove(tableId);
128 }
129
130 public static com.liferay.portlet.expando.model.ExpandoTable updateImpl(
131 com.liferay.portlet.expando.model.ExpandoTable expandoTable,
132 boolean merge)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().updateImpl(expandoTable, merge);
135 }
136
137 public static com.liferay.portlet.expando.model.ExpandoTable findByPrimaryKey(
138 long tableId)
139 throws com.liferay.portal.kernel.exception.SystemException,
140 com.liferay.portlet.expando.NoSuchTableException {
141 return getPersistence().findByPrimaryKey(tableId);
142 }
143
144 public static com.liferay.portlet.expando.model.ExpandoTable fetchByPrimaryKey(
145 long tableId)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence().fetchByPrimaryKey(tableId);
148 }
149
150 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
151 long companyId, long classNameId)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence().findByC_C(companyId, classNameId);
154 }
155
156 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
157 long companyId, long classNameId, int start, int end)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getPersistence().findByC_C(companyId, classNameId, start, end);
160 }
161
162 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
163 long companyId, long classNameId, int start, int end,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getPersistence()
167 .findByC_C(companyId, classNameId, start, end,
168 orderByComparator);
169 }
170
171 public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_First(
172 long companyId, long classNameId,
173 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174 throws com.liferay.portal.kernel.exception.SystemException,
175 com.liferay.portlet.expando.NoSuchTableException {
176 return getPersistence()
177 .findByC_C_First(companyId, classNameId, orderByComparator);
178 }
179
180 public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_Last(
181 long companyId, long classNameId,
182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183 throws com.liferay.portal.kernel.exception.SystemException,
184 com.liferay.portlet.expando.NoSuchTableException {
185 return getPersistence()
186 .findByC_C_Last(companyId, classNameId, orderByComparator);
187 }
188
189 public static com.liferay.portlet.expando.model.ExpandoTable[] findByC_C_PrevAndNext(
190 long tableId, long companyId, long classNameId,
191 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
192 throws com.liferay.portal.kernel.exception.SystemException,
193 com.liferay.portlet.expando.NoSuchTableException {
194 return getPersistence()
195 .findByC_C_PrevAndNext(tableId, companyId, classNameId,
196 orderByComparator);
197 }
198
199 public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_N(
200 long companyId, long classNameId, java.lang.String name)
201 throws com.liferay.portal.kernel.exception.SystemException,
202 com.liferay.portlet.expando.NoSuchTableException {
203 return getPersistence().findByC_C_N(companyId, classNameId, name);
204 }
205
206 public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
207 long companyId, long classNameId, java.lang.String name)
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return getPersistence().fetchByC_C_N(companyId, classNameId, name);
210 }
211
212 public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
213 long companyId, long classNameId, java.lang.String name,
214 boolean retrieveFromCache)
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getPersistence()
217 .fetchByC_C_N(companyId, classNameId, name, retrieveFromCache);
218 }
219
220 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll()
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return getPersistence().findAll();
223 }
224
225 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
226 int start, int end)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getPersistence().findAll(start, end);
229 }
230
231 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
232 int start, int end,
233 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234 throws com.liferay.portal.kernel.exception.SystemException {
235 return getPersistence().findAll(start, end, orderByComparator);
236 }
237
238 public static void removeByC_C(long companyId, long classNameId)
239 throws com.liferay.portal.kernel.exception.SystemException {
240 getPersistence().removeByC_C(companyId, classNameId);
241 }
242
243 public static void removeByC_C_N(long companyId, long classNameId,
244 java.lang.String name)
245 throws com.liferay.portal.kernel.exception.SystemException,
246 com.liferay.portlet.expando.NoSuchTableException {
247 getPersistence().removeByC_C_N(companyId, classNameId, name);
248 }
249
250 public static void removeAll()
251 throws com.liferay.portal.kernel.exception.SystemException {
252 getPersistence().removeAll();
253 }
254
255 public static int countByC_C(long companyId, long classNameId)
256 throws com.liferay.portal.kernel.exception.SystemException {
257 return getPersistence().countByC_C(companyId, classNameId);
258 }
259
260 public static int countByC_C_N(long companyId, long classNameId,
261 java.lang.String name)
262 throws com.liferay.portal.kernel.exception.SystemException {
263 return getPersistence().countByC_C_N(companyId, classNameId, name);
264 }
265
266 public static int countAll()
267 throws com.liferay.portal.kernel.exception.SystemException {
268 return getPersistence().countAll();
269 }
270
271 public static ExpandoTablePersistence getPersistence() {
272 if (_persistence == null) {
273 _persistence = (ExpandoTablePersistence)PortalBeanLocatorUtil.locate(ExpandoTablePersistence.class.getName());
274 }
275
276 return _persistence;
277 }
278
279 public void setPersistence(ExpandoTablePersistence persistence) {
280 _persistence = persistence;
281 }
282
283 private static ExpandoTablePersistence _persistence;
284 }