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