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