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 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets the class name of the model instance this expando value is polymorphically associated with.
149            *
150            * @return the class name of the model instance this expando value is polymorphically associated with
151            */
152            public java.lang.String getClassName() {
153                    return _expandoValue.getClassName();
154            }
155    
156            /**
157            * Gets 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            * Gets 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            * Gets 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 void setEscapedModel(boolean escapedModel) {
231                    _expandoValue.setEscapedModel(escapedModel);
232            }
233    
234            public java.io.Serializable getPrimaryKeyObj() {
235                    return _expandoValue.getPrimaryKeyObj();
236            }
237    
238            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
239                    _expandoValue.setPrimaryKeyObj(primaryKeyObj);
240            }
241    
242            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
243                    return _expandoValue.getExpandoBridge();
244            }
245    
246            public void setExpandoBridgeAttributes(
247                    com.liferay.portal.service.ServiceContext serviceContext) {
248                    _expandoValue.setExpandoBridgeAttributes(serviceContext);
249            }
250    
251            @Override
252            public java.lang.Object clone() {
253                    return new ExpandoValueWrapper((ExpandoValue)_expandoValue.clone());
254            }
255    
256            public int compareTo(
257                    com.liferay.portlet.expando.model.ExpandoValue expandoValue) {
258                    return _expandoValue.compareTo(expandoValue);
259            }
260    
261            @Override
262            public int hashCode() {
263                    return _expandoValue.hashCode();
264            }
265    
266            public com.liferay.portal.model.CacheModel<com.liferay.portlet.expando.model.ExpandoValue> toCacheModel() {
267                    return _expandoValue.toCacheModel();
268            }
269    
270            public com.liferay.portlet.expando.model.ExpandoValue toEscapedModel() {
271                    return new ExpandoValueWrapper(_expandoValue.toEscapedModel());
272            }
273    
274            @Override
275            public java.lang.String toString() {
276                    return _expandoValue.toString();
277            }
278    
279            public java.lang.String toXmlString() {
280                    return _expandoValue.toXmlString();
281            }
282    
283            public void persist()
284                    throws com.liferay.portal.kernel.exception.SystemException {
285                    _expandoValue.persist();
286            }
287    
288            public boolean getBoolean()
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    return _expandoValue.getBoolean();
292            }
293    
294            public boolean[] getBooleanArray()
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    return _expandoValue.getBooleanArray();
298            }
299    
300            public java.util.Date getDate()
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    return _expandoValue.getDate();
304            }
305    
306            public java.util.Date[] getDateArray()
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    return _expandoValue.getDateArray();
310            }
311    
312            public double getDouble()
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    return _expandoValue.getDouble();
316            }
317    
318            public double[] getDoubleArray()
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    return _expandoValue.getDoubleArray();
322            }
323    
324            public float getFloat()
325                    throws com.liferay.portal.kernel.exception.PortalException,
326                            com.liferay.portal.kernel.exception.SystemException {
327                    return _expandoValue.getFloat();
328            }
329    
330            public float[] getFloatArray()
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    return _expandoValue.getFloatArray();
334            }
335    
336            public int getInteger()
337                    throws com.liferay.portal.kernel.exception.PortalException,
338                            com.liferay.portal.kernel.exception.SystemException {
339                    return _expandoValue.getInteger();
340            }
341    
342            public int[] getIntegerArray()
343                    throws com.liferay.portal.kernel.exception.PortalException,
344                            com.liferay.portal.kernel.exception.SystemException {
345                    return _expandoValue.getIntegerArray();
346            }
347    
348            public long getLong()
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    return _expandoValue.getLong();
352            }
353    
354            public long[] getLongArray()
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    return _expandoValue.getLongArray();
358            }
359    
360            public short getShort()
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    return _expandoValue.getShort();
364            }
365    
366            public short[] getShortArray()
367                    throws com.liferay.portal.kernel.exception.PortalException,
368                            com.liferay.portal.kernel.exception.SystemException {
369                    return _expandoValue.getShortArray();
370            }
371    
372            public java.lang.String getString()
373                    throws com.liferay.portal.kernel.exception.PortalException,
374                            com.liferay.portal.kernel.exception.SystemException {
375                    return _expandoValue.getString();
376            }
377    
378            public java.lang.String[] getStringArray()
379                    throws com.liferay.portal.kernel.exception.PortalException,
380                            com.liferay.portal.kernel.exception.SystemException {
381                    return _expandoValue.getStringArray();
382            }
383    
384            public void setBoolean(boolean data)
385                    throws com.liferay.portal.kernel.exception.PortalException,
386                            com.liferay.portal.kernel.exception.SystemException {
387                    _expandoValue.setBoolean(data);
388            }
389    
390            public void setBooleanArray(boolean[] data)
391                    throws com.liferay.portal.kernel.exception.PortalException,
392                            com.liferay.portal.kernel.exception.SystemException {
393                    _expandoValue.setBooleanArray(data);
394            }
395    
396            public void setDate(java.util.Date data)
397                    throws com.liferay.portal.kernel.exception.PortalException,
398                            com.liferay.portal.kernel.exception.SystemException {
399                    _expandoValue.setDate(data);
400            }
401    
402            public void setDateArray(java.util.Date[] data)
403                    throws com.liferay.portal.kernel.exception.PortalException,
404                            com.liferay.portal.kernel.exception.SystemException {
405                    _expandoValue.setDateArray(data);
406            }
407    
408            public void setDouble(double data)
409                    throws com.liferay.portal.kernel.exception.PortalException,
410                            com.liferay.portal.kernel.exception.SystemException {
411                    _expandoValue.setDouble(data);
412            }
413    
414            public void setDoubleArray(double[] data)
415                    throws com.liferay.portal.kernel.exception.PortalException,
416                            com.liferay.portal.kernel.exception.SystemException {
417                    _expandoValue.setDoubleArray(data);
418            }
419    
420            public void setFloat(float data)
421                    throws com.liferay.portal.kernel.exception.PortalException,
422                            com.liferay.portal.kernel.exception.SystemException {
423                    _expandoValue.setFloat(data);
424            }
425    
426            public void setFloatArray(float[] data)
427                    throws com.liferay.portal.kernel.exception.PortalException,
428                            com.liferay.portal.kernel.exception.SystemException {
429                    _expandoValue.setFloatArray(data);
430            }
431    
432            public void setInteger(int data)
433                    throws com.liferay.portal.kernel.exception.PortalException,
434                            com.liferay.portal.kernel.exception.SystemException {
435                    _expandoValue.setInteger(data);
436            }
437    
438            public void setIntegerArray(int[] data)
439                    throws com.liferay.portal.kernel.exception.PortalException,
440                            com.liferay.portal.kernel.exception.SystemException {
441                    _expandoValue.setIntegerArray(data);
442            }
443    
444            public void setLong(long data)
445                    throws com.liferay.portal.kernel.exception.PortalException,
446                            com.liferay.portal.kernel.exception.SystemException {
447                    _expandoValue.setLong(data);
448            }
449    
450            public void setLongArray(long[] data)
451                    throws com.liferay.portal.kernel.exception.PortalException,
452                            com.liferay.portal.kernel.exception.SystemException {
453                    _expandoValue.setLongArray(data);
454            }
455    
456            public void setShort(short data)
457                    throws com.liferay.portal.kernel.exception.PortalException,
458                            com.liferay.portal.kernel.exception.SystemException {
459                    _expandoValue.setShort(data);
460            }
461    
462            public void setShortArray(short[] data)
463                    throws com.liferay.portal.kernel.exception.PortalException,
464                            com.liferay.portal.kernel.exception.SystemException {
465                    _expandoValue.setShortArray(data);
466            }
467    
468            public void setString(java.lang.String data)
469                    throws com.liferay.portal.kernel.exception.PortalException,
470                            com.liferay.portal.kernel.exception.SystemException {
471                    _expandoValue.setString(data);
472            }
473    
474            public void setStringArray(java.lang.String[] data)
475                    throws com.liferay.portal.kernel.exception.PortalException,
476                            com.liferay.portal.kernel.exception.SystemException {
477                    _expandoValue.setStringArray(data);
478            }
479    
480            public ExpandoValue getWrappedExpandoValue() {
481                    return _expandoValue;
482            }
483    
484            public void resetOriginalValues() {
485                    _expandoValue.resetOriginalValues();
486            }
487    
488            private ExpandoValue _expandoValue;
489    }