1
19
20 package com.liferay.portlet.expando.service.persistence;
21
22
28 public class ExpandoTableUtil {
29 public static void cacheResult(
30 com.liferay.portlet.expando.model.ExpandoTable expandoTable) {
31 getPersistence().cacheResult(expandoTable);
32 }
33
34 public static void cacheResult(
35 java.util.List<com.liferay.portlet.expando.model.ExpandoTable> expandoTables) {
36 getPersistence().cacheResult(expandoTables);
37 }
38
39 public static void clearCache() {
40 getPersistence().clearCache();
41 }
42
43 public static com.liferay.portlet.expando.model.ExpandoTable create(
44 long tableId) {
45 return getPersistence().create(tableId);
46 }
47
48 public static com.liferay.portlet.expando.model.ExpandoTable remove(
49 long tableId)
50 throws com.liferay.portal.SystemException,
51 com.liferay.portlet.expando.NoSuchTableException {
52 return getPersistence().remove(tableId);
53 }
54
55 public static com.liferay.portlet.expando.model.ExpandoTable remove(
56 com.liferay.portlet.expando.model.ExpandoTable expandoTable)
57 throws com.liferay.portal.SystemException {
58 return getPersistence().remove(expandoTable);
59 }
60
61
64 public static com.liferay.portlet.expando.model.ExpandoTable update(
65 com.liferay.portlet.expando.model.ExpandoTable expandoTable)
66 throws com.liferay.portal.SystemException {
67 return getPersistence().update(expandoTable);
68 }
69
70
83 public static com.liferay.portlet.expando.model.ExpandoTable update(
84 com.liferay.portlet.expando.model.ExpandoTable expandoTable,
85 boolean merge) throws com.liferay.portal.SystemException {
86 return getPersistence().update(expandoTable, merge);
87 }
88
89 public static com.liferay.portlet.expando.model.ExpandoTable updateImpl(
90 com.liferay.portlet.expando.model.ExpandoTable expandoTable,
91 boolean merge) throws com.liferay.portal.SystemException {
92 return getPersistence().updateImpl(expandoTable, merge);
93 }
94
95 public static com.liferay.portlet.expando.model.ExpandoTable findByPrimaryKey(
96 long tableId)
97 throws com.liferay.portal.SystemException,
98 com.liferay.portlet.expando.NoSuchTableException {
99 return getPersistence().findByPrimaryKey(tableId);
100 }
101
102 public static com.liferay.portlet.expando.model.ExpandoTable fetchByPrimaryKey(
103 long tableId) throws com.liferay.portal.SystemException {
104 return getPersistence().fetchByPrimaryKey(tableId);
105 }
106
107 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByClassNameId(
108 long classNameId) throws com.liferay.portal.SystemException {
109 return getPersistence().findByClassNameId(classNameId);
110 }
111
112 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByClassNameId(
113 long classNameId, int start, int end)
114 throws com.liferay.portal.SystemException {
115 return getPersistence().findByClassNameId(classNameId, start, end);
116 }
117
118 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByClassNameId(
119 long classNameId, int start, int end,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().findByClassNameId(classNameId, start, end, obc);
123 }
124
125 public static com.liferay.portlet.expando.model.ExpandoTable findByClassNameId_First(
126 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.SystemException,
128 com.liferay.portlet.expando.NoSuchTableException {
129 return getPersistence().findByClassNameId_First(classNameId, obc);
130 }
131
132 public static com.liferay.portlet.expando.model.ExpandoTable findByClassNameId_Last(
133 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.SystemException,
135 com.liferay.portlet.expando.NoSuchTableException {
136 return getPersistence().findByClassNameId_Last(classNameId, obc);
137 }
138
139 public static com.liferay.portlet.expando.model.ExpandoTable[] findByClassNameId_PrevAndNext(
140 long tableId, long classNameId,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.SystemException,
143 com.liferay.portlet.expando.NoSuchTableException {
144 return getPersistence()
145 .findByClassNameId_PrevAndNext(tableId, classNameId, obc);
146 }
147
148 public static com.liferay.portlet.expando.model.ExpandoTable findByC_N(
149 long classNameId, java.lang.String name)
150 throws com.liferay.portal.SystemException,
151 com.liferay.portlet.expando.NoSuchTableException {
152 return getPersistence().findByC_N(classNameId, name);
153 }
154
155 public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_N(
156 long classNameId, java.lang.String name)
157 throws com.liferay.portal.SystemException {
158 return getPersistence().fetchByC_N(classNameId, name);
159 }
160
161 public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_N(
162 long classNameId, java.lang.String name, boolean retrieveFromCache)
163 throws com.liferay.portal.SystemException {
164 return getPersistence().fetchByC_N(classNameId, name, retrieveFromCache);
165 }
166
167 public static java.util.List<Object> findWithDynamicQuery(
168 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
169 throws com.liferay.portal.SystemException {
170 return getPersistence().findWithDynamicQuery(dynamicQuery);
171 }
172
173 public static java.util.List<Object> findWithDynamicQuery(
174 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
175 int end) throws com.liferay.portal.SystemException {
176 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
177 }
178
179 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll()
180 throws com.liferay.portal.SystemException {
181 return getPersistence().findAll();
182 }
183
184 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
185 int start, int end) throws com.liferay.portal.SystemException {
186 return getPersistence().findAll(start, end);
187 }
188
189 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
190 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
191 throws com.liferay.portal.SystemException {
192 return getPersistence().findAll(start, end, obc);
193 }
194
195 public static void removeByClassNameId(long classNameId)
196 throws com.liferay.portal.SystemException {
197 getPersistence().removeByClassNameId(classNameId);
198 }
199
200 public static void removeByC_N(long classNameId, java.lang.String name)
201 throws com.liferay.portal.SystemException,
202 com.liferay.portlet.expando.NoSuchTableException {
203 getPersistence().removeByC_N(classNameId, name);
204 }
205
206 public static void removeAll() throws com.liferay.portal.SystemException {
207 getPersistence().removeAll();
208 }
209
210 public static int countByClassNameId(long classNameId)
211 throws com.liferay.portal.SystemException {
212 return getPersistence().countByClassNameId(classNameId);
213 }
214
215 public static int countByC_N(long classNameId, java.lang.String name)
216 throws com.liferay.portal.SystemException {
217 return getPersistence().countByC_N(classNameId, name);
218 }
219
220 public static int countAll() throws com.liferay.portal.SystemException {
221 return getPersistence().countAll();
222 }
223
224 public static ExpandoTablePersistence getPersistence() {
225 return _persistence;
226 }
227
228 public void setPersistence(ExpandoTablePersistence persistence) {
229 _persistence = persistence;
230 }
231
232 private static ExpandoTablePersistence _persistence;
233 }