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.model;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link Counter}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       Counter
026     * @generated
027     */
028    public class CounterWrapper implements Counter, ModelWrapper<Counter> {
029            public CounterWrapper(Counter counter) {
030                    _counter = counter;
031            }
032    
033            public Class<?> getModelClass() {
034                    return Counter.class;
035            }
036    
037            public String getModelClassName() {
038                    return Counter.class.getName();
039            }
040    
041            /**
042            * Returns the primary key of this counter.
043            *
044            * @return the primary key of this counter
045            */
046            public java.lang.String getPrimaryKey() {
047                    return _counter.getPrimaryKey();
048            }
049    
050            /**
051            * Sets the primary key of this counter.
052            *
053            * @param primaryKey the primary key of this counter
054            */
055            public void setPrimaryKey(java.lang.String primaryKey) {
056                    _counter.setPrimaryKey(primaryKey);
057            }
058    
059            /**
060            * Returns the name of this counter.
061            *
062            * @return the name of this counter
063            */
064            public java.lang.String getName() {
065                    return _counter.getName();
066            }
067    
068            /**
069            * Sets the name of this counter.
070            *
071            * @param name the name of this counter
072            */
073            public void setName(java.lang.String name) {
074                    _counter.setName(name);
075            }
076    
077            /**
078            * Returns the current ID of this counter.
079            *
080            * @return the current ID of this counter
081            */
082            public long getCurrentId() {
083                    return _counter.getCurrentId();
084            }
085    
086            /**
087            * Sets the current ID of this counter.
088            *
089            * @param currentId the current ID of this counter
090            */
091            public void setCurrentId(long currentId) {
092                    _counter.setCurrentId(currentId);
093            }
094    
095            public boolean isNew() {
096                    return _counter.isNew();
097            }
098    
099            public void setNew(boolean n) {
100                    _counter.setNew(n);
101            }
102    
103            public boolean isCachedModel() {
104                    return _counter.isCachedModel();
105            }
106    
107            public void setCachedModel(boolean cachedModel) {
108                    _counter.setCachedModel(cachedModel);
109            }
110    
111            public boolean isEscapedModel() {
112                    return _counter.isEscapedModel();
113            }
114    
115            public java.io.Serializable getPrimaryKeyObj() {
116                    return _counter.getPrimaryKeyObj();
117            }
118    
119            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
120                    _counter.setPrimaryKeyObj(primaryKeyObj);
121            }
122    
123            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
124                    return _counter.getExpandoBridge();
125            }
126    
127            public void setExpandoBridgeAttributes(
128                    com.liferay.portal.service.ServiceContext serviceContext) {
129                    _counter.setExpandoBridgeAttributes(serviceContext);
130            }
131    
132            @Override
133            public java.lang.Object clone() {
134                    return new CounterWrapper((Counter)_counter.clone());
135            }
136    
137            public int compareTo(com.liferay.counter.model.Counter counter) {
138                    return _counter.compareTo(counter);
139            }
140    
141            @Override
142            public int hashCode() {
143                    return _counter.hashCode();
144            }
145    
146            public com.liferay.portal.model.CacheModel<com.liferay.counter.model.Counter> toCacheModel() {
147                    return _counter.toCacheModel();
148            }
149    
150            public com.liferay.counter.model.Counter toEscapedModel() {
151                    return new CounterWrapper(_counter.toEscapedModel());
152            }
153    
154            @Override
155            public java.lang.String toString() {
156                    return _counter.toString();
157            }
158    
159            public java.lang.String toXmlString() {
160                    return _counter.toXmlString();
161            }
162    
163            public void persist()
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    _counter.persist();
166            }
167    
168            /**
169             * @deprecated Renamed to {@link #getWrappedModel}
170             */
171            public Counter getWrappedCounter() {
172                    return _counter;
173            }
174    
175            public Counter getWrappedModel() {
176                    return _counter;
177            }
178    
179            public void resetOriginalValues() {
180                    _counter.resetOriginalValues();
181            }
182    
183            private Counter _counter;
184    }