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