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 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            * Returns 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            * Returns 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            * Returns 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            * Returns 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            * Returns 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 java.io.Serializable getPrimaryKeyObj() {
150                    return _expandoRow.getPrimaryKeyObj();
151            }
152    
153            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
154                    _expandoRow.setPrimaryKeyObj(primaryKeyObj);
155            }
156    
157            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
158                    return _expandoRow.getExpandoBridge();
159            }
160    
161            public void setExpandoBridgeAttributes(
162                    com.liferay.portal.service.ServiceContext serviceContext) {
163                    _expandoRow.setExpandoBridgeAttributes(serviceContext);
164            }
165    
166            @Override
167            public java.lang.Object clone() {
168                    return new ExpandoRowWrapper((ExpandoRow)_expandoRow.clone());
169            }
170    
171            public int compareTo(
172                    com.liferay.portlet.expando.model.ExpandoRow expandoRow) {
173                    return _expandoRow.compareTo(expandoRow);
174            }
175    
176            @Override
177            public int hashCode() {
178                    return _expandoRow.hashCode();
179            }
180    
181            public com.liferay.portal.model.CacheModel<com.liferay.portlet.expando.model.ExpandoRow> toCacheModel() {
182                    return _expandoRow.toCacheModel();
183            }
184    
185            public com.liferay.portlet.expando.model.ExpandoRow toEscapedModel() {
186                    return new ExpandoRowWrapper(_expandoRow.toEscapedModel());
187            }
188    
189            @Override
190            public java.lang.String toString() {
191                    return _expandoRow.toString();
192            }
193    
194            public java.lang.String toXmlString() {
195                    return _expandoRow.toXmlString();
196            }
197    
198            public void persist()
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    _expandoRow.persist();
201            }
202    
203            public ExpandoRow getWrappedExpandoRow() {
204                    return _expandoRow;
205            }
206    
207            public void resetOriginalValues() {
208                    _expandoRow.resetOriginalValues();
209            }
210    
211            private ExpandoRow _expandoRow;
212    }