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.ExpandoColumn;
22
23 import java.util.List;
24
25
38 public class ExpandoColumnUtil {
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 ExpandoColumn remove(ExpandoColumn expandoColumn)
66 throws SystemException {
67 return getPersistence().remove(expandoColumn);
68 }
69
70
73 public static ExpandoColumn update(ExpandoColumn expandoColumn,
74 boolean merge) throws SystemException {
75 return getPersistence().update(expandoColumn, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn) {
80 getPersistence().cacheResult(expandoColumn);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> expandoColumns) {
85 getPersistence().cacheResult(expandoColumns);
86 }
87
88 public static com.liferay.portlet.expando.model.ExpandoColumn create(
89 long columnId) {
90 return getPersistence().create(columnId);
91 }
92
93 public static com.liferay.portlet.expando.model.ExpandoColumn remove(
94 long columnId)
95 throws com.liferay.portal.SystemException,
96 com.liferay.portlet.expando.NoSuchColumnException {
97 return getPersistence().remove(columnId);
98 }
99
100
103 public static com.liferay.portlet.expando.model.ExpandoColumn update(
104 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
105 throws com.liferay.portal.SystemException {
106 return getPersistence().update(expandoColumn);
107 }
108
109 public static com.liferay.portlet.expando.model.ExpandoColumn updateImpl(
110 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
111 boolean merge) throws com.liferay.portal.SystemException {
112 return getPersistence().updateImpl(expandoColumn, merge);
113 }
114
115 public static com.liferay.portlet.expando.model.ExpandoColumn findByPrimaryKey(
116 long columnId)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.expando.NoSuchColumnException {
119 return getPersistence().findByPrimaryKey(columnId);
120 }
121
122 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByPrimaryKey(
123 long columnId) throws com.liferay.portal.SystemException {
124 return getPersistence().fetchByPrimaryKey(columnId);
125 }
126
127 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
128 long tableId) throws com.liferay.portal.SystemException {
129 return getPersistence().findByTableId(tableId);
130 }
131
132 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
133 long tableId, int start, int end)
134 throws com.liferay.portal.SystemException {
135 return getPersistence().findByTableId(tableId, start, end);
136 }
137
138 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
139 long tableId, int start, int end,
140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141 throws com.liferay.portal.SystemException {
142 return getPersistence()
143 .findByTableId(tableId, start, end, orderByComparator);
144 }
145
146 public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First(
147 long tableId,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.SystemException,
150 com.liferay.portlet.expando.NoSuchColumnException {
151 return getPersistence().findByTableId_First(tableId, orderByComparator);
152 }
153
154 public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last(
155 long tableId,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.SystemException,
158 com.liferay.portlet.expando.NoSuchColumnException {
159 return getPersistence().findByTableId_Last(tableId, orderByComparator);
160 }
161
162 public static com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext(
163 long columnId, long tableId,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.SystemException,
166 com.liferay.portlet.expando.NoSuchColumnException {
167 return getPersistence()
168 .findByTableId_PrevAndNext(columnId, tableId,
169 orderByComparator);
170 }
171
172 public static com.liferay.portlet.expando.model.ExpandoColumn findByT_N(
173 long tableId, java.lang.String name)
174 throws com.liferay.portal.SystemException,
175 com.liferay.portlet.expando.NoSuchColumnException {
176 return getPersistence().findByT_N(tableId, name);
177 }
178
179 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
180 long tableId, java.lang.String name)
181 throws com.liferay.portal.SystemException {
182 return getPersistence().fetchByT_N(tableId, name);
183 }
184
185 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
186 long tableId, java.lang.String name, boolean retrieveFromCache)
187 throws com.liferay.portal.SystemException {
188 return getPersistence().fetchByT_N(tableId, name, retrieveFromCache);
189 }
190
191 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll()
192 throws com.liferay.portal.SystemException {
193 return getPersistence().findAll();
194 }
195
196 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
197 int start, int end) throws com.liferay.portal.SystemException {
198 return getPersistence().findAll(start, end);
199 }
200
201 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
202 int start, int end,
203 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204 throws com.liferay.portal.SystemException {
205 return getPersistence().findAll(start, end, orderByComparator);
206 }
207
208 public static void removeByTableId(long tableId)
209 throws com.liferay.portal.SystemException {
210 getPersistence().removeByTableId(tableId);
211 }
212
213 public static void removeByT_N(long tableId, java.lang.String name)
214 throws com.liferay.portal.SystemException,
215 com.liferay.portlet.expando.NoSuchColumnException {
216 getPersistence().removeByT_N(tableId, name);
217 }
218
219 public static void removeAll() throws com.liferay.portal.SystemException {
220 getPersistence().removeAll();
221 }
222
223 public static int countByTableId(long tableId)
224 throws com.liferay.portal.SystemException {
225 return getPersistence().countByTableId(tableId);
226 }
227
228 public static int countByT_N(long tableId, java.lang.String name)
229 throws com.liferay.portal.SystemException {
230 return getPersistence().countByT_N(tableId, name);
231 }
232
233 public static int countAll() throws com.liferay.portal.SystemException {
234 return getPersistence().countAll();
235 }
236
237 public static ExpandoColumnPersistence getPersistence() {
238 if (_persistence == null) {
239 _persistence = (ExpandoColumnPersistence)PortalBeanLocatorUtil.locate(ExpandoColumnPersistence.class.getName());
240 }
241
242 return _persistence;
243 }
244
245 public void setPersistence(ExpandoColumnPersistence persistence) {
246 _persistence = persistence;
247 }
248
249 private static ExpandoColumnPersistence _persistence;
250 }