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