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> findByClassNameId(
118 long classNameId) throws com.liferay.portal.SystemException {
119 return getPersistence().findByClassNameId(classNameId);
120 }
121
122 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByClassNameId(
123 long classNameId, int start, int end)
124 throws com.liferay.portal.SystemException {
125 return getPersistence().findByClassNameId(classNameId, start, end);
126 }
127
128 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByClassNameId(
129 long classNameId, int start, int end,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException {
132 return getPersistence().findByClassNameId(classNameId, start, end, obc);
133 }
134
135 public static com.liferay.portlet.expando.model.ExpandoTable findByClassNameId_First(
136 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portlet.expando.NoSuchTableException {
139 return getPersistence().findByClassNameId_First(classNameId, obc);
140 }
141
142 public static com.liferay.portlet.expando.model.ExpandoTable findByClassNameId_Last(
143 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.SystemException,
145 com.liferay.portlet.expando.NoSuchTableException {
146 return getPersistence().findByClassNameId_Last(classNameId, obc);
147 }
148
149 public static com.liferay.portlet.expando.model.ExpandoTable[] findByClassNameId_PrevAndNext(
150 long tableId, long classNameId,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException,
153 com.liferay.portlet.expando.NoSuchTableException {
154 return getPersistence()
155 .findByClassNameId_PrevAndNext(tableId, classNameId, obc);
156 }
157
158 public static com.liferay.portlet.expando.model.ExpandoTable findByC_N(
159 long classNameId, java.lang.String name)
160 throws com.liferay.portal.SystemException,
161 com.liferay.portlet.expando.NoSuchTableException {
162 return getPersistence().findByC_N(classNameId, name);
163 }
164
165 public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_N(
166 long classNameId, java.lang.String name)
167 throws com.liferay.portal.SystemException {
168 return getPersistence().fetchByC_N(classNameId, name);
169 }
170
171 public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_N(
172 long classNameId, java.lang.String name, boolean retrieveFromCache)
173 throws com.liferay.portal.SystemException {
174 return getPersistence().fetchByC_N(classNameId, name, retrieveFromCache);
175 }
176
177 public static java.util.List<Object> findWithDynamicQuery(
178 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
179 throws com.liferay.portal.SystemException {
180 return getPersistence().findWithDynamicQuery(dynamicQuery);
181 }
182
183 public static java.util.List<Object> findWithDynamicQuery(
184 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
185 int end) throws com.liferay.portal.SystemException {
186 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
187 }
188
189 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll()
190 throws com.liferay.portal.SystemException {
191 return getPersistence().findAll();
192 }
193
194 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
195 int start, int end) throws com.liferay.portal.SystemException {
196 return getPersistence().findAll(start, end);
197 }
198
199 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
200 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
201 throws com.liferay.portal.SystemException {
202 return getPersistence().findAll(start, end, obc);
203 }
204
205 public static void removeByClassNameId(long classNameId)
206 throws com.liferay.portal.SystemException {
207 getPersistence().removeByClassNameId(classNameId);
208 }
209
210 public static void removeByC_N(long classNameId, java.lang.String name)
211 throws com.liferay.portal.SystemException,
212 com.liferay.portlet.expando.NoSuchTableException {
213 getPersistence().removeByC_N(classNameId, name);
214 }
215
216 public static void removeAll() throws com.liferay.portal.SystemException {
217 getPersistence().removeAll();
218 }
219
220 public static int countByClassNameId(long classNameId)
221 throws com.liferay.portal.SystemException {
222 return getPersistence().countByClassNameId(classNameId);
223 }
224
225 public static int countByC_N(long classNameId, java.lang.String name)
226 throws com.liferay.portal.SystemException {
227 return getPersistence().countByC_N(classNameId, name);
228 }
229
230 public static int countAll() throws com.liferay.portal.SystemException {
231 return getPersistence().countAll();
232 }
233
234 public static ExpandoTablePersistence getPersistence() {
235 return _persistence;
236 }
237
238 public void setPersistence(ExpandoTablePersistence persistence) {
239 _persistence = persistence;
240 }
241
242 private static ExpandoTablePersistence _persistence;
243 }