001
014
015 package com.liferay.portal.model;
016
017 import java.util.HashMap;
018 import java.util.Map;
019
020
029 public class ClusterGroupWrapper implements ClusterGroup,
030 ModelWrapper<ClusterGroup> {
031 public ClusterGroupWrapper(ClusterGroup clusterGroup) {
032 _clusterGroup = clusterGroup;
033 }
034
035 public Class<?> getModelClass() {
036 return ClusterGroup.class;
037 }
038
039 public String getModelClassName() {
040 return ClusterGroup.class.getName();
041 }
042
043 public Map<String, Object> getModelAttributes() {
044 Map<String, Object> attributes = new HashMap<String, Object>();
045
046 attributes.put("clusterGroupId", getClusterGroupId());
047 attributes.put("name", getName());
048 attributes.put("clusterNodeIds", getClusterNodeIds());
049 attributes.put("wholeCluster", getWholeCluster());
050
051 return attributes;
052 }
053
054 public void setModelAttributes(Map<String, Object> attributes) {
055 Long clusterGroupId = (Long)attributes.get("clusterGroupId");
056
057 if (clusterGroupId != null) {
058 setClusterGroupId(clusterGroupId);
059 }
060
061 String name = (String)attributes.get("name");
062
063 if (name != null) {
064 setName(name);
065 }
066
067 String clusterNodeIds = (String)attributes.get("clusterNodeIds");
068
069 if (clusterNodeIds != null) {
070 setClusterNodeIds(clusterNodeIds);
071 }
072
073 Boolean wholeCluster = (Boolean)attributes.get("wholeCluster");
074
075 if (wholeCluster != null) {
076 setWholeCluster(wholeCluster);
077 }
078 }
079
080
085 public long getPrimaryKey() {
086 return _clusterGroup.getPrimaryKey();
087 }
088
089
094 public void setPrimaryKey(long primaryKey) {
095 _clusterGroup.setPrimaryKey(primaryKey);
096 }
097
098
103 public long getClusterGroupId() {
104 return _clusterGroup.getClusterGroupId();
105 }
106
107
112 public void setClusterGroupId(long clusterGroupId) {
113 _clusterGroup.setClusterGroupId(clusterGroupId);
114 }
115
116
121 public java.lang.String getName() {
122 return _clusterGroup.getName();
123 }
124
125
130 public void setName(java.lang.String name) {
131 _clusterGroup.setName(name);
132 }
133
134
139 public java.lang.String getClusterNodeIds() {
140 return _clusterGroup.getClusterNodeIds();
141 }
142
143
148 public void setClusterNodeIds(java.lang.String clusterNodeIds) {
149 _clusterGroup.setClusterNodeIds(clusterNodeIds);
150 }
151
152
157 public boolean getWholeCluster() {
158 return _clusterGroup.getWholeCluster();
159 }
160
161
166 public boolean isWholeCluster() {
167 return _clusterGroup.isWholeCluster();
168 }
169
170
175 public void setWholeCluster(boolean wholeCluster) {
176 _clusterGroup.setWholeCluster(wholeCluster);
177 }
178
179 public boolean isNew() {
180 return _clusterGroup.isNew();
181 }
182
183 public void setNew(boolean n) {
184 _clusterGroup.setNew(n);
185 }
186
187 public boolean isCachedModel() {
188 return _clusterGroup.isCachedModel();
189 }
190
191 public void setCachedModel(boolean cachedModel) {
192 _clusterGroup.setCachedModel(cachedModel);
193 }
194
195 public boolean isEscapedModel() {
196 return _clusterGroup.isEscapedModel();
197 }
198
199 public java.io.Serializable getPrimaryKeyObj() {
200 return _clusterGroup.getPrimaryKeyObj();
201 }
202
203 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
204 _clusterGroup.setPrimaryKeyObj(primaryKeyObj);
205 }
206
207 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
208 return _clusterGroup.getExpandoBridge();
209 }
210
211 public void setExpandoBridgeAttributes(
212 com.liferay.portal.service.ServiceContext serviceContext) {
213 _clusterGroup.setExpandoBridgeAttributes(serviceContext);
214 }
215
216 @Override
217 public java.lang.Object clone() {
218 return new ClusterGroupWrapper((ClusterGroup)_clusterGroup.clone());
219 }
220
221 public int compareTo(com.liferay.portal.model.ClusterGroup clusterGroup) {
222 return _clusterGroup.compareTo(clusterGroup);
223 }
224
225 @Override
226 public int hashCode() {
227 return _clusterGroup.hashCode();
228 }
229
230 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.ClusterGroup> toCacheModel() {
231 return _clusterGroup.toCacheModel();
232 }
233
234 public com.liferay.portal.model.ClusterGroup toEscapedModel() {
235 return new ClusterGroupWrapper(_clusterGroup.toEscapedModel());
236 }
237
238 @Override
239 public java.lang.String toString() {
240 return _clusterGroup.toString();
241 }
242
243 public java.lang.String toXmlString() {
244 return _clusterGroup.toXmlString();
245 }
246
247 public void persist()
248 throws com.liferay.portal.kernel.exception.SystemException {
249 _clusterGroup.persist();
250 }
251
252 public java.lang.String[] getClusterNodeIdsArray() {
253 return _clusterGroup.getClusterNodeIdsArray();
254 }
255
256
259 public ClusterGroup getWrappedClusterGroup() {
260 return _clusterGroup;
261 }
262
263 public ClusterGroup getWrappedModel() {
264 return _clusterGroup;
265 }
266
267 public void resetOriginalValues() {
268 _clusterGroup.resetOriginalValues();
269 }
270
271 private ClusterGroup _clusterGroup;
272 }