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