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.portal.model;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link Shard}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Shard
024     * @generated
025     */
026    public class ShardWrapper implements Shard {
027            public ShardWrapper(Shard shard) {
028                    _shard = shard;
029            }
030    
031            /**
032            * Gets the primary key of this shard.
033            *
034            * @return the primary key of this shard
035            */
036            public long getPrimaryKey() {
037                    return _shard.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this shard
042            *
043            * @param pk the primary key of this shard
044            */
045            public void setPrimaryKey(long pk) {
046                    _shard.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the shard id of this shard.
051            *
052            * @return the shard id of this shard
053            */
054            public long getShardId() {
055                    return _shard.getShardId();
056            }
057    
058            /**
059            * Sets the shard id of this shard.
060            *
061            * @param shardId the shard id of this shard
062            */
063            public void setShardId(long shardId) {
064                    _shard.setShardId(shardId);
065            }
066    
067            /**
068            * Gets the class name of the model instance this shard is polymorphically associated with.
069            *
070            * @return the class name of the model instance this shard is polymorphically associated with
071            */
072            public java.lang.String getClassName() {
073                    return _shard.getClassName();
074            }
075    
076            /**
077            * Gets the class name id of this shard.
078            *
079            * @return the class name id of this shard
080            */
081            public long getClassNameId() {
082                    return _shard.getClassNameId();
083            }
084    
085            /**
086            * Sets the class name id of this shard.
087            *
088            * @param classNameId the class name id of this shard
089            */
090            public void setClassNameId(long classNameId) {
091                    _shard.setClassNameId(classNameId);
092            }
093    
094            /**
095            * Gets the class p k of this shard.
096            *
097            * @return the class p k of this shard
098            */
099            public long getClassPK() {
100                    return _shard.getClassPK();
101            }
102    
103            /**
104            * Sets the class p k of this shard.
105            *
106            * @param classPK the class p k of this shard
107            */
108            public void setClassPK(long classPK) {
109                    _shard.setClassPK(classPK);
110            }
111    
112            /**
113            * Gets the name of this shard.
114            *
115            * @return the name of this shard
116            */
117            public java.lang.String getName() {
118                    return _shard.getName();
119            }
120    
121            /**
122            * Sets the name of this shard.
123            *
124            * @param name the name of this shard
125            */
126            public void setName(java.lang.String name) {
127                    _shard.setName(name);
128            }
129    
130            public boolean isNew() {
131                    return _shard.isNew();
132            }
133    
134            public void setNew(boolean n) {
135                    _shard.setNew(n);
136            }
137    
138            public boolean isCachedModel() {
139                    return _shard.isCachedModel();
140            }
141    
142            public void setCachedModel(boolean cachedModel) {
143                    _shard.setCachedModel(cachedModel);
144            }
145    
146            public boolean isEscapedModel() {
147                    return _shard.isEscapedModel();
148            }
149    
150            public void setEscapedModel(boolean escapedModel) {
151                    _shard.setEscapedModel(escapedModel);
152            }
153    
154            public java.io.Serializable getPrimaryKeyObj() {
155                    return _shard.getPrimaryKeyObj();
156            }
157    
158            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
159                    return _shard.getExpandoBridge();
160            }
161    
162            public void setExpandoBridgeAttributes(
163                    com.liferay.portal.service.ServiceContext serviceContext) {
164                    _shard.setExpandoBridgeAttributes(serviceContext);
165            }
166    
167            public java.lang.Object clone() {
168                    return _shard.clone();
169            }
170    
171            public int compareTo(com.liferay.portal.model.Shard shard) {
172                    return _shard.compareTo(shard);
173            }
174    
175            public int hashCode() {
176                    return _shard.hashCode();
177            }
178    
179            public com.liferay.portal.model.Shard toEscapedModel() {
180                    return _shard.toEscapedModel();
181            }
182    
183            public java.lang.String toString() {
184                    return _shard.toString();
185            }
186    
187            public java.lang.String toXmlString() {
188                    return _shard.toXmlString();
189            }
190    
191            public Shard getWrappedShard() {
192                    return _shard;
193            }
194    
195            private Shard _shard;
196    }