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