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 ExpandoRowLocalServiceUtil {
42 public static com.liferay.portlet.expando.model.ExpandoRow addExpandoRow(
43 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
44 throws com.liferay.portal.SystemException {
45 return getService().addExpandoRow(expandoRow);
46 }
47
48 public static com.liferay.portlet.expando.model.ExpandoRow createExpandoRow(
49 long rowId) {
50 return getService().createExpandoRow(rowId);
51 }
52
53 public static void deleteExpandoRow(long rowId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteExpandoRow(rowId);
57 }
58
59 public static void deleteExpandoRow(
60 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
61 throws com.liferay.portal.SystemException {
62 getService().deleteExpandoRow(expandoRow);
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.ExpandoRow getExpandoRow(
96 long rowId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getExpandoRow(rowId);
100 }
101
102 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getExpandoRows(
103 int start, int end) throws com.liferay.portal.SystemException {
104 return getService().getExpandoRows(start, end);
105 }
106
107 public static int getExpandoRowsCount()
108 throws com.liferay.portal.SystemException {
109 return getService().getExpandoRowsCount();
110 }
111
112 public static com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
113 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
114 throws com.liferay.portal.SystemException {
115 return getService().updateExpandoRow(expandoRow);
116 }
117
118 public static com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
119 com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
120 throws com.liferay.portal.SystemException {
121 return getService().updateExpandoRow(expandoRow, merge);
122 }
123
124 public static com.liferay.portlet.expando.model.ExpandoRow addRow(
125 long tableId, long classPK)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException {
128 return getService().addRow(tableId, classPK);
129 }
130
131 public static void deleteRow(long rowId)
132 throws com.liferay.portal.PortalException,
133 com.liferay.portal.SystemException {
134 getService().deleteRow(rowId);
135 }
136
137 public static void deleteRow(long tableId, long classPK)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException {
140 getService().deleteRow(tableId, classPK);
141 }
142
143 public static void deleteRow(long classNameId, java.lang.String tableName,
144 long classPK)
145 throws com.liferay.portal.PortalException,
146 com.liferay.portal.SystemException {
147 getService().deleteRow(classNameId, tableName, classPK);
148 }
149
150 public static void deleteRow(java.lang.String className,
151 java.lang.String tableName, long classPK)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException {
154 getService().deleteRow(className, tableName, classPK);
155 }
156
157 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
158 long classNameId, int start, int end)
159 throws com.liferay.portal.SystemException {
160 return getService().getDefaultTableRows(classNameId, start, end);
161 }
162
163 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
164 java.lang.String className, int start, int end)
165 throws com.liferay.portal.SystemException {
166 return getService().getDefaultTableRows(className, start, end);
167 }
168
169 public static int getDefaultTableRowsCount(long classNameId)
170 throws com.liferay.portal.SystemException {
171 return getService().getDefaultTableRowsCount(classNameId);
172 }
173
174 public static int getDefaultTableRowsCount(java.lang.String className)
175 throws com.liferay.portal.SystemException {
176 return getService().getDefaultTableRowsCount(className);
177 }
178
179 public static com.liferay.portlet.expando.model.ExpandoRow getRow(
180 long rowId)
181 throws com.liferay.portal.PortalException,
182 com.liferay.portal.SystemException {
183 return getService().getRow(rowId);
184 }
185
186 public static com.liferay.portlet.expando.model.ExpandoRow getRow(
187 long tableId, long classPK)
188 throws com.liferay.portal.PortalException,
189 com.liferay.portal.SystemException {
190 return getService().getRow(tableId, classPK);
191 }
192
193 public static com.liferay.portlet.expando.model.ExpandoRow getRow(
194 long classNameId, java.lang.String tableName, long classPK)
195 throws com.liferay.portal.SystemException {
196 return getService().getRow(classNameId, tableName, classPK);
197 }
198
199 public static com.liferay.portlet.expando.model.ExpandoRow getRow(
200 java.lang.String className, java.lang.String tableName, long classPK)
201 throws com.liferay.portal.SystemException {
202 return getService().getRow(className, tableName, classPK);
203 }
204
205 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
206 long tableId, int start, int end)
207 throws com.liferay.portal.SystemException {
208 return getService().getRows(tableId, start, end);
209 }
210
211 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
212 long classNameId, java.lang.String tableName, int start, int end)
213 throws com.liferay.portal.SystemException {
214 return getService().getRows(classNameId, tableName, start, end);
215 }
216
217 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
218 java.lang.String className, java.lang.String tableName, int start,
219 int end) throws com.liferay.portal.SystemException {
220 return getService().getRows(className, tableName, start, end);
221 }
222
223 public static int getRowsCount(long tableId)
224 throws com.liferay.portal.SystemException {
225 return getService().getRowsCount(tableId);
226 }
227
228 public static int getRowsCount(long classNameId, java.lang.String tableName)
229 throws com.liferay.portal.SystemException {
230 return getService().getRowsCount(classNameId, tableName);
231 }
232
233 public static int getRowsCount(java.lang.String className,
234 java.lang.String tableName) throws com.liferay.portal.SystemException {
235 return getService().getRowsCount(className, tableName);
236 }
237
238 public static ExpandoRowLocalService getService() {
239 if (_service == null) {
240 _service = (ExpandoRowLocalService)PortalBeanLocatorUtil.locate(ExpandoRowLocalService.class.getName());
241
242 ReferenceRegistry.registerReference(ExpandoRowLocalServiceUtil.class,
243 "_service");
244 MethodCache.remove(ExpandoRowLocalService.class);
245 }
246
247 return _service;
248 }
249
250 public void setService(ExpandoRowLocalService service) {
251 MethodCache.remove(ExpandoRowLocalService.class);
252
253 _service = service;
254
255 ReferenceRegistry.registerReference(ExpandoRowLocalServiceUtil.class,
256 "_service");
257 MethodCache.remove(ExpandoRowLocalService.class);
258 }
259
260 private static ExpandoRowLocalService _service;
261 }