001    /**
002     * Copyright (c) 2000-2011 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            public Class<?> getModelClass() {
032                    return Shard.class;
033            }
034    
035            public String getModelClassName() {
036                    return Shard.class.getName();
037            }
038    
039            /**
040            * Gets the primary key of this shard.
041            *
042            * @return the primary key of this shard
043            */
044            public long getPrimaryKey() {
045                    return _shard.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this shard
050            *
051            * @param primaryKey the primary key of this shard
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _shard.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Gets the shard ID of this shard.
059            *
060            * @return the shard ID of this shard
061            */
062            public long getShardId() {
063                    return _shard.getShardId();
064            }
065    
066            /**
067            * Sets the shard ID of this shard.
068            *
069            * @param shardId the shard ID of this shard
070            */
071            public void setShardId(long shardId) {
072                    _shard.setShardId(shardId);
073            }
074    
075            /**
076            * Gets the class name of the model instance this shard is polymorphically associated with.
077            *
078            * @return the class name of the model instance this shard is polymorphically associated with
079            */
080            public java.lang.String getClassName() {
081                    return _shard.getClassName();
082            }
083    
084            /**
085            * Gets the class name ID of this shard.
086            *
087            * @return the class name ID of this shard
088            */
089            public long getClassNameId() {
090                    return _shard.getClassNameId();
091            }
092    
093            /**
094            * Sets the class name ID of this shard.
095            *
096            * @param classNameId the class name ID of this shard
097            */
098            public void setClassNameId(long classNameId) {
099                    _shard.setClassNameId(classNameId);
100            }
101    
102            /**
103            * Gets the class p k of this shard.
104            *
105            * @return the class p k of this shard
106            */
107            public long getClassPK() {
108                    return _shard.getClassPK();
109            }
110    
111            /**
112            * Sets the class p k of this shard.
113            *
114            * @param classPK the class p k of this shard
115            */
116            public void setClassPK(long classPK) {
117                    _shard.setClassPK(classPK);
118            }
119    
120            /**
121            * Gets the name of this shard.
122            *
123            * @return the name of this shard
124            */
125            public java.lang.String getName() {
126                    return _shard.getName();
127            }
128    
129            /**
130            * Sets the name of this shard.
131            *
132            * @param name the name of this shard
133            */
134            public void setName(java.lang.String name) {
135                    _shard.setName(name);
136            }
137    
138            public boolean isNew() {
139                    return _shard.isNew();
140            }
141    
142            public void setNew(boolean n) {
143                    _shard.setNew(n);
144            }
145    
146            public boolean isCachedModel() {
147                    return _shard.isCachedModel();
148            }
149    
150            public void setCachedModel(boolean cachedModel) {
151                    _shard.setCachedModel(cachedModel);
152            }
153    
154            public boolean isEscapedModel() {
155                    return _shard.isEscapedModel();
156            }
157    
158            public void setEscapedModel(boolean escapedModel) {
159                    _shard.setEscapedModel(escapedModel);
160            }
161    
162            public java.io.Serializable getPrimaryKeyObj() {
163                    return _shard.getPrimaryKeyObj();
164            }
165    
166            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
167                    _shard.setPrimaryKeyObj(primaryKeyObj);
168            }
169    
170            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
171                    return _shard.getExpandoBridge();
172            }
173    
174            public void setExpandoBridgeAttributes(
175                    com.liferay.portal.service.ServiceContext serviceContext) {
176                    _shard.setExpandoBridgeAttributes(serviceContext);
177            }
178    
179            @Override
180            public java.lang.Object clone() {
181                    return new ShardWrapper((Shard)_shard.clone());
182            }
183    
184            public int compareTo(com.liferay.portal.model.Shard shard) {
185                    return _shard.compareTo(shard);
186            }
187    
188            @Override
189            public int hashCode() {
190                    return _shard.hashCode();
191            }
192    
193            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Shard> toCacheModel() {
194                    return _shard.toCacheModel();
195            }
196    
197            public com.liferay.portal.model.Shard toEscapedModel() {
198                    return new ShardWrapper(_shard.toEscapedModel());
199            }
200    
201            @Override
202            public java.lang.String toString() {
203                    return _shard.toString();
204            }
205    
206            public java.lang.String toXmlString() {
207                    return _shard.toXmlString();
208            }
209    
210            public void persist()
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    _shard.persist();
213            }
214    
215            public Shard getWrappedShard() {
216                    return _shard;
217            }
218    
219            public void resetOriginalValues() {
220                    _shard.resetOriginalValues();
221            }
222    
223            private Shard _shard;
224    }