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.counter.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link CounterLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       CounterLocalService
026     * @generated
027     */
028    public class CounterLocalServiceWrapper implements CounterLocalService,
029            ServiceWrapper<CounterLocalService> {
030            public CounterLocalServiceWrapper(CounterLocalService counterLocalService) {
031                    _counterLocalService = counterLocalService;
032            }
033    
034            /**
035            * Adds the counter to the database. Also notifies the appropriate model listeners.
036            *
037            * @param counter the counter
038            * @return the counter that was added
039            * @throws SystemException if a system exception occurred
040            */
041            public com.liferay.counter.model.Counter addCounter(
042                    com.liferay.counter.model.Counter counter)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _counterLocalService.addCounter(counter);
045            }
046    
047            /**
048            * Creates a new counter with the primary key. Does not add the counter to the database.
049            *
050            * @param name the primary key for the new counter
051            * @return the new counter
052            */
053            public com.liferay.counter.model.Counter createCounter(
054                    java.lang.String name) {
055                    return _counterLocalService.createCounter(name);
056            }
057    
058            /**
059            * Deletes the counter with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param name the primary key of the counter
062            * @return the counter that was removed
063            * @throws PortalException if a counter with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            public com.liferay.counter.model.Counter deleteCounter(
067                    java.lang.String name)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return _counterLocalService.deleteCounter(name);
071            }
072    
073            /**
074            * Deletes the counter from the database. Also notifies the appropriate model listeners.
075            *
076            * @param counter the counter
077            * @return the counter that was removed
078            * @throws SystemException if a system exception occurred
079            */
080            public com.liferay.counter.model.Counter deleteCounter(
081                    com.liferay.counter.model.Counter counter)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return _counterLocalService.deleteCounter(counter);
084            }
085    
086            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
087                    return _counterLocalService.dynamicQuery();
088            }
089    
090            /**
091            * Performs a dynamic query on the database and returns the matching rows.
092            *
093            * @param dynamicQuery the dynamic query
094            * @return the matching rows
095            * @throws SystemException if a system exception occurred
096            */
097            @SuppressWarnings("rawtypes")
098            public java.util.List dynamicQuery(
099                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return _counterLocalService.dynamicQuery(dynamicQuery);
102            }
103    
104            /**
105            * Performs a dynamic query on the database and returns a range of the matching rows.
106            *
107            * <p>
108            * 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.counter.model.impl.CounterModelImpl}. 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.
109            * </p>
110            *
111            * @param dynamicQuery the dynamic query
112            * @param start the lower bound of the range of model instances
113            * @param end the upper bound of the range of model instances (not inclusive)
114            * @return the range of matching rows
115            * @throws SystemException if a system exception occurred
116            */
117            @SuppressWarnings("rawtypes")
118            public java.util.List dynamicQuery(
119                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120                    int end) throws com.liferay.portal.kernel.exception.SystemException {
121                    return _counterLocalService.dynamicQuery(dynamicQuery, start, end);
122            }
123    
124            /**
125            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
126            *
127            * <p>
128            * 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.counter.model.impl.CounterModelImpl}. 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.
129            * </p>
130            *
131            * @param dynamicQuery the dynamic query
132            * @param start the lower bound of the range of model instances
133            * @param end the upper bound of the range of model instances (not inclusive)
134            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
135            * @return the ordered range of matching rows
136            * @throws SystemException if a system exception occurred
137            */
138            @SuppressWarnings("rawtypes")
139            public java.util.List dynamicQuery(
140                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141                    int end,
142                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143                    throws com.liferay.portal.kernel.exception.SystemException {
144                    return _counterLocalService.dynamicQuery(dynamicQuery, start, end,
145                            orderByComparator);
146            }
147    
148            /**
149            * Returns the number of rows that match the dynamic query.
150            *
151            * @param dynamicQuery the dynamic query
152            * @return the number of rows that match the dynamic query
153            * @throws SystemException if a system exception occurred
154            */
155            public long dynamicQueryCount(
156                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _counterLocalService.dynamicQueryCount(dynamicQuery);
159            }
160    
161            public com.liferay.counter.model.Counter fetchCounter(java.lang.String name)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return _counterLocalService.fetchCounter(name);
164            }
165    
166            /**
167            * Returns the counter with the primary key.
168            *
169            * @param name the primary key of the counter
170            * @return the counter
171            * @throws PortalException if a counter with the primary key could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public com.liferay.counter.model.Counter getCounter(java.lang.String name)
175                    throws com.liferay.portal.kernel.exception.PortalException,
176                            com.liferay.portal.kernel.exception.SystemException {
177                    return _counterLocalService.getCounter(name);
178            }
179    
180            public com.liferay.portal.model.PersistedModel getPersistedModel(
181                    java.io.Serializable primaryKeyObj)
182                    throws com.liferay.portal.kernel.exception.PortalException,
183                            com.liferay.portal.kernel.exception.SystemException {
184                    return _counterLocalService.getPersistedModel(primaryKeyObj);
185            }
186    
187            /**
188            * Returns a range of all the counters.
189            *
190            * <p>
191            * 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.counter.model.impl.CounterModelImpl}. 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.
192            * </p>
193            *
194            * @param start the lower bound of the range of counters
195            * @param end the upper bound of the range of counters (not inclusive)
196            * @return the range of counters
197            * @throws SystemException if a system exception occurred
198            */
199            public java.util.List<com.liferay.counter.model.Counter> getCounters(
200                    int start, int end)
201                    throws com.liferay.portal.kernel.exception.SystemException {
202                    return _counterLocalService.getCounters(start, end);
203            }
204    
205            /**
206            * Returns the number of counters.
207            *
208            * @return the number of counters
209            * @throws SystemException if a system exception occurred
210            */
211            public int getCountersCount()
212                    throws com.liferay.portal.kernel.exception.SystemException {
213                    return _counterLocalService.getCountersCount();
214            }
215    
216            /**
217            * Updates the counter in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
218            *
219            * @param counter the counter
220            * @return the counter that was updated
221            * @throws SystemException if a system exception occurred
222            */
223            public com.liferay.counter.model.Counter updateCounter(
224                    com.liferay.counter.model.Counter counter)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return _counterLocalService.updateCounter(counter);
227            }
228    
229            /**
230            * Returns the Spring bean ID for this bean.
231            *
232            * @return the Spring bean ID for this bean
233            */
234            public java.lang.String getBeanIdentifier() {
235                    return _counterLocalService.getBeanIdentifier();
236            }
237    
238            /**
239            * Sets the Spring bean ID for this bean.
240            *
241            * @param beanIdentifier the Spring bean ID for this bean
242            */
243            public void setBeanIdentifier(java.lang.String beanIdentifier) {
244                    _counterLocalService.setBeanIdentifier(beanIdentifier);
245            }
246    
247            public java.util.List<java.lang.String> getNames()
248                    throws com.liferay.portal.kernel.exception.SystemException {
249                    return _counterLocalService.getNames();
250            }
251    
252            public long increment()
253                    throws com.liferay.portal.kernel.exception.SystemException {
254                    return _counterLocalService.increment();
255            }
256    
257            public long increment(java.lang.String name)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    return _counterLocalService.increment(name);
260            }
261    
262            public long increment(java.lang.String name, int size)
263                    throws com.liferay.portal.kernel.exception.SystemException {
264                    return _counterLocalService.increment(name, size);
265            }
266    
267            public void rename(java.lang.String oldName, java.lang.String newName)
268                    throws com.liferay.portal.kernel.exception.SystemException {
269                    _counterLocalService.rename(oldName, newName);
270            }
271    
272            public void reset(java.lang.String name)
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    _counterLocalService.reset(name);
275            }
276    
277            public void reset(java.lang.String name, long size)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    _counterLocalService.reset(name, size);
280            }
281    
282            /**
283             * @deprecated Renamed to {@link #getWrappedService}
284             */
285            public CounterLocalService getWrappedCounterLocalService() {
286                    return _counterLocalService;
287            }
288    
289            /**
290             * @deprecated Renamed to {@link #setWrappedService}
291             */
292            public void setWrappedCounterLocalService(
293                    CounterLocalService counterLocalService) {
294                    _counterLocalService = counterLocalService;
295            }
296    
297            public CounterLocalService getWrappedService() {
298                    return _counterLocalService;
299            }
300    
301            public void setWrappedService(CounterLocalService counterLocalService) {
302                    _counterLocalService = counterLocalService;
303            }
304    
305            private CounterLocalService _counterLocalService;
306    }