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.expando.model;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link ExpandoColumn}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       ExpandoColumn
026     * @generated
027     */
028    public class ExpandoColumnWrapper implements ExpandoColumn,
029            ModelWrapper<ExpandoColumn> {
030            public ExpandoColumnWrapper(ExpandoColumn expandoColumn) {
031                    _expandoColumn = expandoColumn;
032            }
033    
034            public Class<?> getModelClass() {
035                    return ExpandoColumn.class;
036            }
037    
038            public String getModelClassName() {
039                    return ExpandoColumn.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this expando column.
044            *
045            * @return the primary key of this expando column
046            */
047            public long getPrimaryKey() {
048                    return _expandoColumn.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this expando column.
053            *
054            * @param primaryKey the primary key of this expando column
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _expandoColumn.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the column ID of this expando column.
062            *
063            * @return the column ID of this expando column
064            */
065            public long getColumnId() {
066                    return _expandoColumn.getColumnId();
067            }
068    
069            /**
070            * Sets the column ID of this expando column.
071            *
072            * @param columnId the column ID of this expando column
073            */
074            public void setColumnId(long columnId) {
075                    _expandoColumn.setColumnId(columnId);
076            }
077    
078            /**
079            * Returns the company ID of this expando column.
080            *
081            * @return the company ID of this expando column
082            */
083            public long getCompanyId() {
084                    return _expandoColumn.getCompanyId();
085            }
086    
087            /**
088            * Sets the company ID of this expando column.
089            *
090            * @param companyId the company ID of this expando column
091            */
092            public void setCompanyId(long companyId) {
093                    _expandoColumn.setCompanyId(companyId);
094            }
095    
096            /**
097            * Returns the table ID of this expando column.
098            *
099            * @return the table ID of this expando column
100            */
101            public long getTableId() {
102                    return _expandoColumn.getTableId();
103            }
104    
105            /**
106            * Sets the table ID of this expando column.
107            *
108            * @param tableId the table ID of this expando column
109            */
110            public void setTableId(long tableId) {
111                    _expandoColumn.setTableId(tableId);
112            }
113    
114            /**
115            * Returns the name of this expando column.
116            *
117            * @return the name of this expando column
118            */
119            public java.lang.String getName() {
120                    return _expandoColumn.getName();
121            }
122    
123            /**
124            * Sets the name of this expando column.
125            *
126            * @param name the name of this expando column
127            */
128            public void setName(java.lang.String name) {
129                    _expandoColumn.setName(name);
130            }
131    
132            /**
133            * Returns the type of this expando column.
134            *
135            * @return the type of this expando column
136            */
137            public int getType() {
138                    return _expandoColumn.getType();
139            }
140    
141            /**
142            * Sets the type of this expando column.
143            *
144            * @param type the type of this expando column
145            */
146            public void setType(int type) {
147                    _expandoColumn.setType(type);
148            }
149    
150            /**
151            * Returns the default data of this expando column.
152            *
153            * @return the default data of this expando column
154            */
155            public java.lang.String getDefaultData() {
156                    return _expandoColumn.getDefaultData();
157            }
158    
159            /**
160            * Sets the default data of this expando column.
161            *
162            * @param defaultData the default data of this expando column
163            */
164            public void setDefaultData(java.lang.String defaultData) {
165                    _expandoColumn.setDefaultData(defaultData);
166            }
167    
168            /**
169            * Returns the type settings of this expando column.
170            *
171            * @return the type settings of this expando column
172            */
173            public java.lang.String getTypeSettings() {
174                    return _expandoColumn.getTypeSettings();
175            }
176    
177            /**
178            * Sets the type settings of this expando column.
179            *
180            * @param typeSettings the type settings of this expando column
181            */
182            public void setTypeSettings(java.lang.String typeSettings) {
183                    _expandoColumn.setTypeSettings(typeSettings);
184            }
185    
186            public boolean isNew() {
187                    return _expandoColumn.isNew();
188            }
189    
190            public void setNew(boolean n) {
191                    _expandoColumn.setNew(n);
192            }
193    
194            public boolean isCachedModel() {
195                    return _expandoColumn.isCachedModel();
196            }
197    
198            public void setCachedModel(boolean cachedModel) {
199                    _expandoColumn.setCachedModel(cachedModel);
200            }
201    
202            public boolean isEscapedModel() {
203                    return _expandoColumn.isEscapedModel();
204            }
205    
206            public java.io.Serializable getPrimaryKeyObj() {
207                    return _expandoColumn.getPrimaryKeyObj();
208            }
209    
210            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
211                    _expandoColumn.setPrimaryKeyObj(primaryKeyObj);
212            }
213    
214            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
215                    return _expandoColumn.getExpandoBridge();
216            }
217    
218            public void setExpandoBridgeAttributes(
219                    com.liferay.portal.service.ServiceContext serviceContext) {
220                    _expandoColumn.setExpandoBridgeAttributes(serviceContext);
221            }
222    
223            @Override
224            public java.lang.Object clone() {
225                    return new ExpandoColumnWrapper((ExpandoColumn)_expandoColumn.clone());
226            }
227    
228            public int compareTo(
229                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn) {
230                    return _expandoColumn.compareTo(expandoColumn);
231            }
232    
233            @Override
234            public int hashCode() {
235                    return _expandoColumn.hashCode();
236            }
237    
238            public com.liferay.portal.model.CacheModel<com.liferay.portlet.expando.model.ExpandoColumn> toCacheModel() {
239                    return _expandoColumn.toCacheModel();
240            }
241    
242            public com.liferay.portlet.expando.model.ExpandoColumn toEscapedModel() {
243                    return new ExpandoColumnWrapper(_expandoColumn.toEscapedModel());
244            }
245    
246            @Override
247            public java.lang.String toString() {
248                    return _expandoColumn.toString();
249            }
250    
251            public java.lang.String toXmlString() {
252                    return _expandoColumn.toXmlString();
253            }
254    
255            public void persist()
256                    throws com.liferay.portal.kernel.exception.SystemException {
257                    _expandoColumn.persist();
258            }
259    
260            public java.io.Serializable getDefaultValue() {
261                    return _expandoColumn.getDefaultValue();
262            }
263    
264            public java.lang.String getDisplayName(java.util.Locale locale) {
265                    return _expandoColumn.getDisplayName(locale);
266            }
267    
268            public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties() {
269                    return _expandoColumn.getTypeSettingsProperties();
270            }
271    
272            public void setTypeSettingsProperties(
273                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
274                    _expandoColumn.setTypeSettingsProperties(typeSettingsProperties);
275            }
276    
277            /**
278             * @deprecated Renamed to {@link #getWrappedModel}
279             */
280            public ExpandoColumn getWrappedExpandoColumn() {
281                    return _expandoColumn;
282            }
283    
284            public ExpandoColumn getWrappedModel() {
285                    return _expandoColumn;
286            }
287    
288            public void resetOriginalValues() {
289                    _expandoColumn.resetOriginalValues();
290            }
291    
292            private ExpandoColumn _expandoColumn;
293    }