1
22
23 package com.liferay.portlet.expando.service.persistence;
24
25
31 public class ExpandoTableUtil {
32 public static com.liferay.portlet.expando.model.ExpandoTable create(
33 long tableId) {
34 return getPersistence().create(tableId);
35 }
36
37 public static com.liferay.portlet.expando.model.ExpandoTable remove(
38 long tableId)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portlet.expando.NoSuchTableException {
41 return getPersistence().remove(tableId);
42 }
43
44 public static com.liferay.portlet.expando.model.ExpandoTable remove(
45 com.liferay.portlet.expando.model.ExpandoTable expandoTable)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(expandoTable);
48 }
49
50
53 public static com.liferay.portlet.expando.model.ExpandoTable update(
54 com.liferay.portlet.expando.model.ExpandoTable expandoTable)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().update(expandoTable);
57 }
58
59
72 public static com.liferay.portlet.expando.model.ExpandoTable update(
73 com.liferay.portlet.expando.model.ExpandoTable expandoTable,
74 boolean merge) throws com.liferay.portal.SystemException {
75 return getPersistence().update(expandoTable, merge);
76 }
77
78 public static com.liferay.portlet.expando.model.ExpandoTable updateImpl(
79 com.liferay.portlet.expando.model.ExpandoTable expandoTable,
80 boolean merge) throws com.liferay.portal.SystemException {
81 return getPersistence().updateImpl(expandoTable, merge);
82 }
83
84 public static com.liferay.portlet.expando.model.ExpandoTable findByPrimaryKey(
85 long tableId)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portlet.expando.NoSuchTableException {
88 return getPersistence().findByPrimaryKey(tableId);
89 }
90
91 public static com.liferay.portlet.expando.model.ExpandoTable fetchByPrimaryKey(
92 long tableId) throws com.liferay.portal.SystemException {
93 return getPersistence().fetchByPrimaryKey(tableId);
94 }
95
96 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByClassNameId(
97 long classNameId) throws com.liferay.portal.SystemException {
98 return getPersistence().findByClassNameId(classNameId);
99 }
100
101 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByClassNameId(
102 long classNameId, int begin, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByClassNameId(classNameId, begin, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByClassNameId(
108 long classNameId, int begin, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByClassNameId(classNameId, begin, end, obc);
112 }
113
114 public static com.liferay.portlet.expando.model.ExpandoTable findByClassNameId_First(
115 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.expando.NoSuchTableException {
118 return getPersistence().findByClassNameId_First(classNameId, obc);
119 }
120
121 public static com.liferay.portlet.expando.model.ExpandoTable findByClassNameId_Last(
122 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portlet.expando.NoSuchTableException {
125 return getPersistence().findByClassNameId_Last(classNameId, obc);
126 }
127
128 public static com.liferay.portlet.expando.model.ExpandoTable[] findByClassNameId_PrevAndNext(
129 long tableId, long classNameId,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException,
132 com.liferay.portlet.expando.NoSuchTableException {
133 return getPersistence()
134 .findByClassNameId_PrevAndNext(tableId, classNameId, obc);
135 }
136
137 public static com.liferay.portlet.expando.model.ExpandoTable findByC_N(
138 long classNameId, java.lang.String name)
139 throws com.liferay.portal.SystemException,
140 com.liferay.portlet.expando.NoSuchTableException {
141 return getPersistence().findByC_N(classNameId, name);
142 }
143
144 public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_N(
145 long classNameId, java.lang.String name)
146 throws com.liferay.portal.SystemException {
147 return getPersistence().fetchByC_N(classNameId, name);
148 }
149
150 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findWithDynamicQuery(
151 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
152 throws com.liferay.portal.SystemException {
153 return getPersistence().findWithDynamicQuery(queryInitializer);
154 }
155
156 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findWithDynamicQuery(
157 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
158 int begin, int end) throws com.liferay.portal.SystemException {
159 return getPersistence()
160 .findWithDynamicQuery(queryInitializer, begin, end);
161 }
162
163 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll()
164 throws com.liferay.portal.SystemException {
165 return getPersistence().findAll();
166 }
167
168 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
169 int begin, int end) throws com.liferay.portal.SystemException {
170 return getPersistence().findAll(begin, end);
171 }
172
173 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
174 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
175 throws com.liferay.portal.SystemException {
176 return getPersistence().findAll(begin, end, obc);
177 }
178
179 public static void removeByClassNameId(long classNameId)
180 throws com.liferay.portal.SystemException {
181 getPersistence().removeByClassNameId(classNameId);
182 }
183
184 public static void removeByC_N(long classNameId, java.lang.String name)
185 throws com.liferay.portal.SystemException,
186 com.liferay.portlet.expando.NoSuchTableException {
187 getPersistence().removeByC_N(classNameId, name);
188 }
189
190 public static void removeAll() throws com.liferay.portal.SystemException {
191 getPersistence().removeAll();
192 }
193
194 public static int countByClassNameId(long classNameId)
195 throws com.liferay.portal.SystemException {
196 return getPersistence().countByClassNameId(classNameId);
197 }
198
199 public static int countByC_N(long classNameId, java.lang.String name)
200 throws com.liferay.portal.SystemException {
201 return getPersistence().countByC_N(classNameId, name);
202 }
203
204 public static int countAll() throws com.liferay.portal.SystemException {
205 return getPersistence().countAll();
206 }
207
208 public static ExpandoTablePersistence getPersistence() {
209 return _getUtil()._persistence;
210 }
211
212 public void setPersistence(ExpandoTablePersistence persistence) {
213 _persistence = persistence;
214 }
215
216 private static ExpandoTableUtil _getUtil() {
217 if (_util == null) {
218 _util = (ExpandoTableUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
219 }
220
221 return _util;
222 }
223
224 private static final String _UTIL = ExpandoTableUtil.class.getName();
225 private static ExpandoTableUtil _util;
226 private ExpandoTablePersistence _persistence;
227 }