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 ExpandoValue}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ExpandoValue
024     * @generated
025     */
026    public class ExpandoValueWrapper implements ExpandoValue {
027            public ExpandoValueWrapper(ExpandoValue expandoValue) {
028                    _expandoValue = expandoValue;
029            }
030    
031            public Class<?> getModelClass() {
032                    return ExpandoValue.class;
033            }
034    
035            public String getModelClassName() {
036                    return ExpandoValue.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this expando value.
041            *
042            * @return the primary key of this expando value
043            */
044            public long getPrimaryKey() {
045                    return _expandoValue.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this expando value.
050            *
051            * @param primaryKey the primary key of this expando value
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _expandoValue.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the value ID of this expando value.
059            *
060            * @return the value ID of this expando value
061            */
062            public long getValueId() {
063                    return _expandoValue.getValueId();
064            }
065    
066            /**
067            * Sets the value ID of this expando value.
068            *
069            * @param valueId the value ID of this expando value
070            */
071            public void setValueId(long valueId) {
072                    _expandoValue.setValueId(valueId);
073            }
074    
075            /**
076            * Returns the company ID of this expando value.
077            *
078            * @return the company ID of this expando value
079            */
080            public long getCompanyId() {
081                    return _expandoValue.getCompanyId();
082            }
083    
084            /**
085            * Sets the company ID of this expando value.
086            *
087            * @param companyId the company ID of this expando value
088            */
089            public void setCompanyId(long companyId) {
090                    _expandoValue.setCompanyId(companyId);
091            }
092    
093            /**
094            * Returns the table ID of this expando value.
095            *
096            * @return the table ID of this expando value
097            */
098            public long getTableId() {
099                    return _expandoValue.getTableId();
100            }
101    
102            /**
103            * Sets the table ID of this expando value.
104            *
105            * @param tableId the table ID of this expando value
106            */
107            public void setTableId(long tableId) {
108                    _expandoValue.setTableId(tableId);
109            }
110    
111            /**
112            * Returns the column ID of this expando value.
113            *
114            * @return the column ID of this expando value
115            */
116            public long getColumnId() {
117                    return _expandoValue.getColumnId();
118            }
119    
120            /**
121            * Sets the column ID of this expando value.
122            *
123            * @param columnId the column ID of this expando value
124            */
125            public void setColumnId(long columnId) {
126                    _expandoValue.setColumnId(columnId);
127            }
128    
129            /**
130            * Returns the row ID of this expando value.
131            *
132            * @return the row ID of this expando value
133            */
134            public long getRowId() {
135                    return _expandoValue.getRowId();
136            }
137    
138            /**
139            * Sets the row ID of this expando value.
140            *
141            * @param rowId the row ID of this expando value
142            */
143            public void setRowId(long rowId) {
144                    _expandoValue.setRowId(rowId);
145            }
146    
147            /**
148            * Returns the fully qualified class name of this expando value.
149            *
150            * @return the fully qualified class name of this expando value
151            */
152            public java.lang.String getClassName() {
153                    return _expandoValue.getClassName();
154            }
155    
156            /**
157            * Returns the class name ID of this expando value.
158            *
159            * @return the class name ID of this expando value
160            */
161            public long getClassNameId() {
162                    return _expandoValue.getClassNameId();
163            }
164    
165            /**
166            * Sets the class name ID of this expando value.
167            *
168            * @param classNameId the class name ID of this expando value
169            */
170            public void setClassNameId(long classNameId) {
171                    _expandoValue.setClassNameId(classNameId);
172            }
173    
174            /**
175            * Returns the class p k of this expando value.
176            *
177            * @return the class p k of this expando value
178            */
179            public long getClassPK() {
180                    return _expandoValue.getClassPK();
181            }
182    
183            /**
184            * Sets the class p k of this expando value.
185            *
186            * @param classPK the class p k of this expando value
187            */
188            public void setClassPK(long classPK) {
189                    _expandoValue.setClassPK(classPK);
190            }
191    
192            /**
193            * Returns the data of this expando value.
194            *
195            * @return the data of this expando value
196            */
197            public java.lang.String getData() {
198                    return _expandoValue.getData();
199            }
200    
201            /**
202            * Sets the data of this expando value.
203            *
204            * @param data the data of this expando value
205            */
206            public void setData(java.lang.String data) {
207                    _expandoValue.setData(data);
208            }
209    
210            public boolean isNew() {
211                    return _expandoValue.isNew();
212            }
213    
214            public void setNew(boolean n) {
215                    _expandoValue.setNew(n);
216            }
217    
218            public boolean isCachedModel() {
219                    return _expandoValue.isCachedModel();
220            }
221    
222            public void setCachedModel(boolean cachedModel) {
223                    _expandoValue.setCachedModel(cachedModel);
224            }
225    
226            public boolean isEscapedModel() {
227                    return _expandoValue.isEscapedModel();
228            }
229    
230            public java.io.Serializable getPrimaryKeyObj() {
231                    return _expandoValue.getPrimaryKeyObj();
232            }
233    
234            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
235                    _expandoValue.setPrimaryKeyObj(primaryKeyObj);
236            }
237    
238            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
239                    return _expandoValue.getExpandoBridge();
240            }
241    
242            public void setExpandoBridgeAttributes(
243                    com.liferay.portal.service.ServiceContext serviceContext) {
244                    _expandoValue.setExpandoBridgeAttributes(serviceContext);
245            }
246    
247            @Override
248            public java.lang.Object clone() {
249                    return new ExpandoValueWrapper((ExpandoValue)_expandoValue.clone());
250            }
251    
252            public int compareTo(
253                    com.liferay.portlet.expando.model.ExpandoValue expandoValue) {
254                    return _expandoValue.compareTo(expandoValue);
255            }
256    
257            @Override
258            public int hashCode() {
259                    return _expandoValue.hashCode();
260            }
261    
262            public com.liferay.portal.model.CacheModel<com.liferay.portlet.expando.model.ExpandoValue> toCacheModel() {
263                    return _expandoValue.toCacheModel();
264            }
265    
266            public com.liferay.portlet.expando.model.ExpandoValue toEscapedModel() {
267                    return new ExpandoValueWrapper(_expandoValue.toEscapedModel());
268            }
269    
270            @Override
271            public java.lang.String toString() {
272                    return _expandoValue.toString();
273            }
274    
275            public java.lang.String toXmlString() {
276                    return _expandoValue.toXmlString();
277            }
278    
279            public void persist()
280                    throws com.liferay.portal.kernel.exception.SystemException {
281                    _expandoValue.persist();
282            }
283    
284            public boolean getBoolean()
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    return _expandoValue.getBoolean();
288            }
289    
290            public boolean[] getBooleanArray()
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException {
293                    return _expandoValue.getBooleanArray();
294            }
295    
296            public com.liferay.portlet.expando.model.ExpandoColumn getColumn()
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    return _expandoValue.getColumn();
300            }
301    
302            public java.util.Date getDate()
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    return _expandoValue.getDate();
306            }
307    
308            public java.util.Date[] getDateArray()
309                    throws com.liferay.portal.kernel.exception.PortalException,
310                            com.liferay.portal.kernel.exception.SystemException {
311                    return _expandoValue.getDateArray();
312            }
313    
314            public double getDouble()
315                    throws com.liferay.portal.kernel.exception.PortalException,
316                            com.liferay.portal.kernel.exception.SystemException {
317                    return _expandoValue.getDouble();
318            }
319    
320            public double[] getDoubleArray()
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException {
323                    return _expandoValue.getDoubleArray();
324            }
325    
326            public float getFloat()
327                    throws com.liferay.portal.kernel.exception.PortalException,
328                            com.liferay.portal.kernel.exception.SystemException {
329                    return _expandoValue.getFloat();
330            }
331    
332            public float[] getFloatArray()
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException {
335                    return _expandoValue.getFloatArray();
336            }
337    
338            public int getInteger()
339                    throws com.liferay.portal.kernel.exception.PortalException,
340                            com.liferay.portal.kernel.exception.SystemException {
341                    return _expandoValue.getInteger();
342            }
343    
344            public int[] getIntegerArray()
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    return _expandoValue.getIntegerArray();
348            }
349    
350            public long getLong()
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    return _expandoValue.getLong();
354            }
355    
356            public long[] getLongArray()
357                    throws com.liferay.portal.kernel.exception.PortalException,
358                            com.liferay.portal.kernel.exception.SystemException {
359                    return _expandoValue.getLongArray();
360            }
361    
362            public java.io.Serializable getSerializable()
363                    throws com.liferay.portal.kernel.exception.PortalException,
364                            com.liferay.portal.kernel.exception.SystemException {
365                    return _expandoValue.getSerializable();
366            }
367    
368            public short getShort()
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException {
371                    return _expandoValue.getShort();
372            }
373    
374            public short[] getShortArray()
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    return _expandoValue.getShortArray();
378            }
379    
380            public java.lang.String getString()
381                    throws com.liferay.portal.kernel.exception.PortalException,
382                            com.liferay.portal.kernel.exception.SystemException {
383                    return _expandoValue.getString();
384            }
385    
386            public java.lang.String[] getStringArray()
387                    throws com.liferay.portal.kernel.exception.PortalException,
388                            com.liferay.portal.kernel.exception.SystemException {
389                    return _expandoValue.getStringArray();
390            }
391    
392            public void setBoolean(boolean data)
393                    throws com.liferay.portal.kernel.exception.PortalException,
394                            com.liferay.portal.kernel.exception.SystemException {
395                    _expandoValue.setBoolean(data);
396            }
397    
398            public void setBooleanArray(boolean[] data)
399                    throws com.liferay.portal.kernel.exception.PortalException,
400                            com.liferay.portal.kernel.exception.SystemException {
401                    _expandoValue.setBooleanArray(data);
402            }
403    
404            public void setColumn(
405                    com.liferay.portlet.expando.model.ExpandoColumn column) {
406                    _expandoValue.setColumn(column);
407            }
408    
409            public void setDate(java.util.Date data)
410                    throws com.liferay.portal.kernel.exception.PortalException,
411                            com.liferay.portal.kernel.exception.SystemException {
412                    _expandoValue.setDate(data);
413            }
414    
415            public void setDateArray(java.util.Date[] data)
416                    throws com.liferay.portal.kernel.exception.PortalException,
417                            com.liferay.portal.kernel.exception.SystemException {
418                    _expandoValue.setDateArray(data);
419            }
420    
421            public void setDouble(double data)
422                    throws com.liferay.portal.kernel.exception.PortalException,
423                            com.liferay.portal.kernel.exception.SystemException {
424                    _expandoValue.setDouble(data);
425            }
426    
427            public void setDoubleArray(double[] data)
428                    throws com.liferay.portal.kernel.exception.PortalException,
429                            com.liferay.portal.kernel.exception.SystemException {
430                    _expandoValue.setDoubleArray(data);
431            }
432    
433            public void setFloat(float data)
434                    throws com.liferay.portal.kernel.exception.PortalException,
435                            com.liferay.portal.kernel.exception.SystemException {
436                    _expandoValue.setFloat(data);
437            }
438    
439            public void setFloatArray(float[] data)
440                    throws com.liferay.portal.kernel.exception.PortalException,
441                            com.liferay.portal.kernel.exception.SystemException {
442                    _expandoValue.setFloatArray(data);
443            }
444    
445            public void setInteger(int data)
446                    throws com.liferay.portal.kernel.exception.PortalException,
447                            com.liferay.portal.kernel.exception.SystemException {
448                    _expandoValue.setInteger(data);
449            }
450    
451            public void setIntegerArray(int[] data)
452                    throws com.liferay.portal.kernel.exception.PortalException,
453                            com.liferay.portal.kernel.exception.SystemException {
454                    _expandoValue.setIntegerArray(data);
455            }
456    
457            public void setLong(long data)
458                    throws com.liferay.portal.kernel.exception.PortalException,
459                            com.liferay.portal.kernel.exception.SystemException {
460                    _expandoValue.setLong(data);
461            }
462    
463            public void setLongArray(long[] data)
464                    throws com.liferay.portal.kernel.exception.PortalException,
465                            com.liferay.portal.kernel.exception.SystemException {
466                    _expandoValue.setLongArray(data);
467            }
468    
469            public void setShort(short data)
470                    throws com.liferay.portal.kernel.exception.PortalException,
471                            com.liferay.portal.kernel.exception.SystemException {
472                    _expandoValue.setShort(data);
473            }
474    
475            public void setShortArray(short[] data)
476                    throws com.liferay.portal.kernel.exception.PortalException,
477                            com.liferay.portal.kernel.exception.SystemException {
478                    _expandoValue.setShortArray(data);
479            }
480    
481            public void setString(java.lang.String data)
482                    throws com.liferay.portal.kernel.exception.PortalException,
483                            com.liferay.portal.kernel.exception.SystemException {
484                    _expandoValue.setString(data);
485            }
486    
487            public void setStringArray(java.lang.String[] data)
488                    throws com.liferay.portal.kernel.exception.PortalException,
489                            com.liferay.portal.kernel.exception.SystemException {
490                    _expandoValue.setStringArray(data);
491            }
492    
493            public ExpandoValue getWrappedExpandoValue() {
494                    return _expandoValue;
495            }
496    
497            public void resetOriginalValues() {
498                    _expandoValue.resetOriginalValues();
499            }
500    
501            private ExpandoValue _expandoValue;
502    }