001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            /**
032            * Gets the primary key of this counter.
033            *
034            * @return the primary key of this counter
035            */
036            public java.lang.String getPrimaryKey() {
037                    return _counter.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this counter
042            *
043            * @param pk the primary key of this counter
044            */
045            public void setPrimaryKey(java.lang.String pk) {
046                    _counter.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the name of this counter.
051            *
052            * @return the name of this counter
053            */
054            public java.lang.String getName() {
055                    return _counter.getName();
056            }
057    
058            /**
059            * Sets the name of this counter.
060            *
061            * @param name the name of this counter
062            */
063            public void setName(java.lang.String name) {
064                    _counter.setName(name);
065            }
066    
067            /**
068            * Gets the current id of this counter.
069            *
070            * @return the current id of this counter
071            */
072            public long getCurrentId() {
073                    return _counter.getCurrentId();
074            }
075    
076            /**
077            * Sets the current id of this counter.
078            *
079            * @param currentId the current id of this counter
080            */
081            public void setCurrentId(long currentId) {
082                    _counter.setCurrentId(currentId);
083            }
084    
085            public boolean isNew() {
086                    return _counter.isNew();
087            }
088    
089            public void setNew(boolean n) {
090                    _counter.setNew(n);
091            }
092    
093            public boolean isCachedModel() {
094                    return _counter.isCachedModel();
095            }
096    
097            public void setCachedModel(boolean cachedModel) {
098                    _counter.setCachedModel(cachedModel);
099            }
100    
101            public boolean isEscapedModel() {
102                    return _counter.isEscapedModel();
103            }
104    
105            public void setEscapedModel(boolean escapedModel) {
106                    _counter.setEscapedModel(escapedModel);
107            }
108    
109            public java.io.Serializable getPrimaryKeyObj() {
110                    return _counter.getPrimaryKeyObj();
111            }
112    
113            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
114                    return _counter.getExpandoBridge();
115            }
116    
117            public void setExpandoBridgeAttributes(
118                    com.liferay.portal.service.ServiceContext serviceContext) {
119                    _counter.setExpandoBridgeAttributes(serviceContext);
120            }
121    
122            public java.lang.Object clone() {
123                    return _counter.clone();
124            }
125    
126            public int compareTo(com.liferay.counter.model.Counter counter) {
127                    return _counter.compareTo(counter);
128            }
129    
130            public int hashCode() {
131                    return _counter.hashCode();
132            }
133    
134            public com.liferay.counter.model.Counter toEscapedModel() {
135                    return _counter.toEscapedModel();
136            }
137    
138            public java.lang.String toString() {
139                    return _counter.toString();
140            }
141    
142            public java.lang.String toXmlString() {
143                    return _counter.toXmlString();
144            }
145    
146            public Counter getWrappedCounter() {
147                    return _counter;
148            }
149    
150            private Counter _counter;
151    }