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