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