1
14
15 package com.liferay.portlet.expando.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
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.SystemException,
96 com.liferay.portlet.expando.NoSuchTableException {
97 return getPersistence().remove(tableId);
98 }
99
100
103 public static com.liferay.portlet.expando.model.ExpandoTable update(
104 com.liferay.portlet.expando.model.ExpandoTable expandoTable)
105 throws com.liferay.portal.SystemException {
106 return getPersistence().update(expandoTable);
107 }
108
109 public static com.liferay.portlet.expando.model.ExpandoTable updateImpl(
110 com.liferay.portlet.expando.model.ExpandoTable expandoTable,
111 boolean merge) throws com.liferay.portal.SystemException {
112 return getPersistence().updateImpl(expandoTable, merge);
113 }
114
115 public static com.liferay.portlet.expando.model.ExpandoTable findByPrimaryKey(
116 long tableId)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.expando.NoSuchTableException {
119 return getPersistence().findByPrimaryKey(tableId);
120 }
121
122 public static com.liferay.portlet.expando.model.ExpandoTable fetchByPrimaryKey(
123 long tableId) throws com.liferay.portal.SystemException {
124 return getPersistence().fetchByPrimaryKey(tableId);
125 }
126
127 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
128 long companyId, long classNameId)
129 throws com.liferay.portal.SystemException {
130 return getPersistence().findByC_C(companyId, classNameId);
131 }
132
133 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
134 long companyId, long classNameId, int start, int end)
135 throws com.liferay.portal.SystemException {
136 return getPersistence().findByC_C(companyId, classNameId, start, end);
137 }
138
139 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
140 long companyId, long classNameId, int start, int end,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.SystemException {
143 return getPersistence()
144 .findByC_C(companyId, classNameId, start, end,
145 orderByComparator);
146 }
147
148 public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_First(
149 long companyId, long classNameId,
150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151 throws com.liferay.portal.SystemException,
152 com.liferay.portlet.expando.NoSuchTableException {
153 return getPersistence()
154 .findByC_C_First(companyId, classNameId, orderByComparator);
155 }
156
157 public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_Last(
158 long companyId, long classNameId,
159 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160 throws com.liferay.portal.SystemException,
161 com.liferay.portlet.expando.NoSuchTableException {
162 return getPersistence()
163 .findByC_C_Last(companyId, classNameId, orderByComparator);
164 }
165
166 public static com.liferay.portlet.expando.model.ExpandoTable[] findByC_C_PrevAndNext(
167 long tableId, long companyId, long classNameId,
168 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
169 throws com.liferay.portal.SystemException,
170 com.liferay.portlet.expando.NoSuchTableException {
171 return getPersistence()
172 .findByC_C_PrevAndNext(tableId, companyId, classNameId,
173 orderByComparator);
174 }
175
176 public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_N(
177 long companyId, long classNameId, java.lang.String name)
178 throws com.liferay.portal.SystemException,
179 com.liferay.portlet.expando.NoSuchTableException {
180 return getPersistence().findByC_C_N(companyId, classNameId, name);
181 }
182
183 public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
184 long companyId, long classNameId, java.lang.String name)
185 throws com.liferay.portal.SystemException {
186 return getPersistence().fetchByC_C_N(companyId, classNameId, name);
187 }
188
189 public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
190 long companyId, long classNameId, java.lang.String name,
191 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
192 return getPersistence()
193 .fetchByC_C_N(companyId, classNameId, name, retrieveFromCache);
194 }
195
196 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll()
197 throws com.liferay.portal.SystemException {
198 return getPersistence().findAll();
199 }
200
201 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
202 int start, int end) throws com.liferay.portal.SystemException {
203 return getPersistence().findAll(start, end);
204 }
205
206 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
207 int start, int end,
208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209 throws com.liferay.portal.SystemException {
210 return getPersistence().findAll(start, end, orderByComparator);
211 }
212
213 public static void removeByC_C(long companyId, long classNameId)
214 throws com.liferay.portal.SystemException {
215 getPersistence().removeByC_C(companyId, classNameId);
216 }
217
218 public static void removeByC_C_N(long companyId, long classNameId,
219 java.lang.String name)
220 throws com.liferay.portal.SystemException,
221 com.liferay.portlet.expando.NoSuchTableException {
222 getPersistence().removeByC_C_N(companyId, classNameId, name);
223 }
224
225 public static void removeAll() throws com.liferay.portal.SystemException {
226 getPersistence().removeAll();
227 }
228
229 public static int countByC_C(long companyId, long classNameId)
230 throws com.liferay.portal.SystemException {
231 return getPersistence().countByC_C(companyId, classNameId);
232 }
233
234 public static int countByC_C_N(long companyId, long classNameId,
235 java.lang.String name) throws com.liferay.portal.SystemException {
236 return getPersistence().countByC_C_N(companyId, classNameId, name);
237 }
238
239 public static int countAll() throws com.liferay.portal.SystemException {
240 return getPersistence().countAll();
241 }
242
243 public static ExpandoTablePersistence getPersistence() {
244 if (_persistence == null) {
245 _persistence = (ExpandoTablePersistence)PortalBeanLocatorUtil.locate(ExpandoTablePersistence.class.getName());
246 }
247
248 return _persistence;
249 }
250
251 public void setPersistence(ExpandoTablePersistence persistence) {
252 _persistence = persistence;
253 }
254
255 private static ExpandoTablePersistence _persistence;
256 }