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.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, ModelWrapper<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            * Returns 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            * Returns the fully qualified class name of this class name.
059            *
060            * @return the fully qualified class name of this class name
061            */
062            public java.lang.String getClassName() {
063                    return _className.getClassName();
064            }
065    
066            /**
067            * Returns 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            * Returns 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 java.io.Serializable getPrimaryKeyObj() {
123                    return _className.getPrimaryKeyObj();
124            }
125    
126            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
127                    _className.setPrimaryKeyObj(primaryKeyObj);
128            }
129    
130            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
131                    return _className.getExpandoBridge();
132            }
133    
134            public void setExpandoBridgeAttributes(
135                    com.liferay.portal.service.ServiceContext serviceContext) {
136                    _className.setExpandoBridgeAttributes(serviceContext);
137            }
138    
139            @Override
140            public java.lang.Object clone() {
141                    return new ClassNameWrapper((ClassName)_className.clone());
142            }
143    
144            public int compareTo(com.liferay.portal.model.ClassName className) {
145                    return _className.compareTo(className);
146            }
147    
148            @Override
149            public int hashCode() {
150                    return _className.hashCode();
151            }
152    
153            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.ClassName> toCacheModel() {
154                    return _className.toCacheModel();
155            }
156    
157            public com.liferay.portal.model.ClassName toEscapedModel() {
158                    return new ClassNameWrapper(_className.toEscapedModel());
159            }
160    
161            @Override
162            public java.lang.String toString() {
163                    return _className.toString();
164            }
165    
166            public java.lang.String toXmlString() {
167                    return _className.toXmlString();
168            }
169    
170            public void persist()
171                    throws com.liferay.portal.kernel.exception.SystemException {
172                    _className.persist();
173            }
174    
175            /**
176             * @deprecated Renamed to {@link #getWrappedModel}
177             */
178            public ClassName getWrappedClassName() {
179                    return _className;
180            }
181    
182            public ClassName getWrappedModel() {
183                    return _className;
184            }
185    
186            public void resetOriginalValues() {
187                    _className.resetOriginalValues();
188            }
189    
190            private ClassName _className;
191    }