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.model.BaseModel<?> baseModel) {
213 _clusterGroup.setExpandoBridgeAttributes(baseModel);
214 }
215
216 public void setExpandoBridgeAttributes(
217 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
218 _clusterGroup.setExpandoBridgeAttributes(expandoBridge);
219 }
220
221 public void setExpandoBridgeAttributes(
222 com.liferay.portal.service.ServiceContext serviceContext) {
223 _clusterGroup.setExpandoBridgeAttributes(serviceContext);
224 }
225
226 @Override
227 public java.lang.Object clone() {
228 return new ClusterGroupWrapper((ClusterGroup)_clusterGroup.clone());
229 }
230
231 public int compareTo(com.liferay.portal.model.ClusterGroup clusterGroup) {
232 return _clusterGroup.compareTo(clusterGroup);
233 }
234
235 @Override
236 public int hashCode() {
237 return _clusterGroup.hashCode();
238 }
239
240 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.ClusterGroup> toCacheModel() {
241 return _clusterGroup.toCacheModel();
242 }
243
244 public com.liferay.portal.model.ClusterGroup toEscapedModel() {
245 return new ClusterGroupWrapper(_clusterGroup.toEscapedModel());
246 }
247
248 public com.liferay.portal.model.ClusterGroup toUnescapedModel() {
249 return new ClusterGroupWrapper(_clusterGroup.toUnescapedModel());
250 }
251
252 @Override
253 public java.lang.String toString() {
254 return _clusterGroup.toString();
255 }
256
257 public java.lang.String toXmlString() {
258 return _clusterGroup.toXmlString();
259 }
260
261 public void persist()
262 throws com.liferay.portal.kernel.exception.SystemException {
263 _clusterGroup.persist();
264 }
265
266 public java.lang.String[] getClusterNodeIdsArray() {
267 return _clusterGroup.getClusterNodeIdsArray();
268 }
269
270
273 public ClusterGroup getWrappedClusterGroup() {
274 return _clusterGroup;
275 }
276
277 public ClusterGroup getWrappedModel() {
278 return _clusterGroup;
279 }
280
281 public void resetOriginalValues() {
282 _clusterGroup.resetOriginalValues();
283 }
284
285 private ClusterGroup _clusterGroup;
286 }