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     * <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.
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.
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.
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            * Updates the counter in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
231            *
232            * @param counter the counter
233            * @param merge whether to merge the counter 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.
234            * @return the counter that was updated
235            * @throws SystemException if a system exception occurred
236            */
237            public com.liferay.counter.model.Counter updateCounter(
238                    com.liferay.counter.model.Counter counter, boolean merge)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return _counterLocalService.updateCounter(counter, merge);
241            }
242    
243            /**
244            * Returns the Spring bean ID for this bean.
245            *
246            * @return the Spring bean ID for this bean
247            */
248            public java.lang.String getBeanIdentifier() {
249                    return _counterLocalService.getBeanIdentifier();
250            }
251    
252            /**
253            * Sets the Spring bean ID for this bean.
254            *
255            * @param beanIdentifier the Spring bean ID for this bean
256            */
257            public void setBeanIdentifier(java.lang.String beanIdentifier) {
258                    _counterLocalService.setBeanIdentifier(beanIdentifier);
259            }
260    
261            public java.util.List<java.lang.String> getNames()
262                    throws com.liferay.portal.kernel.exception.SystemException {
263                    return _counterLocalService.getNames();
264            }
265    
266            public long increment()
267                    throws com.liferay.portal.kernel.exception.SystemException {
268                    return _counterLocalService.increment();
269            }
270    
271            public long increment(java.lang.String name)
272                    throws com.liferay.portal.kernel.exception.SystemException {
273                    return _counterLocalService.increment(name);
274            }
275    
276            public long increment(java.lang.String name, int size)
277                    throws com.liferay.portal.kernel.exception.SystemException {
278                    return _counterLocalService.increment(name, size);
279            }
280    
281            public void rename(java.lang.String oldName, java.lang.String newName)
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    _counterLocalService.rename(oldName, newName);
284            }
285    
286            public void reset(java.lang.String name)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    _counterLocalService.reset(name);
289            }
290    
291            public void reset(java.lang.String name, long size)
292                    throws com.liferay.portal.kernel.exception.SystemException {
293                    _counterLocalService.reset(name, size);
294            }
295    
296            /**
297             * @deprecated Renamed to {@link #getWrappedService}
298             */
299            public CounterLocalService getWrappedCounterLocalService() {
300                    return _counterLocalService;
301            }
302    
303            /**
304             * @deprecated Renamed to {@link #setWrappedService}
305             */
306            public void setWrappedCounterLocalService(
307                    CounterLocalService counterLocalService) {
308                    _counterLocalService = counterLocalService;
309            }
310    
311            public CounterLocalService getWrappedService() {
312                    return _counterLocalService;
313            }
314    
315            public void setWrappedService(CounterLocalService counterLocalService) {
316                    _counterLocalService = counterLocalService;
317            }
318    
319            private CounterLocalService _counterLocalService;
320    }