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.portlet.shopping.model;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link ShoppingItemField}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ShoppingItemField
024     * @generated
025     */
026    public class ShoppingItemFieldWrapper implements ShoppingItemField {
027            public ShoppingItemFieldWrapper(ShoppingItemField shoppingItemField) {
028                    _shoppingItemField = shoppingItemField;
029            }
030    
031            public Class<?> getModelClass() {
032                    return ShoppingItemField.class;
033            }
034    
035            public String getModelClassName() {
036                    return ShoppingItemField.class.getName();
037            }
038    
039            /**
040            * Gets the primary key of this shopping item field.
041            *
042            * @return the primary key of this shopping item field
043            */
044            public long getPrimaryKey() {
045                    return _shoppingItemField.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this shopping item field
050            *
051            * @param primaryKey the primary key of this shopping item field
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _shoppingItemField.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Gets the item field ID of this shopping item field.
059            *
060            * @return the item field ID of this shopping item field
061            */
062            public long getItemFieldId() {
063                    return _shoppingItemField.getItemFieldId();
064            }
065    
066            /**
067            * Sets the item field ID of this shopping item field.
068            *
069            * @param itemFieldId the item field ID of this shopping item field
070            */
071            public void setItemFieldId(long itemFieldId) {
072                    _shoppingItemField.setItemFieldId(itemFieldId);
073            }
074    
075            /**
076            * Gets the item ID of this shopping item field.
077            *
078            * @return the item ID of this shopping item field
079            */
080            public long getItemId() {
081                    return _shoppingItemField.getItemId();
082            }
083    
084            /**
085            * Sets the item ID of this shopping item field.
086            *
087            * @param itemId the item ID of this shopping item field
088            */
089            public void setItemId(long itemId) {
090                    _shoppingItemField.setItemId(itemId);
091            }
092    
093            /**
094            * Gets the name of this shopping item field.
095            *
096            * @return the name of this shopping item field
097            */
098            public java.lang.String getName() {
099                    return _shoppingItemField.getName();
100            }
101    
102            /**
103            * Sets the name of this shopping item field.
104            *
105            * @param name the name of this shopping item field
106            */
107            public void setName(java.lang.String name) {
108                    _shoppingItemField.setName(name);
109            }
110    
111            /**
112            * Gets the values of this shopping item field.
113            *
114            * @return the values of this shopping item field
115            */
116            public java.lang.String getValues() {
117                    return _shoppingItemField.getValues();
118            }
119    
120            /**
121            * Sets the values of this shopping item field.
122            *
123            * @param values the values of this shopping item field
124            */
125            public void setValues(java.lang.String values) {
126                    _shoppingItemField.setValues(values);
127            }
128    
129            /**
130            * Gets the description of this shopping item field.
131            *
132            * @return the description of this shopping item field
133            */
134            public java.lang.String getDescription() {
135                    return _shoppingItemField.getDescription();
136            }
137    
138            /**
139            * Sets the description of this shopping item field.
140            *
141            * @param description the description of this shopping item field
142            */
143            public void setDescription(java.lang.String description) {
144                    _shoppingItemField.setDescription(description);
145            }
146    
147            public boolean isNew() {
148                    return _shoppingItemField.isNew();
149            }
150    
151            public void setNew(boolean n) {
152                    _shoppingItemField.setNew(n);
153            }
154    
155            public boolean isCachedModel() {
156                    return _shoppingItemField.isCachedModel();
157            }
158    
159            public void setCachedModel(boolean cachedModel) {
160                    _shoppingItemField.setCachedModel(cachedModel);
161            }
162    
163            public boolean isEscapedModel() {
164                    return _shoppingItemField.isEscapedModel();
165            }
166    
167            public void setEscapedModel(boolean escapedModel) {
168                    _shoppingItemField.setEscapedModel(escapedModel);
169            }
170    
171            public java.io.Serializable getPrimaryKeyObj() {
172                    return _shoppingItemField.getPrimaryKeyObj();
173            }
174    
175            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
176                    _shoppingItemField.setPrimaryKeyObj(primaryKeyObj);
177            }
178    
179            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
180                    return _shoppingItemField.getExpandoBridge();
181            }
182    
183            public void setExpandoBridgeAttributes(
184                    com.liferay.portal.service.ServiceContext serviceContext) {
185                    _shoppingItemField.setExpandoBridgeAttributes(serviceContext);
186            }
187    
188            @Override
189            public java.lang.Object clone() {
190                    return new ShoppingItemFieldWrapper((ShoppingItemField)_shoppingItemField.clone());
191            }
192    
193            public int compareTo(
194                    com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField) {
195                    return _shoppingItemField.compareTo(shoppingItemField);
196            }
197    
198            @Override
199            public int hashCode() {
200                    return _shoppingItemField.hashCode();
201            }
202    
203            public com.liferay.portal.model.CacheModel<com.liferay.portlet.shopping.model.ShoppingItemField> toCacheModel() {
204                    return _shoppingItemField.toCacheModel();
205            }
206    
207            public com.liferay.portlet.shopping.model.ShoppingItemField toEscapedModel() {
208                    return new ShoppingItemFieldWrapper(_shoppingItemField.toEscapedModel());
209            }
210    
211            @Override
212            public java.lang.String toString() {
213                    return _shoppingItemField.toString();
214            }
215    
216            public java.lang.String toXmlString() {
217                    return _shoppingItemField.toXmlString();
218            }
219    
220            public void persist()
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    _shoppingItemField.persist();
223            }
224    
225            public java.lang.String[] getValuesArray() {
226                    return _shoppingItemField.getValuesArray();
227            }
228    
229            public void setValuesArray(java.lang.String[] valuesArray) {
230                    _shoppingItemField.setValuesArray(valuesArray);
231            }
232    
233            public ShoppingItemField getWrappedShoppingItemField() {
234                    return _shoppingItemField;
235            }
236    
237            public void resetOriginalValues() {
238                    _shoppingItemField.resetOriginalValues();
239            }
240    
241            private ShoppingItemField _shoppingItemField;
242    }