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