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