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.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            public Class<?> getModelClass() {
032                    return ClassName.class;
033            }
034    
035            public String getModelClassName() {
036                    return ClassName.class.getName();
037            }
038    
039            /**
040            * Gets the primary key of this class name.
041            *
042            * @return the primary key of this class name
043            */
044            public long getPrimaryKey() {
045                    return _className.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this class name
050            *
051            * @param primaryKey the primary key of this class name
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _className.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Gets the class name of the model instance this class name is polymorphically associated with.
059            *
060            * @return the class name of the model instance this class name is polymorphically associated with
061            */
062            public java.lang.String getClassName() {
063                    return _className.getClassName();
064            }
065    
066            /**
067            * Gets the class name ID of this class name.
068            *
069            * @return the class name ID of this class name
070            */
071            public long getClassNameId() {
072                    return _className.getClassNameId();
073            }
074    
075            /**
076            * Sets the class name ID of this class name.
077            *
078            * @param classNameId the class name ID of this class name
079            */
080            public void setClassNameId(long classNameId) {
081                    _className.setClassNameId(classNameId);
082            }
083    
084            /**
085            * Gets the value of this class name.
086            *
087            * @return the value of this class name
088            */
089            public java.lang.String getValue() {
090                    return _className.getValue();
091            }
092    
093            /**
094            * Sets the value of this class name.
095            *
096            * @param value the value of this class name
097            */
098            public void setValue(java.lang.String value) {
099                    _className.setValue(value);
100            }
101    
102            public boolean isNew() {
103                    return _className.isNew();
104            }
105    
106            public void setNew(boolean n) {
107                    _className.setNew(n);
108            }
109    
110            public boolean isCachedModel() {
111                    return _className.isCachedModel();
112            }
113    
114            public void setCachedModel(boolean cachedModel) {
115                    _className.setCachedModel(cachedModel);
116            }
117    
118            public boolean isEscapedModel() {
119                    return _className.isEscapedModel();
120            }
121    
122            public void setEscapedModel(boolean escapedModel) {
123                    _className.setEscapedModel(escapedModel);
124            }
125    
126            public java.io.Serializable getPrimaryKeyObj() {
127                    return _className.getPrimaryKeyObj();
128            }
129    
130            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
131                    _className.setPrimaryKeyObj(primaryKeyObj);
132            }
133    
134            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
135                    return _className.getExpandoBridge();
136            }
137    
138            public void setExpandoBridgeAttributes(
139                    com.liferay.portal.service.ServiceContext serviceContext) {
140                    _className.setExpandoBridgeAttributes(serviceContext);
141            }
142    
143            @Override
144            public java.lang.Object clone() {
145                    return new ClassNameWrapper((ClassName)_className.clone());
146            }
147    
148            public int compareTo(com.liferay.portal.model.ClassName className) {
149                    return _className.compareTo(className);
150            }
151    
152            @Override
153            public int hashCode() {
154                    return _className.hashCode();
155            }
156    
157            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.ClassName> toCacheModel() {
158                    return _className.toCacheModel();
159            }
160    
161            public com.liferay.portal.model.ClassName toEscapedModel() {
162                    return new ClassNameWrapper(_className.toEscapedModel());
163            }
164    
165            @Override
166            public java.lang.String toString() {
167                    return _className.toString();
168            }
169    
170            public java.lang.String toXmlString() {
171                    return _className.toXmlString();
172            }
173    
174            public void persist()
175                    throws com.liferay.portal.kernel.exception.SystemException {
176                    _className.persist();
177            }
178    
179            public ClassName getWrappedClassName() {
180                    return _className;
181            }
182    
183            public void resetOriginalValues() {
184                    _className.resetOriginalValues();
185            }
186    
187            private ClassName _className;
188    }