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