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.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            * Returns 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            * Returns 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            * Returns 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            * Returns 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            * Returns 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            * Returns 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 java.io.Serializable getPrimaryKeyObj() {
168                    return _shoppingItemField.getPrimaryKeyObj();
169            }
170    
171            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
172                    _shoppingItemField.setPrimaryKeyObj(primaryKeyObj);
173            }
174    
175            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
176                    return _shoppingItemField.getExpandoBridge();
177            }
178    
179            public void setExpandoBridgeAttributes(
180                    com.liferay.portal.service.ServiceContext serviceContext) {
181                    _shoppingItemField.setExpandoBridgeAttributes(serviceContext);
182            }
183    
184            @Override
185            public java.lang.Object clone() {
186                    return new ShoppingItemFieldWrapper((ShoppingItemField)_shoppingItemField.clone());
187            }
188    
189            public int compareTo(
190                    com.liferay.portlet.shopping.model.ShoppingItemField shoppingItemField) {
191                    return _shoppingItemField.compareTo(shoppingItemField);
192            }
193    
194            @Override
195            public int hashCode() {
196                    return _shoppingItemField.hashCode();
197            }
198    
199            public com.liferay.portal.model.CacheModel<com.liferay.portlet.shopping.model.ShoppingItemField> toCacheModel() {
200                    return _shoppingItemField.toCacheModel();
201            }
202    
203            public com.liferay.portlet.shopping.model.ShoppingItemField toEscapedModel() {
204                    return new ShoppingItemFieldWrapper(_shoppingItemField.toEscapedModel());
205            }
206    
207            @Override
208            public java.lang.String toString() {
209                    return _shoppingItemField.toString();
210            }
211    
212            public java.lang.String toXmlString() {
213                    return _shoppingItemField.toXmlString();
214            }
215    
216            public void persist()
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    _shoppingItemField.persist();
219            }
220    
221            public java.lang.String[] getValuesArray() {
222                    return _shoppingItemField.getValuesArray();
223            }
224    
225            public void setValuesArray(java.lang.String[] valuesArray) {
226                    _shoppingItemField.setValuesArray(valuesArray);
227            }
228    
229            public ShoppingItemField getWrappedShoppingItemField() {
230                    return _shoppingItemField;
231            }
232    
233            public void resetOriginalValues() {
234                    _shoppingItemField.resetOriginalValues();
235            }
236    
237            private ShoppingItemField _shoppingItemField;
238    }