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.ExpandoTable;
22
23 import java.util.List;
24
25
38 public class ExpandoTableUtil {
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 ExpandoTable remove(ExpandoTable expandoTable)
66 throws SystemException {
67 return getPersistence().remove(expandoTable);
68 }
69
70
73 public static ExpandoTable update(ExpandoTable expandoTable, boolean merge)
74 throws SystemException {
75 return getPersistence().update(expandoTable, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.expando.model.ExpandoTable expandoTable) {
80 getPersistence().cacheResult(expandoTable);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.expando.model.ExpandoTable> expandoTables) {
85 getPersistence().cacheResult(expandoTables);
86 }
87
88 public static com.liferay.portlet.expando.model.ExpandoTable create(
89 long tableId) {
90 return getPersistence().create(tableId);
91 }
92
93 public static com.liferay.portlet.expando.model.ExpandoTable remove(
94 long tableId)
95 throws com.liferay.portal.kernel.exception.SystemException,
96 com.liferay.portlet.expando.NoSuchTableException {
97 return getPersistence().remove(tableId);
98 }
99
100 public static com.liferay.portlet.expando.model.ExpandoTable updateImpl(
101 com.liferay.portlet.expando.model.ExpandoTable expandoTable,
102 boolean merge)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getPersistence().updateImpl(expandoTable, merge);
105 }
106
107 public static com.liferay.portlet.expando.model.ExpandoTable findByPrimaryKey(
108 long tableId)
109 throws com.liferay.portal.kernel.exception.SystemException,
110 com.liferay.portlet.expando.NoSuchTableException {
111 return getPersistence().findByPrimaryKey(tableId);
112 }
113
114 public static com.liferay.portlet.expando.model.ExpandoTable fetchByPrimaryKey(
115 long tableId)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().fetchByPrimaryKey(tableId);
118 }
119
120 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
121 long companyId, long classNameId)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getPersistence().findByC_C(companyId, classNameId);
124 }
125
126 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
127 long companyId, long classNameId, int start, int end)
128 throws com.liferay.portal.kernel.exception.SystemException {
129 return getPersistence().findByC_C(companyId, classNameId, start, end);
130 }
131
132 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
133 long companyId, long classNameId, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence()
137 .findByC_C(companyId, classNameId, start, end, obc);
138 }
139
140 public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_First(
141 long companyId, long classNameId,
142 com.liferay.portal.kernel.util.OrderByComparator obc)
143 throws com.liferay.portal.kernel.exception.SystemException,
144 com.liferay.portlet.expando.NoSuchTableException {
145 return getPersistence().findByC_C_First(companyId, classNameId, obc);
146 }
147
148 public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_Last(
149 long companyId, long classNameId,
150 com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.kernel.exception.SystemException,
152 com.liferay.portlet.expando.NoSuchTableException {
153 return getPersistence().findByC_C_Last(companyId, classNameId, obc);
154 }
155
156 public static com.liferay.portlet.expando.model.ExpandoTable[] findByC_C_PrevAndNext(
157 long tableId, long companyId, long classNameId,
158 com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.kernel.exception.SystemException,
160 com.liferay.portlet.expando.NoSuchTableException {
161 return getPersistence()
162 .findByC_C_PrevAndNext(tableId, companyId, classNameId, obc);
163 }
164
165 public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_N(
166 long companyId, long classNameId, java.lang.String name)
167 throws com.liferay.portal.kernel.exception.SystemException,
168 com.liferay.portlet.expando.NoSuchTableException {
169 return getPersistence().findByC_C_N(companyId, classNameId, name);
170 }
171
172 public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
173 long companyId, long classNameId, java.lang.String name)
174 throws com.liferay.portal.kernel.exception.SystemException {
175 return getPersistence().fetchByC_C_N(companyId, classNameId, name);
176 }
177
178 public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
179 long companyId, long classNameId, java.lang.String name,
180 boolean retrieveFromCache)
181 throws com.liferay.portal.kernel.exception.SystemException {
182 return getPersistence()
183 .fetchByC_C_N(companyId, classNameId, name, retrieveFromCache);
184 }
185
186 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll()
187 throws com.liferay.portal.kernel.exception.SystemException {
188 return getPersistence().findAll();
189 }
190
191 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
192 int start, int end)
193 throws com.liferay.portal.kernel.exception.SystemException {
194 return getPersistence().findAll(start, end);
195 }
196
197 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
198 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getPersistence().findAll(start, end, obc);
201 }
202
203 public static void removeByC_C(long companyId, long classNameId)
204 throws com.liferay.portal.kernel.exception.SystemException {
205 getPersistence().removeByC_C(companyId, classNameId);
206 }
207
208 public static void removeByC_C_N(long companyId, long classNameId,
209 java.lang.String name)
210 throws com.liferay.portal.kernel.exception.SystemException,
211 com.liferay.portlet.expando.NoSuchTableException {
212 getPersistence().removeByC_C_N(companyId, classNameId, name);
213 }
214
215 public static void removeAll()
216 throws com.liferay.portal.kernel.exception.SystemException {
217 getPersistence().removeAll();
218 }
219
220 public static int countByC_C(long companyId, long classNameId)
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return getPersistence().countByC_C(companyId, classNameId);
223 }
224
225 public static int countByC_C_N(long companyId, long classNameId,
226 java.lang.String name)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getPersistence().countByC_C_N(companyId, classNameId, name);
229 }
230
231 public static int countAll()
232 throws com.liferay.portal.kernel.exception.SystemException {
233 return getPersistence().countAll();
234 }
235
236 public static ExpandoTablePersistence getPersistence() {
237 if (_persistence == null) {
238 _persistence = (ExpandoTablePersistence)PortalBeanLocatorUtil.locate(ExpandoTablePersistence.class.getName());
239 }
240
241 return _persistence;
242 }
243
244 public void setPersistence(ExpandoTablePersistence persistence) {
245 _persistence = persistence;
246 }
247
248 private static ExpandoTablePersistence _persistence;
249 }