1
14
15 package com.liferay.portlet.expando.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
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.kernel.exception.SystemException,
96 com.liferay.portlet.expando.NoSuchColumnException {
97 return getPersistence().remove(columnId);
98 }
99
100 public static com.liferay.portlet.expando.model.ExpandoColumn updateImpl(
101 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
102 boolean merge)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getPersistence().updateImpl(expandoColumn, merge);
105 }
106
107 public static com.liferay.portlet.expando.model.ExpandoColumn findByPrimaryKey(
108 long columnId)
109 throws com.liferay.portal.kernel.exception.SystemException,
110 com.liferay.portlet.expando.NoSuchColumnException {
111 return getPersistence().findByPrimaryKey(columnId);
112 }
113
114 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByPrimaryKey(
115 long columnId)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().fetchByPrimaryKey(columnId);
118 }
119
120 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
121 long tableId)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getPersistence().findByTableId(tableId);
124 }
125
126 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
127 long tableId, int start, int end)
128 throws com.liferay.portal.kernel.exception.SystemException {
129 return getPersistence().findByTableId(tableId, start, end);
130 }
131
132 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
133 long tableId, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence()
137 .findByTableId(tableId, start, end, orderByComparator);
138 }
139
140 public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First(
141 long tableId,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException,
144 com.liferay.portlet.expando.NoSuchColumnException {
145 return getPersistence().findByTableId_First(tableId, orderByComparator);
146 }
147
148 public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last(
149 long tableId,
150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151 throws com.liferay.portal.kernel.exception.SystemException,
152 com.liferay.portlet.expando.NoSuchColumnException {
153 return getPersistence().findByTableId_Last(tableId, orderByComparator);
154 }
155
156 public static com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext(
157 long columnId, long tableId,
158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159 throws com.liferay.portal.kernel.exception.SystemException,
160 com.liferay.portlet.expando.NoSuchColumnException {
161 return getPersistence()
162 .findByTableId_PrevAndNext(columnId, tableId,
163 orderByComparator);
164 }
165
166 public static com.liferay.portlet.expando.model.ExpandoColumn findByT_N(
167 long tableId, java.lang.String name)
168 throws com.liferay.portal.kernel.exception.SystemException,
169 com.liferay.portlet.expando.NoSuchColumnException {
170 return getPersistence().findByT_N(tableId, name);
171 }
172
173 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
174 long tableId, java.lang.String name)
175 throws com.liferay.portal.kernel.exception.SystemException {
176 return getPersistence().fetchByT_N(tableId, name);
177 }
178
179 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
180 long tableId, java.lang.String name, boolean retrieveFromCache)
181 throws com.liferay.portal.kernel.exception.SystemException {
182 return getPersistence().fetchByT_N(tableId, name, retrieveFromCache);
183 }
184
185 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll()
186 throws com.liferay.portal.kernel.exception.SystemException {
187 return getPersistence().findAll();
188 }
189
190 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
191 int start, int end)
192 throws com.liferay.portal.kernel.exception.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,
198 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getPersistence().findAll(start, end, orderByComparator);
201 }
202
203 public static void removeByTableId(long tableId)
204 throws com.liferay.portal.kernel.exception.SystemException {
205 getPersistence().removeByTableId(tableId);
206 }
207
208 public static void removeByT_N(long tableId, java.lang.String name)
209 throws com.liferay.portal.kernel.exception.SystemException,
210 com.liferay.portlet.expando.NoSuchColumnException {
211 getPersistence().removeByT_N(tableId, name);
212 }
213
214 public static void removeAll()
215 throws com.liferay.portal.kernel.exception.SystemException {
216 getPersistence().removeAll();
217 }
218
219 public static int countByTableId(long tableId)
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getPersistence().countByTableId(tableId);
222 }
223
224 public static int countByT_N(long tableId, java.lang.String name)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getPersistence().countByT_N(tableId, name);
227 }
228
229 public static int countAll()
230 throws com.liferay.portal.kernel.exception.SystemException {
231 return getPersistence().countAll();
232 }
233
234 public static ExpandoColumnPersistence getPersistence() {
235 if (_persistence == null) {
236 _persistence = (ExpandoColumnPersistence)PortalBeanLocatorUtil.locate(ExpandoColumnPersistence.class.getName());
237 }
238
239 return _persistence;
240 }
241
242 public void setPersistence(ExpandoColumnPersistence persistence) {
243 _persistence = persistence;
244 }
245
246 private static ExpandoColumnPersistence _persistence;
247 }