1
14
15 package com.liferay.portlet.expando.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class ExpandoTableLocalServiceUtil {
42 public static com.liferay.portlet.expando.model.ExpandoTable addExpandoTable(
43 com.liferay.portlet.expando.model.ExpandoTable expandoTable)
44 throws com.liferay.portal.SystemException {
45 return getService().addExpandoTable(expandoTable);
46 }
47
48 public static com.liferay.portlet.expando.model.ExpandoTable createExpandoTable(
49 long tableId) {
50 return getService().createExpandoTable(tableId);
51 }
52
53 public static void deleteExpandoTable(long tableId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteExpandoTable(tableId);
57 }
58
59 public static void deleteExpandoTable(
60 com.liferay.portlet.expando.model.ExpandoTable expandoTable)
61 throws com.liferay.portal.SystemException {
62 getService().deleteExpandoTable(expandoTable);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portlet.expando.model.ExpandoTable getExpandoTable(
96 long tableId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getExpandoTable(tableId);
100 }
101
102 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getExpandoTables(
103 int start, int end) throws com.liferay.portal.SystemException {
104 return getService().getExpandoTables(start, end);
105 }
106
107 public static int getExpandoTablesCount()
108 throws com.liferay.portal.SystemException {
109 return getService().getExpandoTablesCount();
110 }
111
112 public static com.liferay.portlet.expando.model.ExpandoTable updateExpandoTable(
113 com.liferay.portlet.expando.model.ExpandoTable expandoTable)
114 throws com.liferay.portal.SystemException {
115 return getService().updateExpandoTable(expandoTable);
116 }
117
118 public static com.liferay.portlet.expando.model.ExpandoTable updateExpandoTable(
119 com.liferay.portlet.expando.model.ExpandoTable expandoTable,
120 boolean merge) throws com.liferay.portal.SystemException {
121 return getService().updateExpandoTable(expandoTable, merge);
122 }
123
124 public static com.liferay.portlet.expando.model.ExpandoTable addDefaultTable(
125 long classNameId)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException {
128 return getService().addDefaultTable(classNameId);
129 }
130
131 public static com.liferay.portlet.expando.model.ExpandoTable addDefaultTable(
132 java.lang.String className)
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException {
135 return getService().addDefaultTable(className);
136 }
137
138 public static com.liferay.portlet.expando.model.ExpandoTable addTable(
139 long classNameId, java.lang.String name)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException {
142 return getService().addTable(classNameId, name);
143 }
144
145 public static com.liferay.portlet.expando.model.ExpandoTable addTable(
146 java.lang.String className, java.lang.String name)
147 throws com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException {
149 return getService().addTable(className, name);
150 }
151
152 public static void deleteTable(
153 com.liferay.portlet.expando.model.ExpandoTable table)
154 throws com.liferay.portal.SystemException {
155 getService().deleteTable(table);
156 }
157
158 public static void deleteTable(long tableId)
159 throws com.liferay.portal.PortalException,
160 com.liferay.portal.SystemException {
161 getService().deleteTable(tableId);
162 }
163
164 public static void deleteTable(long classNameId, java.lang.String name)
165 throws com.liferay.portal.PortalException,
166 com.liferay.portal.SystemException {
167 getService().deleteTable(classNameId, name);
168 }
169
170 public static void deleteTable(java.lang.String className,
171 java.lang.String name)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException {
174 getService().deleteTable(className, name);
175 }
176
177 public static void deleteTables(long classNameId)
178 throws com.liferay.portal.SystemException {
179 getService().deleteTables(classNameId);
180 }
181
182 public static void deleteTables(java.lang.String className)
183 throws com.liferay.portal.SystemException {
184 getService().deleteTables(className);
185 }
186
187 public static com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
188 long classNameId)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException {
191 return getService().getDefaultTable(classNameId);
192 }
193
194 public static com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
195 java.lang.String className)
196 throws com.liferay.portal.PortalException,
197 com.liferay.portal.SystemException {
198 return getService().getDefaultTable(className);
199 }
200
201 public static com.liferay.portlet.expando.model.ExpandoTable getTable(
202 long tableId)
203 throws com.liferay.portal.PortalException,
204 com.liferay.portal.SystemException {
205 return getService().getTable(tableId);
206 }
207
208 public static com.liferay.portlet.expando.model.ExpandoTable getTable(
209 long classNameId, java.lang.String name)
210 throws com.liferay.portal.PortalException,
211 com.liferay.portal.SystemException {
212 return getService().getTable(classNameId, name);
213 }
214
215 public static com.liferay.portlet.expando.model.ExpandoTable getTable(
216 java.lang.String className, java.lang.String name)
217 throws com.liferay.portal.PortalException,
218 com.liferay.portal.SystemException {
219 return getService().getTable(className, name);
220 }
221
222 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
223 long classNameId) throws com.liferay.portal.SystemException {
224 return getService().getTables(classNameId);
225 }
226
227 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
228 java.lang.String className) throws com.liferay.portal.SystemException {
229 return getService().getTables(className);
230 }
231
232 public static com.liferay.portlet.expando.model.ExpandoTable updateTable(
233 long tableId, java.lang.String name)
234 throws com.liferay.portal.PortalException,
235 com.liferay.portal.SystemException {
236 return getService().updateTable(tableId, name);
237 }
238
239 public static ExpandoTableLocalService getService() {
240 if (_service == null) {
241 _service = (ExpandoTableLocalService)PortalBeanLocatorUtil.locate(ExpandoTableLocalService.class.getName());
242
243 ReferenceRegistry.registerReference(ExpandoTableLocalServiceUtil.class,
244 "_service");
245 MethodCache.remove(ExpandoTableLocalService.class);
246 }
247
248 return _service;
249 }
250
251 public void setService(ExpandoTableLocalService service) {
252 MethodCache.remove(ExpandoTableLocalService.class);
253
254 _service = service;
255
256 ReferenceRegistry.registerReference(ExpandoTableLocalServiceUtil.class,
257 "_service");
258 MethodCache.remove(ExpandoTableLocalService.class);
259 }
260
261 private static ExpandoTableLocalService _service;
262 }