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