001    /**
002     * Copyright (c) 2000-2010 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.portal.model;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link ClassName}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ClassName
024     * @generated
025     */
026    public class ClassNameWrapper implements ClassName {
027            public ClassNameWrapper(ClassName className) {
028                    _className = className;
029            }
030    
031            /**
032            * Gets the primary key of this class name.
033            *
034            * @return the primary key of this class name
035            */
036            public long getPrimaryKey() {
037                    return _className.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this class name
042            *
043            * @param pk the primary key of this class name
044            */
045            public void setPrimaryKey(long pk) {
046                    _className.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the class name of the model instance this class name is polymorphically associated with.
051            *
052            * @return the class name of the model instance this class name is polymorphically associated with
053            */
054            public java.lang.String getClassName() {
055                    return _className.getClassName();
056            }
057    
058            /**
059            * Gets the class name id of this class name.
060            *
061            * @return the class name id of this class name
062            */
063            public long getClassNameId() {
064                    return _className.getClassNameId();
065            }
066    
067            /**
068            * Sets the class name id of this class name.
069            *
070            * @param classNameId the class name id of this class name
071            */
072            public void setClassNameId(long classNameId) {
073                    _className.setClassNameId(classNameId);
074            }
075    
076            /**
077            * Gets the value of this class name.
078            *
079            * @return the value of this class name
080            */
081            public java.lang.String getValue() {
082                    return _className.getValue();
083            }
084    
085            /**
086            * Sets the value of this class name.
087            *
088            * @param value the value of this class name
089            */
090            public void setValue(java.lang.String value) {
091                    _className.setValue(value);
092            }
093    
094            public boolean isNew() {
095                    return _className.isNew();
096            }
097    
098            public void setNew(boolean n) {
099                    _className.setNew(n);
100            }
101    
102            public boolean isCachedModel() {
103                    return _className.isCachedModel();
104            }
105    
106            public void setCachedModel(boolean cachedModel) {
107                    _className.setCachedModel(cachedModel);
108            }
109    
110            public boolean isEscapedModel() {
111                    return _className.isEscapedModel();
112            }
113    
114            public void setEscapedModel(boolean escapedModel) {
115                    _className.setEscapedModel(escapedModel);
116            }
117    
118            public java.io.Serializable getPrimaryKeyObj() {
119                    return _className.getPrimaryKeyObj();
120            }
121    
122            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
123                    return _className.getExpandoBridge();
124            }
125    
126            public void setExpandoBridgeAttributes(
127                    com.liferay.portal.service.ServiceContext serviceContext) {
128                    _className.setExpandoBridgeAttributes(serviceContext);
129            }
130    
131            public java.lang.Object clone() {
132                    return _className.clone();
133            }
134    
135            public int compareTo(com.liferay.portal.model.ClassName className) {
136                    return _className.compareTo(className);
137            }
138    
139            public int hashCode() {
140                    return _className.hashCode();
141            }
142    
143            public com.liferay.portal.model.ClassName toEscapedModel() {
144                    return _className.toEscapedModel();
145            }
146    
147            public java.lang.String toString() {
148                    return _className.toString();
149            }
150    
151            public java.lang.String toXmlString() {
152                    return _className.toXmlString();
153            }
154    
155            public ClassName getWrappedClassName() {
156                    return _className;
157            }
158    
159            private ClassName _className;
160    }