001    /**
002     * Copyright (c) 2000-2013 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.
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.
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.
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            * Updates the expando row in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
233            *
234            * @param expandoRow the expando row
235            * @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.
236            * @return the expando row that was updated
237            * @throws SystemException if a system exception occurred
238            */
239            public com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
240                    com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
241                    throws com.liferay.portal.kernel.exception.SystemException {
242                    return _expandoRowLocalService.updateExpandoRow(expandoRow, merge);
243            }
244    
245            /**
246            * Returns the Spring bean ID for this bean.
247            *
248            * @return the Spring bean ID for this bean
249            */
250            public java.lang.String getBeanIdentifier() {
251                    return _expandoRowLocalService.getBeanIdentifier();
252            }
253    
254            /**
255            * Sets the Spring bean ID for this bean.
256            *
257            * @param beanIdentifier the Spring bean ID for this bean
258            */
259            public void setBeanIdentifier(java.lang.String beanIdentifier) {
260                    _expandoRowLocalService.setBeanIdentifier(beanIdentifier);
261            }
262    
263            public com.liferay.portlet.expando.model.ExpandoRow addRow(long tableId,
264                    long classPK)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException {
267                    return _expandoRowLocalService.addRow(tableId, classPK);
268            }
269    
270            public void deleteRow(com.liferay.portlet.expando.model.ExpandoRow row)
271                    throws com.liferay.portal.kernel.exception.SystemException {
272                    _expandoRowLocalService.deleteRow(row);
273            }
274    
275            public void deleteRow(long rowId)
276                    throws com.liferay.portal.kernel.exception.PortalException,
277                            com.liferay.portal.kernel.exception.SystemException {
278                    _expandoRowLocalService.deleteRow(rowId);
279            }
280    
281            public void deleteRow(long tableId, long classPK)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException {
284                    _expandoRowLocalService.deleteRow(tableId, classPK);
285            }
286    
287            public void deleteRow(long companyId, long classNameId,
288                    java.lang.String tableName, long classPK)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    _expandoRowLocalService.deleteRow(companyId, classNameId, tableName,
292                            classPK);
293            }
294    
295            public void deleteRow(long companyId, java.lang.String className,
296                    java.lang.String tableName, long classPK)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    _expandoRowLocalService.deleteRow(companyId, className, tableName,
300                            classPK);
301            }
302    
303            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
304                    long companyId, long classNameId, int start, int end)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    return _expandoRowLocalService.getDefaultTableRows(companyId,
307                            classNameId, start, end);
308            }
309    
310            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
311                    long companyId, java.lang.String className, int start, int end)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    return _expandoRowLocalService.getDefaultTableRows(companyId,
314                            className, start, end);
315            }
316    
317            public int getDefaultTableRowsCount(long companyId, long classNameId)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return _expandoRowLocalService.getDefaultTableRowsCount(companyId,
320                            classNameId);
321            }
322    
323            public int getDefaultTableRowsCount(long companyId,
324                    java.lang.String className)
325                    throws com.liferay.portal.kernel.exception.SystemException {
326                    return _expandoRowLocalService.getDefaultTableRowsCount(companyId,
327                            className);
328            }
329    
330            public com.liferay.portlet.expando.model.ExpandoRow getRow(long rowId)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    return _expandoRowLocalService.getRow(rowId);
334            }
335    
336            public com.liferay.portlet.expando.model.ExpandoRow getRow(long tableId,
337                    long classPK)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException {
340                    return _expandoRowLocalService.getRow(tableId, classPK);
341            }
342    
343            public com.liferay.portlet.expando.model.ExpandoRow getRow(long companyId,
344                    long classNameId, java.lang.String tableName, long classPK)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return _expandoRowLocalService.getRow(companyId, classNameId,
347                            tableName, classPK);
348            }
349    
350            public com.liferay.portlet.expando.model.ExpandoRow getRow(long companyId,
351                    java.lang.String className, java.lang.String tableName, long classPK)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    return _expandoRowLocalService.getRow(companyId, className, tableName,
354                            classPK);
355            }
356    
357            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
358                    long tableId, int start, int end)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return _expandoRowLocalService.getRows(tableId, start, end);
361            }
362    
363            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
364                    long companyId, long classNameId, java.lang.String tableName,
365                    int start, int end)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return _expandoRowLocalService.getRows(companyId, classNameId,
368                            tableName, start, end);
369            }
370    
371            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
372                    long companyId, java.lang.String className, java.lang.String tableName,
373                    int start, int end)
374                    throws com.liferay.portal.kernel.exception.SystemException {
375                    return _expandoRowLocalService.getRows(companyId, className, tableName,
376                            start, end);
377            }
378    
379            /**
380            * @deprecated {@link #getRows(long, String, String, int, int)}
381            */
382            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
383                    java.lang.String className, java.lang.String tableName, int start,
384                    int end) throws com.liferay.portal.kernel.exception.SystemException {
385                    return _expandoRowLocalService.getRows(className, tableName, start, end);
386            }
387    
388            public int getRowsCount(long tableId)
389                    throws com.liferay.portal.kernel.exception.SystemException {
390                    return _expandoRowLocalService.getRowsCount(tableId);
391            }
392    
393            public int getRowsCount(long companyId, long classNameId,
394                    java.lang.String tableName)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    return _expandoRowLocalService.getRowsCount(companyId, classNameId,
397                            tableName);
398            }
399    
400            public int getRowsCount(long companyId, java.lang.String className,
401                    java.lang.String tableName)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    return _expandoRowLocalService.getRowsCount(companyId, className,
404                            tableName);
405            }
406    
407            /**
408            * @deprecated {@link #getRowsCount(long, String, String)}
409            */
410            public int getRowsCount(java.lang.String className,
411                    java.lang.String tableName)
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    return _expandoRowLocalService.getRowsCount(className, tableName);
414            }
415    
416            /**
417             * @deprecated Renamed to {@link #getWrappedService}
418             */
419            public ExpandoRowLocalService getWrappedExpandoRowLocalService() {
420                    return _expandoRowLocalService;
421            }
422    
423            /**
424             * @deprecated Renamed to {@link #setWrappedService}
425             */
426            public void setWrappedExpandoRowLocalService(
427                    ExpandoRowLocalService expandoRowLocalService) {
428                    _expandoRowLocalService = expandoRowLocalService;
429            }
430    
431            public ExpandoRowLocalService getWrappedService() {
432                    return _expandoRowLocalService;
433            }
434    
435            public void setWrappedService(ExpandoRowLocalService expandoRowLocalService) {
436                    _expandoRowLocalService = expandoRowLocalService;
437            }
438    
439            private ExpandoRowLocalService _expandoRowLocalService;
440    }