001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.expando.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link ExpandoRowLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       ExpandoRowLocalService
026     * @generated
027     */
028    public class ExpandoRowLocalServiceWrapper implements ExpandoRowLocalService,
029            ServiceWrapper<ExpandoRowLocalService> {
030            public ExpandoRowLocalServiceWrapper(
031                    ExpandoRowLocalService expandoRowLocalService) {
032                    _expandoRowLocalService = expandoRowLocalService;
033            }
034    
035            /**
036            * Adds the expando row to the database. Also notifies the appropriate model listeners.
037            *
038            * @param expandoRow the expando row
039            * @return the expando row that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.expando.model.ExpandoRow addExpandoRow(
043                    com.liferay.portlet.expando.model.ExpandoRow expandoRow)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _expandoRowLocalService.addExpandoRow(expandoRow);
046            }
047    
048            /**
049            * Creates a new expando row with the primary key. Does not add the expando row to the database.
050            *
051            * @param rowId the primary key for the new expando row
052            * @return the new expando row
053            */
054            public com.liferay.portlet.expando.model.ExpandoRow createExpandoRow(
055                    long rowId) {
056                    return _expandoRowLocalService.createExpandoRow(rowId);
057            }
058    
059            /**
060            * Deletes the expando row with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param rowId the primary key of the expando row
063            * @throws PortalException if a expando row with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            public void deleteExpandoRow(long rowId)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    _expandoRowLocalService.deleteExpandoRow(rowId);
070            }
071    
072            /**
073            * Deletes the expando row from the database. Also notifies the appropriate model listeners.
074            *
075            * @param expandoRow the expando row
076            * @throws SystemException if a system exception occurred
077            */
078            public void deleteExpandoRow(
079                    com.liferay.portlet.expando.model.ExpandoRow expandoRow)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    _expandoRowLocalService.deleteExpandoRow(expandoRow);
082            }
083    
084            /**
085            * Performs a dynamic query on the database and returns the matching rows.
086            *
087            * @param dynamicQuery the dynamic query
088            * @return the matching rows
089            * @throws SystemException if a system exception occurred
090            */
091            @SuppressWarnings("rawtypes")
092            public java.util.List dynamicQuery(
093                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094                    throws com.liferay.portal.kernel.exception.SystemException {
095                    return _expandoRowLocalService.dynamicQuery(dynamicQuery);
096            }
097    
098            /**
099            * Performs a dynamic query on the database and returns a range of the matching rows.
100            *
101            * <p>
102            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
103            * </p>
104            *
105            * @param dynamicQuery the dynamic query
106            * @param start the lower bound of the range of model instances
107            * @param end the upper bound of the range of model instances (not inclusive)
108            * @return the range of matching rows
109            * @throws SystemException if a system exception occurred
110            */
111            @SuppressWarnings("rawtypes")
112            public java.util.List dynamicQuery(
113                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
114                    int end) throws com.liferay.portal.kernel.exception.SystemException {
115                    return _expandoRowLocalService.dynamicQuery(dynamicQuery, start, end);
116            }
117    
118            /**
119            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
120            *
121            * <p>
122            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
123            * </p>
124            *
125            * @param dynamicQuery the dynamic query
126            * @param start the lower bound of the range of model instances
127            * @param end the upper bound of the range of model instances (not inclusive)
128            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
129            * @return the ordered range of matching rows
130            * @throws SystemException if a system exception occurred
131            */
132            @SuppressWarnings("rawtypes")
133            public java.util.List dynamicQuery(
134                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
135                    int end,
136                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137                    throws com.liferay.portal.kernel.exception.SystemException {
138                    return _expandoRowLocalService.dynamicQuery(dynamicQuery, start, end,
139                            orderByComparator);
140            }
141    
142            /**
143            * Returns the number of rows that match the dynamic query.
144            *
145            * @param dynamicQuery the dynamic query
146            * @return the number of rows that match the dynamic query
147            * @throws SystemException if a system exception occurred
148            */
149            public long dynamicQueryCount(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _expandoRowLocalService.dynamicQueryCount(dynamicQuery);
153            }
154    
155            public com.liferay.portlet.expando.model.ExpandoRow fetchExpandoRow(
156                    long rowId) throws com.liferay.portal.kernel.exception.SystemException {
157                    return _expandoRowLocalService.fetchExpandoRow(rowId);
158            }
159    
160            /**
161            * Returns the expando row with the primary key.
162            *
163            * @param rowId the primary key of the expando row
164            * @return the expando row
165            * @throws PortalException if a expando row with the primary key could not be found
166            * @throws SystemException if a system exception occurred
167            */
168            public com.liferay.portlet.expando.model.ExpandoRow getExpandoRow(
169                    long rowId)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _expandoRowLocalService.getExpandoRow(rowId);
173            }
174    
175            public com.liferay.portal.model.PersistedModel getPersistedModel(
176                    java.io.Serializable primaryKeyObj)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return _expandoRowLocalService.getPersistedModel(primaryKeyObj);
180            }
181    
182            /**
183            * Returns a range of all the expando rows.
184            *
185            * <p>
186            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
187            * </p>
188            *
189            * @param start the lower bound of the range of expando rows
190            * @param end the upper bound of the range of expando rows (not inclusive)
191            * @return the range of expando rows
192            * @throws SystemException if a system exception occurred
193            */
194            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getExpandoRows(
195                    int start, int end)
196                    throws com.liferay.portal.kernel.exception.SystemException {
197                    return _expandoRowLocalService.getExpandoRows(start, end);
198            }
199    
200            /**
201            * Returns the number of expando rows.
202            *
203            * @return the number of expando rows
204            * @throws SystemException if a system exception occurred
205            */
206            public int getExpandoRowsCount()
207                    throws com.liferay.portal.kernel.exception.SystemException {
208                    return _expandoRowLocalService.getExpandoRowsCount();
209            }
210    
211            /**
212            * Updates the expando row in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
213            *
214            * @param expandoRow the expando row
215            * @return the expando row that was updated
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
219                    com.liferay.portlet.expando.model.ExpandoRow expandoRow)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _expandoRowLocalService.updateExpandoRow(expandoRow);
222            }
223    
224            /**
225            * Updates the expando row in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
226            *
227            * @param expandoRow the expando row
228            * @param merge whether to merge the expando row with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
229            * @return the expando row that was updated
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
233                    com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
234                    throws com.liferay.portal.kernel.exception.SystemException {
235                    return _expandoRowLocalService.updateExpandoRow(expandoRow, merge);
236            }
237    
238            /**
239            * Returns the Spring bean ID for this bean.
240            *
241            * @return the Spring bean ID for this bean
242            */
243            public java.lang.String getBeanIdentifier() {
244                    return _expandoRowLocalService.getBeanIdentifier();
245            }
246    
247            /**
248            * Sets the Spring bean ID for this bean.
249            *
250            * @param beanIdentifier the Spring bean ID for this bean
251            */
252            public void setBeanIdentifier(java.lang.String beanIdentifier) {
253                    _expandoRowLocalService.setBeanIdentifier(beanIdentifier);
254            }
255    
256            public com.liferay.portlet.expando.model.ExpandoRow addRow(long tableId,
257                    long classPK)
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException {
260                    return _expandoRowLocalService.addRow(tableId, classPK);
261            }
262    
263            public void deleteRow(com.liferay.portlet.expando.model.ExpandoRow row)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    _expandoRowLocalService.deleteRow(row);
266            }
267    
268            public void deleteRow(long rowId)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    _expandoRowLocalService.deleteRow(rowId);
272            }
273    
274            public void deleteRow(long tableId, long classPK)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    _expandoRowLocalService.deleteRow(tableId, classPK);
278            }
279    
280            public void deleteRow(long companyId, long classNameId,
281                    java.lang.String tableName, long classPK)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException {
284                    _expandoRowLocalService.deleteRow(companyId, classNameId, tableName,
285                            classPK);
286            }
287    
288            public void deleteRow(long companyId, java.lang.String className,
289                    java.lang.String tableName, long classPK)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    _expandoRowLocalService.deleteRow(companyId, className, tableName,
293                            classPK);
294            }
295    
296            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
297                    long companyId, long classNameId, int start, int end)
298                    throws com.liferay.portal.kernel.exception.SystemException {
299                    return _expandoRowLocalService.getDefaultTableRows(companyId,
300                            classNameId, start, end);
301            }
302    
303            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
304                    long companyId, java.lang.String className, int start, int end)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    return _expandoRowLocalService.getDefaultTableRows(companyId,
307                            className, start, end);
308            }
309    
310            public int getDefaultTableRowsCount(long companyId, long classNameId)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return _expandoRowLocalService.getDefaultTableRowsCount(companyId,
313                            classNameId);
314            }
315    
316            public int getDefaultTableRowsCount(long companyId,
317                    java.lang.String className)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return _expandoRowLocalService.getDefaultTableRowsCount(companyId,
320                            className);
321            }
322    
323            public com.liferay.portlet.expando.model.ExpandoRow getRow(long rowId)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    return _expandoRowLocalService.getRow(rowId);
327            }
328    
329            public com.liferay.portlet.expando.model.ExpandoRow getRow(long tableId,
330                    long classPK)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    return _expandoRowLocalService.getRow(tableId, classPK);
334            }
335    
336            public com.liferay.portlet.expando.model.ExpandoRow getRow(long companyId,
337                    long classNameId, java.lang.String tableName, long classPK)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return _expandoRowLocalService.getRow(companyId, classNameId,
340                            tableName, classPK);
341            }
342    
343            public com.liferay.portlet.expando.model.ExpandoRow getRow(long companyId,
344                    java.lang.String className, java.lang.String tableName, long classPK)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return _expandoRowLocalService.getRow(companyId, className, tableName,
347                            classPK);
348            }
349    
350            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
351                    long tableId, int start, int end)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    return _expandoRowLocalService.getRows(tableId, start, end);
354            }
355    
356            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
357                    long companyId, long classNameId, java.lang.String tableName,
358                    int start, int end)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return _expandoRowLocalService.getRows(companyId, classNameId,
361                            tableName, start, end);
362            }
363    
364            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
365                    long companyId, java.lang.String className, java.lang.String tableName,
366                    int start, int end)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return _expandoRowLocalService.getRows(companyId, className, tableName,
369                            start, end);
370            }
371    
372            /**
373            * @deprecated {@link #getRows(long, String, String, int, int)}
374            */
375            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
376                    java.lang.String className, java.lang.String tableName, int start,
377                    int end) throws com.liferay.portal.kernel.exception.SystemException {
378                    return _expandoRowLocalService.getRows(className, tableName, start, end);
379            }
380    
381            public int getRowsCount(long tableId)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    return _expandoRowLocalService.getRowsCount(tableId);
384            }
385    
386            public int getRowsCount(long companyId, long classNameId,
387                    java.lang.String tableName)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _expandoRowLocalService.getRowsCount(companyId, classNameId,
390                            tableName);
391            }
392    
393            public int getRowsCount(long companyId, java.lang.String className,
394                    java.lang.String tableName)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    return _expandoRowLocalService.getRowsCount(companyId, className,
397                            tableName);
398            }
399    
400            /**
401            * @deprecated {@link #getRowsCount(long, String, String)}
402            */
403            public int getRowsCount(java.lang.String className,
404                    java.lang.String tableName)
405                    throws com.liferay.portal.kernel.exception.SystemException {
406                    return _expandoRowLocalService.getRowsCount(className, tableName);
407            }
408    
409            /**
410             * @deprecated Renamed to {@link #getWrappedService}
411             */
412            public ExpandoRowLocalService getWrappedExpandoRowLocalService() {
413                    return _expandoRowLocalService;
414            }
415    
416            /**
417             * @deprecated Renamed to {@link #setWrappedService}
418             */
419            public void setWrappedExpandoRowLocalService(
420                    ExpandoRowLocalService expandoRowLocalService) {
421                    _expandoRowLocalService = expandoRowLocalService;
422            }
423    
424            public ExpandoRowLocalService getWrappedService() {
425                    return _expandoRowLocalService;
426            }
427    
428            public void setWrappedService(ExpandoRowLocalService expandoRowLocalService) {
429                    _expandoRowLocalService = expandoRowLocalService;
430            }
431    
432            private ExpandoRowLocalService _expandoRowLocalService;
433    }