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