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            * @return the expando row that was removed
064            * @throws PortalException if a expando row with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portlet.expando.model.ExpandoRow deleteExpandoRow(
068                    long rowId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _expandoRowLocalService.deleteExpandoRow(rowId);
072            }
073    
074            /**
075            * Deletes the expando row from the database. Also notifies the appropriate model listeners.
076            *
077            * @param expandoRow the expando row
078            * @return the expando row that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portlet.expando.model.ExpandoRow deleteExpandoRow(
082                    com.liferay.portlet.expando.model.ExpandoRow expandoRow)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _expandoRowLocalService.deleteExpandoRow(expandoRow);
085            }
086    
087            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
088                    return _expandoRowLocalService.dynamicQuery();
089            }
090    
091            /**
092            * Performs a dynamic query on the database and returns the matching rows.
093            *
094            * @param dynamicQuery the dynamic query
095            * @return the matching rows
096            * @throws SystemException if a system exception occurred
097            */
098            @SuppressWarnings("rawtypes")
099            public java.util.List dynamicQuery(
100                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _expandoRowLocalService.dynamicQuery(dynamicQuery);
103            }
104    
105            /**
106            * Performs a dynamic query on the database and returns a range of the matching rows.
107            *
108            * <p>
109            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoRowModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
110            * </p>
111            *
112            * @param dynamicQuery the dynamic query
113            * @param start the lower bound of the range of model instances
114            * @param end the upper bound of the range of model instances (not inclusive)
115            * @return the range of matching rows
116            * @throws SystemException if a system exception occurred
117            */
118            @SuppressWarnings("rawtypes")
119            public java.util.List dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121                    int end) throws com.liferay.portal.kernel.exception.SystemException {
122                    return _expandoRowLocalService.dynamicQuery(dynamicQuery, start, end);
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
127            *
128            * <p>
129            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoRowModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
130            * </p>
131            *
132            * @param dynamicQuery the dynamic query
133            * @param start the lower bound of the range of model instances
134            * @param end the upper bound of the range of model instances (not inclusive)
135            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
136            * @return the ordered range of matching rows
137            * @throws SystemException if a system exception occurred
138            */
139            @SuppressWarnings("rawtypes")
140            public java.util.List dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142                    int end,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return _expandoRowLocalService.dynamicQuery(dynamicQuery, start, end,
146                            orderByComparator);
147            }
148    
149            /**
150            * Returns the number of rows that match the dynamic query.
151            *
152            * @param dynamicQuery the dynamic query
153            * @return the number of rows that match the dynamic query
154            * @throws SystemException if a system exception occurred
155            */
156            public long dynamicQueryCount(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _expandoRowLocalService.dynamicQueryCount(dynamicQuery);
160            }
161    
162            public com.liferay.portlet.expando.model.ExpandoRow fetchExpandoRow(
163                    long rowId) throws com.liferay.portal.kernel.exception.SystemException {
164                    return _expandoRowLocalService.fetchExpandoRow(rowId);
165            }
166    
167            /**
168            * Returns the expando row with the primary key.
169            *
170            * @param rowId the primary key of the expando row
171            * @return the expando row
172            * @throws PortalException if a expando row with the primary key could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public com.liferay.portlet.expando.model.ExpandoRow getExpandoRow(
176                    long rowId)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return _expandoRowLocalService.getExpandoRow(rowId);
180            }
181    
182            public com.liferay.portal.model.PersistedModel getPersistedModel(
183                    java.io.Serializable primaryKeyObj)
184                    throws com.liferay.portal.kernel.exception.PortalException,
185                            com.liferay.portal.kernel.exception.SystemException {
186                    return _expandoRowLocalService.getPersistedModel(primaryKeyObj);
187            }
188    
189            /**
190            * Returns a range of all the expando rows.
191            *
192            * <p>
193            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoRowModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
194            * </p>
195            *
196            * @param start the lower bound of the range of expando rows
197            * @param end the upper bound of the range of expando rows (not inclusive)
198            * @return the range of expando rows
199            * @throws SystemException if a system exception occurred
200            */
201            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getExpandoRows(
202                    int start, int end)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return _expandoRowLocalService.getExpandoRows(start, end);
205            }
206    
207            /**
208            * Returns the number of expando rows.
209            *
210            * @return the number of expando rows
211            * @throws SystemException if a system exception occurred
212            */
213            public int getExpandoRowsCount()
214                    throws com.liferay.portal.kernel.exception.SystemException {
215                    return _expandoRowLocalService.getExpandoRowsCount();
216            }
217    
218            /**
219            * Updates the expando row in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
220            *
221            * @param expandoRow the expando row
222            * @return the expando row that was updated
223            * @throws SystemException if a system exception occurred
224            */
225            public com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
226                    com.liferay.portlet.expando.model.ExpandoRow expandoRow)
227                    throws com.liferay.portal.kernel.exception.SystemException {
228                    return _expandoRowLocalService.updateExpandoRow(expandoRow);
229            }
230    
231            /**
232            * Returns the Spring bean ID for this bean.
233            *
234            * @return the Spring bean ID for this bean
235            */
236            public java.lang.String getBeanIdentifier() {
237                    return _expandoRowLocalService.getBeanIdentifier();
238            }
239    
240            /**
241            * Sets the Spring bean ID for this bean.
242            *
243            * @param beanIdentifier the Spring bean ID for this bean
244            */
245            public void setBeanIdentifier(java.lang.String beanIdentifier) {
246                    _expandoRowLocalService.setBeanIdentifier(beanIdentifier);
247            }
248    
249            public com.liferay.portlet.expando.model.ExpandoRow addRow(long tableId,
250                    long classPK)
251                    throws com.liferay.portal.kernel.exception.PortalException,
252                            com.liferay.portal.kernel.exception.SystemException {
253                    return _expandoRowLocalService.addRow(tableId, classPK);
254            }
255    
256            public void deleteRow(com.liferay.portlet.expando.model.ExpandoRow row)
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    _expandoRowLocalService.deleteRow(row);
259            }
260    
261            public void deleteRow(long rowId)
262                    throws com.liferay.portal.kernel.exception.PortalException,
263                            com.liferay.portal.kernel.exception.SystemException {
264                    _expandoRowLocalService.deleteRow(rowId);
265            }
266    
267            public void deleteRow(long tableId, long classPK)
268                    throws com.liferay.portal.kernel.exception.PortalException,
269                            com.liferay.portal.kernel.exception.SystemException {
270                    _expandoRowLocalService.deleteRow(tableId, classPK);
271            }
272    
273            public void deleteRow(long companyId, long classNameId,
274                    java.lang.String tableName, long classPK)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    _expandoRowLocalService.deleteRow(companyId, classNameId, tableName,
278                            classPK);
279            }
280    
281            public void deleteRow(long companyId, java.lang.String className,
282                    java.lang.String tableName, long classPK)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException {
285                    _expandoRowLocalService.deleteRow(companyId, className, tableName,
286                            classPK);
287            }
288    
289            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
290                    long companyId, long classNameId, int start, int end)
291                    throws com.liferay.portal.kernel.exception.SystemException {
292                    return _expandoRowLocalService.getDefaultTableRows(companyId,
293                            classNameId, start, end);
294            }
295    
296            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
297                    long companyId, java.lang.String className, int start, int end)
298                    throws com.liferay.portal.kernel.exception.SystemException {
299                    return _expandoRowLocalService.getDefaultTableRows(companyId,
300                            className, start, end);
301            }
302    
303            public int getDefaultTableRowsCount(long companyId, long classNameId)
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    return _expandoRowLocalService.getDefaultTableRowsCount(companyId,
306                            classNameId);
307            }
308    
309            public int getDefaultTableRowsCount(long companyId,
310                    java.lang.String className)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return _expandoRowLocalService.getDefaultTableRowsCount(companyId,
313                            className);
314            }
315    
316            public com.liferay.portlet.expando.model.ExpandoRow getRow(long rowId)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    return _expandoRowLocalService.getRow(rowId);
320            }
321    
322            public com.liferay.portlet.expando.model.ExpandoRow getRow(long tableId,
323                    long classPK)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    return _expandoRowLocalService.getRow(tableId, classPK);
327            }
328    
329            public com.liferay.portlet.expando.model.ExpandoRow getRow(long companyId,
330                    long classNameId, java.lang.String tableName, long classPK)
331                    throws com.liferay.portal.kernel.exception.SystemException {
332                    return _expandoRowLocalService.getRow(companyId, classNameId,
333                            tableName, classPK);
334            }
335    
336            public com.liferay.portlet.expando.model.ExpandoRow getRow(long companyId,
337                    java.lang.String className, java.lang.String tableName, long classPK)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return _expandoRowLocalService.getRow(companyId, className, tableName,
340                            classPK);
341            }
342    
343            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
344                    long tableId, int start, int end)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return _expandoRowLocalService.getRows(tableId, start, end);
347            }
348    
349            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
350                    long companyId, long classNameId, java.lang.String tableName,
351                    int start, int end)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    return _expandoRowLocalService.getRows(companyId, classNameId,
354                            tableName, start, end);
355            }
356    
357            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
358                    long companyId, java.lang.String className, java.lang.String tableName,
359                    int start, int end)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return _expandoRowLocalService.getRows(companyId, className, tableName,
362                            start, end);
363            }
364    
365            /**
366            * @deprecated {@link #getRows(long, String, String, int, int)}
367            */
368            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
369                    java.lang.String className, java.lang.String tableName, int start,
370                    int end) throws com.liferay.portal.kernel.exception.SystemException {
371                    return _expandoRowLocalService.getRows(className, tableName, start, end);
372            }
373    
374            public int getRowsCount(long tableId)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return _expandoRowLocalService.getRowsCount(tableId);
377            }
378    
379            public int getRowsCount(long companyId, long classNameId,
380                    java.lang.String tableName)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return _expandoRowLocalService.getRowsCount(companyId, classNameId,
383                            tableName);
384            }
385    
386            public int getRowsCount(long companyId, java.lang.String className,
387                    java.lang.String tableName)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _expandoRowLocalService.getRowsCount(companyId, className,
390                            tableName);
391            }
392    
393            /**
394            * @deprecated {@link #getRowsCount(long, String, String)}
395            */
396            public int getRowsCount(java.lang.String className,
397                    java.lang.String tableName)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return _expandoRowLocalService.getRowsCount(className, tableName);
400            }
401    
402            /**
403             * @deprecated Renamed to {@link #getWrappedService}
404             */
405            public ExpandoRowLocalService getWrappedExpandoRowLocalService() {
406                    return _expandoRowLocalService;
407            }
408    
409            /**
410             * @deprecated Renamed to {@link #setWrappedService}
411             */
412            public void setWrappedExpandoRowLocalService(
413                    ExpandoRowLocalService expandoRowLocalService) {
414                    _expandoRowLocalService = expandoRowLocalService;
415            }
416    
417            public ExpandoRowLocalService getWrappedService() {
418                    return _expandoRowLocalService;
419            }
420    
421            public void setWrappedService(ExpandoRowLocalService expandoRowLocalService) {
422                    _expandoRowLocalService = expandoRowLocalService;
423            }
424    
425            private ExpandoRowLocalService _expandoRowLocalService;
426    }