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 ListType}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ListType
024     * @generated
025     */
026    public class ListTypeWrapper implements ListType, ModelWrapper<ListType> {
027            public ListTypeWrapper(ListType listType) {
028                    _listType = listType;
029            }
030    
031            public Class<?> getModelClass() {
032                    return ListType.class;
033            }
034    
035            public String getModelClassName() {
036                    return ListType.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this list type.
041            *
042            * @return the primary key of this list type
043            */
044            public int getPrimaryKey() {
045                    return _listType.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this list type.
050            *
051            * @param primaryKey the primary key of this list type
052            */
053            public void setPrimaryKey(int primaryKey) {
054                    _listType.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the list type ID of this list type.
059            *
060            * @return the list type ID of this list type
061            */
062            public int getListTypeId() {
063                    return _listType.getListTypeId();
064            }
065    
066            /**
067            * Sets the list type ID of this list type.
068            *
069            * @param listTypeId the list type ID of this list type
070            */
071            public void setListTypeId(int listTypeId) {
072                    _listType.setListTypeId(listTypeId);
073            }
074    
075            /**
076            * Returns the name of this list type.
077            *
078            * @return the name of this list type
079            */
080            public java.lang.String getName() {
081                    return _listType.getName();
082            }
083    
084            /**
085            * Sets the name of this list type.
086            *
087            * @param name the name of this list type
088            */
089            public void setName(java.lang.String name) {
090                    _listType.setName(name);
091            }
092    
093            /**
094            * Returns the type of this list type.
095            *
096            * @return the type of this list type
097            */
098            public java.lang.String getType() {
099                    return _listType.getType();
100            }
101    
102            /**
103            * Sets the type of this list type.
104            *
105            * @param type the type of this list type
106            */
107            public void setType(java.lang.String type) {
108                    _listType.setType(type);
109            }
110    
111            public boolean isNew() {
112                    return _listType.isNew();
113            }
114    
115            public void setNew(boolean n) {
116                    _listType.setNew(n);
117            }
118    
119            public boolean isCachedModel() {
120                    return _listType.isCachedModel();
121            }
122    
123            public void setCachedModel(boolean cachedModel) {
124                    _listType.setCachedModel(cachedModel);
125            }
126    
127            public boolean isEscapedModel() {
128                    return _listType.isEscapedModel();
129            }
130    
131            public java.io.Serializable getPrimaryKeyObj() {
132                    return _listType.getPrimaryKeyObj();
133            }
134    
135            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
136                    _listType.setPrimaryKeyObj(primaryKeyObj);
137            }
138    
139            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
140                    return _listType.getExpandoBridge();
141            }
142    
143            public void setExpandoBridgeAttributes(
144                    com.liferay.portal.service.ServiceContext serviceContext) {
145                    _listType.setExpandoBridgeAttributes(serviceContext);
146            }
147    
148            @Override
149            public java.lang.Object clone() {
150                    return new ListTypeWrapper((ListType)_listType.clone());
151            }
152    
153            public int compareTo(com.liferay.portal.model.ListType listType) {
154                    return _listType.compareTo(listType);
155            }
156    
157            @Override
158            public int hashCode() {
159                    return _listType.hashCode();
160            }
161    
162            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.ListType> toCacheModel() {
163                    return _listType.toCacheModel();
164            }
165    
166            public com.liferay.portal.model.ListType toEscapedModel() {
167                    return new ListTypeWrapper(_listType.toEscapedModel());
168            }
169    
170            @Override
171            public java.lang.String toString() {
172                    return _listType.toString();
173            }
174    
175            public java.lang.String toXmlString() {
176                    return _listType.toXmlString();
177            }
178    
179            /**
180             * @deprecated Renamed to {@link #getWrappedModel}
181             */
182            public ListType getWrappedListType() {
183                    return _listType;
184            }
185    
186            public ListType getWrappedModel() {
187                    return _listType;
188            }
189    
190            public void resetOriginalValues() {
191                    _listType.resetOriginalValues();
192            }
193    
194            private ListType _listType;
195    }