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> findByC_C(
97 long companyId, long classNameId)
98 throws com.liferay.portal.SystemException {
99 return getPersistence().findByC_C(companyId, classNameId);
100 }
101
102 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
103 long companyId, long classNameId, int start, int end)
104 throws com.liferay.portal.SystemException {
105 return getPersistence().findByC_C(companyId, classNameId, start, end);
106 }
107
108 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
109 long companyId, long classNameId, int start, int end,
110 com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.SystemException {
112 return getPersistence()
113 .findByC_C(companyId, classNameId, start, end, obc);
114 }
115
116 public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_First(
117 long companyId, long classNameId,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.SystemException,
120 com.liferay.portlet.expando.NoSuchTableException {
121 return getPersistence().findByC_C_First(companyId, classNameId, obc);
122 }
123
124 public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_Last(
125 long companyId, long classNameId,
126 com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.SystemException,
128 com.liferay.portlet.expando.NoSuchTableException {
129 return getPersistence().findByC_C_Last(companyId, classNameId, obc);
130 }
131
132 public static com.liferay.portlet.expando.model.ExpandoTable[] findByC_C_PrevAndNext(
133 long tableId, long companyId, long classNameId,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.SystemException,
136 com.liferay.portlet.expando.NoSuchTableException {
137 return getPersistence()
138 .findByC_C_PrevAndNext(tableId, companyId, classNameId, obc);
139 }
140
141 public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_N(
142 long companyId, long classNameId, java.lang.String name)
143 throws com.liferay.portal.SystemException,
144 com.liferay.portlet.expando.NoSuchTableException {
145 return getPersistence().findByC_C_N(companyId, classNameId, name);
146 }
147
148 public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
149 long companyId, long classNameId, java.lang.String name)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().fetchByC_C_N(companyId, classNameId, name);
152 }
153
154 public static java.util.List<Object> findWithDynamicQuery(
155 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
156 throws com.liferay.portal.SystemException {
157 return getPersistence().findWithDynamicQuery(dynamicQuery);
158 }
159
160 public static java.util.List<Object> findWithDynamicQuery(
161 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
162 int end) throws com.liferay.portal.SystemException {
163 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
164 }
165
166 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll()
167 throws com.liferay.portal.SystemException {
168 return getPersistence().findAll();
169 }
170
171 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
172 int start, int end) throws com.liferay.portal.SystemException {
173 return getPersistence().findAll(start, end);
174 }
175
176 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
177 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
178 throws com.liferay.portal.SystemException {
179 return getPersistence().findAll(start, end, obc);
180 }
181
182 public static void removeByC_C(long companyId, long classNameId)
183 throws com.liferay.portal.SystemException {
184 getPersistence().removeByC_C(companyId, classNameId);
185 }
186
187 public static void removeByC_C_N(long companyId, long classNameId,
188 java.lang.String name)
189 throws com.liferay.portal.SystemException,
190 com.liferay.portlet.expando.NoSuchTableException {
191 getPersistence().removeByC_C_N(companyId, classNameId, name);
192 }
193
194 public static void removeAll() throws com.liferay.portal.SystemException {
195 getPersistence().removeAll();
196 }
197
198 public static int countByC_C(long companyId, long classNameId)
199 throws com.liferay.portal.SystemException {
200 return getPersistence().countByC_C(companyId, classNameId);
201 }
202
203 public static int countByC_C_N(long companyId, long classNameId,
204 java.lang.String name) throws com.liferay.portal.SystemException {
205 return getPersistence().countByC_C_N(companyId, classNameId, name);
206 }
207
208 public static int countAll() throws com.liferay.portal.SystemException {
209 return getPersistence().countAll();
210 }
211
212 public static ExpandoTablePersistence getPersistence() {
213 return _persistence;
214 }
215
216 public void setPersistence(ExpandoTablePersistence persistence) {
217 _persistence = persistence;
218 }
219
220 private static ExpandoTablePersistence _persistence;
221 }