@ProviderType public class ClusterGroupWrapper extends Object implements ClusterGroup, ModelWrapper<ClusterGroup>
This class is a wrapper for ClusterGroup
.
ClusterGroup
,
Serialized FormCLUSTER_GROUP_ID_ACCESSOR
Constructor and Description |
---|
ClusterGroupWrapper(ClusterGroup clusterGroup) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(ClusterGroup clusterGroup) |
boolean |
equals(Object obj) |
long |
getClusterGroupId()
Returns the cluster group ID of this cluster group.
|
String |
getClusterNodeIds()
Returns the cluster node IDs of this cluster group.
|
String[] |
getClusterNodeIdsArray() |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
long |
getMvccVersion()
Returns the mvcc version of this cluster group.
|
String |
getName()
Returns the name of this cluster group.
|
long |
getPrimaryKey()
Returns the primary key of this cluster group.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
boolean |
getWholeCluster()
Returns the whole cluster of this cluster group.
|
ClusterGroup |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
boolean |
isNew()
Returns
true if this model instance does not yet exist in
the database. |
boolean |
isWholeCluster()
Returns
true if this cluster group is whole cluster. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
resetOriginalValues()
Reset all original fields to current values.
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache.
|
void |
setClusterGroupId(long clusterGroupId)
Sets the cluster group ID of this cluster group.
|
void |
setClusterNodeIds(String clusterNodeIds)
Sets the cluster node IDs of this cluster group.
|
void |
setExpandoBridgeAttributes(BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the
attributes stored in the service context.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this cluster group.
|
void |
setName(String name)
Sets the name of this cluster group.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this cluster group.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setWholeCluster(boolean wholeCluster)
Sets whether this cluster group is whole cluster.
|
CacheModel<ClusterGroup> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
ClusterGroup |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
String |
toString() |
ClusterGroup |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public ClusterGroupWrapper(ClusterGroup clusterGroup)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<ClusterGroup>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ClusterGroup>
public Object clone()
BaseModel
clone
in interface BaseModel<ClusterGroup>
clone
in interface ClusterGroupModel
clone
in class Object
public int compareTo(ClusterGroup clusterGroup)
compareTo
in interface ClusterGroupModel
compareTo
in interface Comparable<ClusterGroup>
public long getClusterGroupId()
getClusterGroupId
in interface ClusterGroupModel
public String getClusterNodeIds()
getClusterNodeIds
in interface ClusterGroupModel
public String[] getClusterNodeIdsArray()
getClusterNodeIdsArray
in interface ClusterGroup
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ClusterGroup>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface ClusterGroupModel
public long getMvccVersion()
getMvccVersion
in interface ClusterGroupModel
getMvccVersion
in interface MVCCModel
public String getName()
getName
in interface ClusterGroupModel
public long getPrimaryKey()
getPrimaryKey
in interface ClusterGroupModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ClusterGroup>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface ClusterGroupModel
public boolean getWholeCluster()
getWholeCluster
in interface ClusterGroupModel
public int hashCode()
hashCode
in interface ClusterGroupModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<ClusterGroup>
isCachedModel
in interface ClusterGroupModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface BaseModel<ClusterGroup>
isEscapedModel
in interface ClusterGroupModel
true
if this model instance is escaped;
false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface BaseModel<ClusterGroup>
isNew
in interface ClusterGroupModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic boolean isWholeCluster()
true
if this cluster group is whole cluster.isWholeCluster
in interface ClusterGroupModel
true
if this cluster group is whole cluster; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<ClusterGroup>
setCachedModel
in interface ClusterGroupModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setClusterGroupId(long clusterGroupId)
setClusterGroupId
in interface ClusterGroupModel
clusterGroupId
- the cluster group ID of this cluster grouppublic void setClusterNodeIds(String clusterNodeIds)
setClusterNodeIds
in interface ClusterGroupModel
clusterNodeIds
- the cluster node IDs of this cluster grouppublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<ClusterGroup>
setExpandoBridgeAttributes
in interface ClusterGroupModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<ClusterGroup>
setExpandoBridgeAttributes
in interface ClusterGroupModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ClusterGroup>
setExpandoBridgeAttributes
in interface ClusterGroupModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setMvccVersion(long mvccVersion)
setMvccVersion
in interface ClusterGroupModel
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this cluster grouppublic void setName(String name)
setName
in interface ClusterGroupModel
name
- the name of this cluster grouppublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<ClusterGroup>
setNew
in interface ClusterGroupModel
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ClusterGroupModel
primaryKey
- the primary key of this cluster grouppublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<ClusterGroup>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface ClusterGroupModel
primaryKeyObj
- the primary key of this model instancepublic void setWholeCluster(boolean wholeCluster)
setWholeCluster
in interface ClusterGroupModel
wholeCluster
- the whole cluster of this cluster grouppublic CacheModel<ClusterGroup> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<ClusterGroup>
toCacheModel
in interface ClusterGroupModel
public ClusterGroup toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<ClusterGroup>
toEscapedModel
in interface ClusterGroupModel
AutoEscapeBeanHandler
public String toString()
toString
in interface ClusterGroupModel
toString
in class Object
public ClusterGroup toUnescapedModel()
toUnescapedModel
in interface BaseModel<ClusterGroup>
toUnescapedModel
in interface ClusterGroupModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ClusterGroup>
toXmlString
in interface ClusterGroupModel
public boolean equals(Object obj)
equals
in class Object
public ClusterGroup getWrappedModel()
getWrappedModel
in interface ModelWrapper<ClusterGroup>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<ClusterGroup>
true
if this model's entity cache is enabled;
false
otherwisepublic boolean isFinderCacheEnabled()
BaseModel
true
if this model's finder cache is enabled.isFinderCacheEnabled
in interface BaseModel<ClusterGroup>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<ClusterGroup>