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