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