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