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 Region}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Region
024     * @generated
025     */
026    public class RegionWrapper implements Region {
027            public RegionWrapper(Region region) {
028                    _region = region;
029            }
030    
031            /**
032            * Gets the primary key of this region.
033            *
034            * @return the primary key of this region
035            */
036            public long getPrimaryKey() {
037                    return _region.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this region
042            *
043            * @param pk the primary key of this region
044            */
045            public void setPrimaryKey(long pk) {
046                    _region.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the region id of this region.
051            *
052            * @return the region id of this region
053            */
054            public long getRegionId() {
055                    return _region.getRegionId();
056            }
057    
058            /**
059            * Sets the region id of this region.
060            *
061            * @param regionId the region id of this region
062            */
063            public void setRegionId(long regionId) {
064                    _region.setRegionId(regionId);
065            }
066    
067            /**
068            * Gets the country id of this region.
069            *
070            * @return the country id of this region
071            */
072            public long getCountryId() {
073                    return _region.getCountryId();
074            }
075    
076            /**
077            * Sets the country id of this region.
078            *
079            * @param countryId the country id of this region
080            */
081            public void setCountryId(long countryId) {
082                    _region.setCountryId(countryId);
083            }
084    
085            /**
086            * Gets the region code of this region.
087            *
088            * @return the region code of this region
089            */
090            public java.lang.String getRegionCode() {
091                    return _region.getRegionCode();
092            }
093    
094            /**
095            * Sets the region code of this region.
096            *
097            * @param regionCode the region code of this region
098            */
099            public void setRegionCode(java.lang.String regionCode) {
100                    _region.setRegionCode(regionCode);
101            }
102    
103            /**
104            * Gets the name of this region.
105            *
106            * @return the name of this region
107            */
108            public java.lang.String getName() {
109                    return _region.getName();
110            }
111    
112            /**
113            * Sets the name of this region.
114            *
115            * @param name the name of this region
116            */
117            public void setName(java.lang.String name) {
118                    _region.setName(name);
119            }
120    
121            /**
122            * Gets the active of this region.
123            *
124            * @return the active of this region
125            */
126            public boolean getActive() {
127                    return _region.getActive();
128            }
129    
130            /**
131            * Determines whether this region is active.
132            *
133            * @return whether this region is active
134            */
135            public boolean isActive() {
136                    return _region.isActive();
137            }
138    
139            /**
140            * Sets whether this {$entity.humanName} is active.
141            *
142            * @param active the active of this region
143            */
144            public void setActive(boolean active) {
145                    _region.setActive(active);
146            }
147    
148            public boolean isNew() {
149                    return _region.isNew();
150            }
151    
152            public void setNew(boolean n) {
153                    _region.setNew(n);
154            }
155    
156            public boolean isCachedModel() {
157                    return _region.isCachedModel();
158            }
159    
160            public void setCachedModel(boolean cachedModel) {
161                    _region.setCachedModel(cachedModel);
162            }
163    
164            public boolean isEscapedModel() {
165                    return _region.isEscapedModel();
166            }
167    
168            public void setEscapedModel(boolean escapedModel) {
169                    _region.setEscapedModel(escapedModel);
170            }
171    
172            public java.io.Serializable getPrimaryKeyObj() {
173                    return _region.getPrimaryKeyObj();
174            }
175    
176            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
177                    return _region.getExpandoBridge();
178            }
179    
180            public void setExpandoBridgeAttributes(
181                    com.liferay.portal.service.ServiceContext serviceContext) {
182                    _region.setExpandoBridgeAttributes(serviceContext);
183            }
184    
185            public java.lang.Object clone() {
186                    return _region.clone();
187            }
188    
189            public int compareTo(com.liferay.portal.model.Region region) {
190                    return _region.compareTo(region);
191            }
192    
193            public int hashCode() {
194                    return _region.hashCode();
195            }
196    
197            public com.liferay.portal.model.Region toEscapedModel() {
198                    return _region.toEscapedModel();
199            }
200    
201            public java.lang.String toString() {
202                    return _region.toString();
203            }
204    
205            public java.lang.String toXmlString() {
206                    return _region.toXmlString();
207            }
208    
209            public Region getWrappedRegion() {
210                    return _region;
211            }
212    
213            private Region _region;
214    }