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