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 ClusterGroup}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ClusterGroup
024     * @generated
025     */
026    public class ClusterGroupWrapper implements ClusterGroup {
027            public ClusterGroupWrapper(ClusterGroup clusterGroup) {
028                    _clusterGroup = clusterGroup;
029            }
030    
031            public Class<?> getModelClass() {
032                    return ClusterGroup.class;
033            }
034    
035            public String getModelClassName() {
036                    return ClusterGroup.class.getName();
037            }
038    
039            /**
040            * Gets the primary key of this cluster group.
041            *
042            * @return the primary key of this cluster group
043            */
044            public long getPrimaryKey() {
045                    return _clusterGroup.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this cluster group
050            *
051            * @param primaryKey the primary key of this cluster group
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _clusterGroup.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Gets the cluster group ID of this cluster group.
059            *
060            * @return the cluster group ID of this cluster group
061            */
062            public long getClusterGroupId() {
063                    return _clusterGroup.getClusterGroupId();
064            }
065    
066            /**
067            * Sets the cluster group ID of this cluster group.
068            *
069            * @param clusterGroupId the cluster group ID of this cluster group
070            */
071            public void setClusterGroupId(long clusterGroupId) {
072                    _clusterGroup.setClusterGroupId(clusterGroupId);
073            }
074    
075            /**
076            * Gets the name of this cluster group.
077            *
078            * @return the name of this cluster group
079            */
080            public java.lang.String getName() {
081                    return _clusterGroup.getName();
082            }
083    
084            /**
085            * Sets the name of this cluster group.
086            *
087            * @param name the name of this cluster group
088            */
089            public void setName(java.lang.String name) {
090                    _clusterGroup.setName(name);
091            }
092    
093            /**
094            * Gets the cluster node IDs of this cluster group.
095            *
096            * @return the cluster node IDs of this cluster group
097            */
098            public java.lang.String getClusterNodeIds() {
099                    return _clusterGroup.getClusterNodeIds();
100            }
101    
102            /**
103            * Sets the cluster node IDs of this cluster group.
104            *
105            * @param clusterNodeIds the cluster node IDs of this cluster group
106            */
107            public void setClusterNodeIds(java.lang.String clusterNodeIds) {
108                    _clusterGroup.setClusterNodeIds(clusterNodeIds);
109            }
110    
111            /**
112            * Gets the whole cluster of this cluster group.
113            *
114            * @return the whole cluster of this cluster group
115            */
116            public boolean getWholeCluster() {
117                    return _clusterGroup.getWholeCluster();
118            }
119    
120            /**
121            * Determines if this cluster group is whole cluster.
122            *
123            * @return <code>true</code> if this cluster group is whole cluster; <code>false</code> otherwise
124            */
125            public boolean isWholeCluster() {
126                    return _clusterGroup.isWholeCluster();
127            }
128    
129            /**
130            * Sets whether this cluster group is whole cluster.
131            *
132            * @param wholeCluster the whole cluster of this cluster group
133            */
134            public void setWholeCluster(boolean wholeCluster) {
135                    _clusterGroup.setWholeCluster(wholeCluster);
136            }
137    
138            public boolean isNew() {
139                    return _clusterGroup.isNew();
140            }
141    
142            public void setNew(boolean n) {
143                    _clusterGroup.setNew(n);
144            }
145    
146            public boolean isCachedModel() {
147                    return _clusterGroup.isCachedModel();
148            }
149    
150            public void setCachedModel(boolean cachedModel) {
151                    _clusterGroup.setCachedModel(cachedModel);
152            }
153    
154            public boolean isEscapedModel() {
155                    return _clusterGroup.isEscapedModel();
156            }
157    
158            public void setEscapedModel(boolean escapedModel) {
159                    _clusterGroup.setEscapedModel(escapedModel);
160            }
161    
162            public java.io.Serializable getPrimaryKeyObj() {
163                    return _clusterGroup.getPrimaryKeyObj();
164            }
165    
166            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
167                    _clusterGroup.setPrimaryKeyObj(primaryKeyObj);
168            }
169    
170            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
171                    return _clusterGroup.getExpandoBridge();
172            }
173    
174            public void setExpandoBridgeAttributes(
175                    com.liferay.portal.service.ServiceContext serviceContext) {
176                    _clusterGroup.setExpandoBridgeAttributes(serviceContext);
177            }
178    
179            @Override
180            public java.lang.Object clone() {
181                    return new ClusterGroupWrapper((ClusterGroup)_clusterGroup.clone());
182            }
183    
184            public int compareTo(com.liferay.portal.model.ClusterGroup clusterGroup) {
185                    return _clusterGroup.compareTo(clusterGroup);
186            }
187    
188            @Override
189            public int hashCode() {
190                    return _clusterGroup.hashCode();
191            }
192    
193            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.ClusterGroup> toCacheModel() {
194                    return _clusterGroup.toCacheModel();
195            }
196    
197            public com.liferay.portal.model.ClusterGroup toEscapedModel() {
198                    return new ClusterGroupWrapper(_clusterGroup.toEscapedModel());
199            }
200    
201            @Override
202            public java.lang.String toString() {
203                    return _clusterGroup.toString();
204            }
205    
206            public java.lang.String toXmlString() {
207                    return _clusterGroup.toXmlString();
208            }
209    
210            public void persist()
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    _clusterGroup.persist();
213            }
214    
215            public java.lang.String[] getClusterNodeIdsArray() {
216                    return _clusterGroup.getClusterNodeIdsArray();
217            }
218    
219            public ClusterGroup getWrappedClusterGroup() {
220                    return _clusterGroup;
221            }
222    
223            public void resetOriginalValues() {
224                    _clusterGroup.resetOriginalValues();
225            }
226    
227            private ClusterGroup _clusterGroup;
228    }