1
14
15 package com.liferay.portlet.expando.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class ExpandoRowLocalServiceUtil {
40 public static com.liferay.portlet.expando.model.ExpandoRow addExpandoRow(
41 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addExpandoRow(expandoRow);
44 }
45
46 public static com.liferay.portlet.expando.model.ExpandoRow createExpandoRow(
47 long rowId) {
48 return getService().createExpandoRow(rowId);
49 }
50
51 public static void deleteExpandoRow(long rowId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deleteExpandoRow(rowId);
55 }
56
57 public static void deleteExpandoRow(
58 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deleteExpandoRow(expandoRow);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.kernel.exception.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.kernel.exception.SystemException {
80 return getService()
81 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82 }
83
84 public static int dynamicQueryCount(
85 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86 throws com.liferay.portal.kernel.exception.SystemException {
87 return getService().dynamicQueryCount(dynamicQuery);
88 }
89
90 public static com.liferay.portlet.expando.model.ExpandoRow getExpandoRow(
91 long rowId)
92 throws com.liferay.portal.kernel.exception.PortalException,
93 com.liferay.portal.kernel.exception.SystemException {
94 return getService().getExpandoRow(rowId);
95 }
96
97 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getExpandoRows(
98 int start, int end)
99 throws com.liferay.portal.kernel.exception.SystemException {
100 return getService().getExpandoRows(start, end);
101 }
102
103 public static int getExpandoRowsCount()
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getService().getExpandoRowsCount();
106 }
107
108 public static com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
109 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().updateExpandoRow(expandoRow);
112 }
113
114 public static com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
115 com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getService().updateExpandoRow(expandoRow, merge);
118 }
119
120 public static com.liferay.portlet.expando.model.ExpandoRow addRow(
121 long tableId, long classPK)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException {
124 return getService().addRow(tableId, classPK);
125 }
126
127 public static void deleteRow(long rowId)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException {
130 getService().deleteRow(rowId);
131 }
132
133 public static void deleteRow(long tableId, long classPK)
134 throws com.liferay.portal.kernel.exception.PortalException,
135 com.liferay.portal.kernel.exception.SystemException {
136 getService().deleteRow(tableId, classPK);
137 }
138
139 public static void deleteRow(long companyId, long classNameId,
140 java.lang.String tableName, long classPK)
141 throws com.liferay.portal.kernel.exception.PortalException,
142 com.liferay.portal.kernel.exception.SystemException {
143 getService().deleteRow(companyId, classNameId, tableName, classPK);
144 }
145
146 public static void deleteRow(long companyId, java.lang.String className,
147 java.lang.String tableName, long classPK)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException {
150 getService().deleteRow(companyId, className, tableName, classPK);
151 }
152
153 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
154 long companyId, long classNameId, int start, int end)
155 throws com.liferay.portal.kernel.exception.SystemException {
156 return getService()
157 .getDefaultTableRows(companyId, classNameId, start, end);
158 }
159
160 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
161 long companyId, java.lang.String className, int start, int end)
162 throws com.liferay.portal.kernel.exception.SystemException {
163 return getService().getDefaultTableRows(companyId, className, start, end);
164 }
165
166 public static int getDefaultTableRowsCount(long companyId, long classNameId)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().getDefaultTableRowsCount(companyId, classNameId);
169 }
170
171 public static int getDefaultTableRowsCount(long companyId,
172 java.lang.String className)
173 throws com.liferay.portal.kernel.exception.SystemException {
174 return getService().getDefaultTableRowsCount(companyId, className);
175 }
176
177 public static com.liferay.portlet.expando.model.ExpandoRow getRow(
178 long rowId)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return getService().getRow(rowId);
182 }
183
184 public static com.liferay.portlet.expando.model.ExpandoRow getRow(
185 long tableId, long classPK)
186 throws com.liferay.portal.kernel.exception.PortalException,
187 com.liferay.portal.kernel.exception.SystemException {
188 return getService().getRow(tableId, classPK);
189 }
190
191 public static com.liferay.portlet.expando.model.ExpandoRow getRow(
192 long companyId, long classNameId, java.lang.String tableName,
193 long classPK)
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getService().getRow(companyId, classNameId, tableName, classPK);
196 }
197
198 public static com.liferay.portlet.expando.model.ExpandoRow getRow(
199 long companyId, java.lang.String className, java.lang.String tableName,
200 long classPK)
201 throws com.liferay.portal.kernel.exception.SystemException {
202 return getService().getRow(companyId, 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.kernel.exception.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 companyId, long classNameId, java.lang.String tableName,
213 int start, int end)
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getService()
216 .getRows(companyId, classNameId, tableName, start, end);
217 }
218
219 public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
220 long companyId, java.lang.String className, java.lang.String tableName,
221 int start, int end)
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return getService().getRows(companyId, className, tableName, start, end);
224 }
225
226 public static int getRowsCount(long tableId)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getService().getRowsCount(tableId);
229 }
230
231 public static int getRowsCount(long companyId, long classNameId,
232 java.lang.String tableName)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 return getService().getRowsCount(companyId, classNameId, tableName);
235 }
236
237 public static int getRowsCount(long companyId, java.lang.String className,
238 java.lang.String tableName)
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getService().getRowsCount(companyId, className, tableName);
241 }
242
243 public static ExpandoRowLocalService getService() {
244 if (_service == null) {
245 _service = (ExpandoRowLocalService)PortalBeanLocatorUtil.locate(ExpandoRowLocalService.class.getName());
246 }
247
248 return _service;
249 }
250
251 public void setService(ExpandoRowLocalService service) {
252 _service = service;
253 }
254
255 private static ExpandoRowLocalService _service;
256 }