All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.portal.kernel.model.ClusterGroupWrapper Maven / Gradle / Ivy

Go to download

Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.

There is a newer version: 156.0.0
Show newest version
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.liferay.portal.kernel.model;

import aQute.bnd.annotation.ProviderType;

import com.liferay.expando.kernel.model.ExpandoBridge;

import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.util.Validator;

import java.io.Serializable;

import java.util.HashMap;
import java.util.Map;

/**
 * 

* This class is a wrapper for {@link ClusterGroup}. *

* * @author Brian Wing Shun Chan * @see ClusterGroup * @generated */ @ProviderType public class ClusterGroupWrapper implements ClusterGroup, ModelWrapper { public ClusterGroupWrapper(ClusterGroup clusterGroup) { _clusterGroup = clusterGroup; } @Override public Class getModelClass() { return ClusterGroup.class; } @Override public String getModelClassName() { return ClusterGroup.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("mvccVersion", getMvccVersion()); attributes.put("clusterGroupId", getClusterGroupId()); attributes.put("name", getName()); attributes.put("clusterNodeIds", getClusterNodeIds()); attributes.put("wholeCluster", getWholeCluster()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long mvccVersion = (Long)attributes.get("mvccVersion"); if (mvccVersion != null) { setMvccVersion(mvccVersion); } Long clusterGroupId = (Long)attributes.get("clusterGroupId"); if (clusterGroupId != null) { setClusterGroupId(clusterGroupId); } String name = (String)attributes.get("name"); if (name != null) { setName(name); } String clusterNodeIds = (String)attributes.get("clusterNodeIds"); if (clusterNodeIds != null) { setClusterNodeIds(clusterNodeIds); } Boolean wholeCluster = (Boolean)attributes.get("wholeCluster"); if (wholeCluster != null) { setWholeCluster(wholeCluster); } } @Override public java.lang.Object clone() { return new ClusterGroupWrapper((ClusterGroup)_clusterGroup.clone()); } @Override public int compareTo( com.liferay.portal.kernel.model.ClusterGroup clusterGroup) { return _clusterGroup.compareTo(clusterGroup); } /** * Returns the cluster group ID of this cluster group. * * @return the cluster group ID of this cluster group */ @Override public long getClusterGroupId() { return _clusterGroup.getClusterGroupId(); } /** * Returns the cluster node IDs of this cluster group. * * @return the cluster node IDs of this cluster group */ @Override public java.lang.String getClusterNodeIds() { return _clusterGroup.getClusterNodeIds(); } @Override public java.lang.String[] getClusterNodeIdsArray() { return _clusterGroup.getClusterNodeIdsArray(); } @Override public ExpandoBridge getExpandoBridge() { return _clusterGroup.getExpandoBridge(); } /** * Returns the mvcc version of this cluster group. * * @return the mvcc version of this cluster group */ @Override public long getMvccVersion() { return _clusterGroup.getMvccVersion(); } /** * Returns the name of this cluster group. * * @return the name of this cluster group */ @Override public java.lang.String getName() { return _clusterGroup.getName(); } /** * Returns the primary key of this cluster group. * * @return the primary key of this cluster group */ @Override public long getPrimaryKey() { return _clusterGroup.getPrimaryKey(); } @Override public Serializable getPrimaryKeyObj() { return _clusterGroup.getPrimaryKeyObj(); } /** * Returns the whole cluster of this cluster group. * * @return the whole cluster of this cluster group */ @Override public boolean getWholeCluster() { return _clusterGroup.getWholeCluster(); } @Override public int hashCode() { return _clusterGroup.hashCode(); } @Override public boolean isCachedModel() { return _clusterGroup.isCachedModel(); } @Override public boolean isEscapedModel() { return _clusterGroup.isEscapedModel(); } @Override public boolean isNew() { return _clusterGroup.isNew(); } /** * Returns true if this cluster group is whole cluster. * * @return true if this cluster group is whole cluster; false otherwise */ @Override public boolean isWholeCluster() { return _clusterGroup.isWholeCluster(); } @Override public void persist() { _clusterGroup.persist(); } @Override public void setCachedModel(boolean cachedModel) { _clusterGroup.setCachedModel(cachedModel); } /** * Sets the cluster group ID of this cluster group. * * @param clusterGroupId the cluster group ID of this cluster group */ @Override public void setClusterGroupId(long clusterGroupId) { _clusterGroup.setClusterGroupId(clusterGroupId); } /** * Sets the cluster node IDs of this cluster group. * * @param clusterNodeIds the cluster node IDs of this cluster group */ @Override public void setClusterNodeIds(java.lang.String clusterNodeIds) { _clusterGroup.setClusterNodeIds(clusterNodeIds); } @Override public void setExpandoBridgeAttributes(BaseModel baseModel) { _clusterGroup.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) { _clusterGroup.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes(ServiceContext serviceContext) { _clusterGroup.setExpandoBridgeAttributes(serviceContext); } /** * Sets the mvcc version of this cluster group. * * @param mvccVersion the mvcc version of this cluster group */ @Override public void setMvccVersion(long mvccVersion) { _clusterGroup.setMvccVersion(mvccVersion); } /** * Sets the name of this cluster group. * * @param name the name of this cluster group */ @Override public void setName(java.lang.String name) { _clusterGroup.setName(name); } @Override public void setNew(boolean n) { _clusterGroup.setNew(n); } /** * Sets the primary key of this cluster group. * * @param primaryKey the primary key of this cluster group */ @Override public void setPrimaryKey(long primaryKey) { _clusterGroup.setPrimaryKey(primaryKey); } @Override public void setPrimaryKeyObj(Serializable primaryKeyObj) { _clusterGroup.setPrimaryKeyObj(primaryKeyObj); } /** * Sets whether this cluster group is whole cluster. * * @param wholeCluster the whole cluster of this cluster group */ @Override public void setWholeCluster(boolean wholeCluster) { _clusterGroup.setWholeCluster(wholeCluster); } @Override public CacheModel toCacheModel() { return _clusterGroup.toCacheModel(); } @Override public com.liferay.portal.kernel.model.ClusterGroup toEscapedModel() { return new ClusterGroupWrapper(_clusterGroup.toEscapedModel()); } @Override public java.lang.String toString() { return _clusterGroup.toString(); } @Override public com.liferay.portal.kernel.model.ClusterGroup toUnescapedModel() { return new ClusterGroupWrapper(_clusterGroup.toUnescapedModel()); } @Override public java.lang.String toXmlString() { return _clusterGroup.toXmlString(); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof ClusterGroupWrapper)) { return false; } ClusterGroupWrapper clusterGroupWrapper = (ClusterGroupWrapper)obj; if (Validator.equals(_clusterGroup, clusterGroupWrapper._clusterGroup)) { return true; } return false; } @Override public ClusterGroup getWrappedModel() { return _clusterGroup; } @Override public boolean isEntityCacheEnabled() { return _clusterGroup.isEntityCacheEnabled(); } @Override public boolean isFinderCacheEnabled() { return _clusterGroup.isFinderCacheEnabled(); } @Override public void resetOriginalValues() { _clusterGroup.resetOriginalValues(); } private final ClusterGroup _clusterGroup; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy