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 obc)
141 throws com.liferay.portal.SystemException {
142 return getPersistence().findByTableId(tableId, start, end, obc);
143 }
144
145 public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First(
146 long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
147 throws com.liferay.portal.SystemException,
148 com.liferay.portlet.expando.NoSuchColumnException {
149 return getPersistence().findByTableId_First(tableId, obc);
150 }
151
152 public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last(
153 long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
154 throws com.liferay.portal.SystemException,
155 com.liferay.portlet.expando.NoSuchColumnException {
156 return getPersistence().findByTableId_Last(tableId, obc);
157 }
158
159 public static com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext(
160 long columnId, long tableId,
161 com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.SystemException,
163 com.liferay.portlet.expando.NoSuchColumnException {
164 return getPersistence().findByTableId_PrevAndNext(columnId, tableId, obc);
165 }
166
167 public static com.liferay.portlet.expando.model.ExpandoColumn findByT_N(
168 long tableId, java.lang.String name)
169 throws com.liferay.portal.SystemException,
170 com.liferay.portlet.expando.NoSuchColumnException {
171 return getPersistence().findByT_N(tableId, name);
172 }
173
174 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
175 long tableId, java.lang.String name)
176 throws com.liferay.portal.SystemException {
177 return getPersistence().fetchByT_N(tableId, name);
178 }
179
180 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
181 long tableId, java.lang.String name, boolean retrieveFromCache)
182 throws com.liferay.portal.SystemException {
183 return getPersistence().fetchByT_N(tableId, name, retrieveFromCache);
184 }
185
186 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll()
187 throws com.liferay.portal.SystemException {
188 return getPersistence().findAll();
189 }
190
191 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
192 int start, int end) throws com.liferay.portal.SystemException {
193 return getPersistence().findAll(start, end);
194 }
195
196 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
197 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
198 throws com.liferay.portal.SystemException {
199 return getPersistence().findAll(start, end, obc);
200 }
201
202 public static void removeByTableId(long tableId)
203 throws com.liferay.portal.SystemException {
204 getPersistence().removeByTableId(tableId);
205 }
206
207 public static void removeByT_N(long tableId, java.lang.String name)
208 throws com.liferay.portal.SystemException,
209 com.liferay.portlet.expando.NoSuchColumnException {
210 getPersistence().removeByT_N(tableId, name);
211 }
212
213 public static void removeAll() throws com.liferay.portal.SystemException {
214 getPersistence().removeAll();
215 }
216
217 public static int countByTableId(long tableId)
218 throws com.liferay.portal.SystemException {
219 return getPersistence().countByTableId(tableId);
220 }
221
222 public static int countByT_N(long tableId, java.lang.String name)
223 throws com.liferay.portal.SystemException {
224 return getPersistence().countByT_N(tableId, name);
225 }
226
227 public static int countAll() throws com.liferay.portal.SystemException {
228 return getPersistence().countAll();
229 }
230
231 public static ExpandoColumnPersistence getPersistence() {
232 if (_persistence == null) {
233 _persistence = (ExpandoColumnPersistence)PortalBeanLocatorUtil.locate(ExpandoColumnPersistence.class.getName());
234 }
235
236 return _persistence;
237 }
238
239 public void setPersistence(ExpandoColumnPersistence persistence) {
240 _persistence = persistence;
241 }
242
243 private static ExpandoColumnPersistence _persistence;
244 }