1
22
23 package com.liferay.portlet.expando.service.persistence;
24
25
26
39 public class ExpandoColumnUtil {
40 public static void cacheResult(
41 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn) {
42 getPersistence().cacheResult(expandoColumn);
43 }
44
45 public static void cacheResult(
46 java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> expandoColumns) {
47 getPersistence().cacheResult(expandoColumns);
48 }
49
50 public static void clearCache() {
51 getPersistence().clearCache();
52 }
53
54 public static com.liferay.portlet.expando.model.ExpandoColumn create(
55 long columnId) {
56 return getPersistence().create(columnId);
57 }
58
59 public static com.liferay.portlet.expando.model.ExpandoColumn remove(
60 long columnId)
61 throws com.liferay.portal.SystemException,
62 com.liferay.portlet.expando.NoSuchColumnException {
63 return getPersistence().remove(columnId);
64 }
65
66 public static com.liferay.portlet.expando.model.ExpandoColumn remove(
67 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
68 throws com.liferay.portal.SystemException {
69 return getPersistence().remove(expandoColumn);
70 }
71
72
75 public static com.liferay.portlet.expando.model.ExpandoColumn update(
76 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
77 throws com.liferay.portal.SystemException {
78 return getPersistence().update(expandoColumn);
79 }
80
81
93 public static com.liferay.portlet.expando.model.ExpandoColumn update(
94 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
95 boolean merge) throws com.liferay.portal.SystemException {
96 return getPersistence().update(expandoColumn, merge);
97 }
98
99 public static com.liferay.portlet.expando.model.ExpandoColumn updateImpl(
100 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
101 boolean merge) throws com.liferay.portal.SystemException {
102 return getPersistence().updateImpl(expandoColumn, merge);
103 }
104
105 public static com.liferay.portlet.expando.model.ExpandoColumn findByPrimaryKey(
106 long columnId)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portlet.expando.NoSuchColumnException {
109 return getPersistence().findByPrimaryKey(columnId);
110 }
111
112 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByPrimaryKey(
113 long columnId) throws com.liferay.portal.SystemException {
114 return getPersistence().fetchByPrimaryKey(columnId);
115 }
116
117 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
118 long tableId) throws com.liferay.portal.SystemException {
119 return getPersistence().findByTableId(tableId);
120 }
121
122 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
123 long tableId, int start, int end)
124 throws com.liferay.portal.SystemException {
125 return getPersistence().findByTableId(tableId, start, end);
126 }
127
128 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
129 long tableId, int start, int end,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException {
132 return getPersistence().findByTableId(tableId, start, end, obc);
133 }
134
135 public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First(
136 long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portlet.expando.NoSuchColumnException {
139 return getPersistence().findByTableId_First(tableId, obc);
140 }
141
142 public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last(
143 long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.SystemException,
145 com.liferay.portlet.expando.NoSuchColumnException {
146 return getPersistence().findByTableId_Last(tableId, obc);
147 }
148
149 public static com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext(
150 long columnId, long tableId,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException,
153 com.liferay.portlet.expando.NoSuchColumnException {
154 return getPersistence().findByTableId_PrevAndNext(columnId, tableId, obc);
155 }
156
157 public static com.liferay.portlet.expando.model.ExpandoColumn findByT_N(
158 long tableId, java.lang.String name)
159 throws com.liferay.portal.SystemException,
160 com.liferay.portlet.expando.NoSuchColumnException {
161 return getPersistence().findByT_N(tableId, name);
162 }
163
164 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
165 long tableId, java.lang.String name)
166 throws com.liferay.portal.SystemException {
167 return getPersistence().fetchByT_N(tableId, name);
168 }
169
170 public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
171 long tableId, java.lang.String name, boolean retrieveFromCache)
172 throws com.liferay.portal.SystemException {
173 return getPersistence().fetchByT_N(tableId, name, retrieveFromCache);
174 }
175
176 public static java.util.List<Object> findWithDynamicQuery(
177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
178 throws com.liferay.portal.SystemException {
179 return getPersistence().findWithDynamicQuery(dynamicQuery);
180 }
181
182 public static java.util.List<Object> findWithDynamicQuery(
183 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
184 int end) throws com.liferay.portal.SystemException {
185 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
186 }
187
188 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll()
189 throws com.liferay.portal.SystemException {
190 return getPersistence().findAll();
191 }
192
193 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
194 int start, int end) throws com.liferay.portal.SystemException {
195 return getPersistence().findAll(start, end);
196 }
197
198 public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
199 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
200 throws com.liferay.portal.SystemException {
201 return getPersistence().findAll(start, end, obc);
202 }
203
204 public static void removeByTableId(long tableId)
205 throws com.liferay.portal.SystemException {
206 getPersistence().removeByTableId(tableId);
207 }
208
209 public static void removeByT_N(long tableId, java.lang.String name)
210 throws com.liferay.portal.SystemException,
211 com.liferay.portlet.expando.NoSuchColumnException {
212 getPersistence().removeByT_N(tableId, name);
213 }
214
215 public static void removeAll() throws com.liferay.portal.SystemException {
216 getPersistence().removeAll();
217 }
218
219 public static int countByTableId(long tableId)
220 throws com.liferay.portal.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.SystemException {
226 return getPersistence().countByT_N(tableId, name);
227 }
228
229 public static int countAll() throws com.liferay.portal.SystemException {
230 return getPersistence().countAll();
231 }
232
233 public static ExpandoColumnPersistence getPersistence() {
234 return _persistence;
235 }
236
237 public void setPersistence(ExpandoColumnPersistence persistence) {
238 _persistence = persistence;
239 }
240
241 private static ExpandoColumnPersistence _persistence;
242 }