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