@ProviderType public class ResourceActionWrapper extends Object implements ResourceAction, ModelWrapper<ResourceAction>
This class is a wrapper for ResourceAction.
ResourceAction,
Serialized FormRESOURCE_ACTION_ID_ACCESSOR| Constructor and Description |
|---|
ResourceActionWrapper(ResourceAction resourceAction) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(ResourceAction resourceAction) |
boolean |
equals(Object obj) |
String |
getActionId()
Returns the action ID of this resource action.
|
long |
getBitwiseValue()
Returns the bitwise value of this resource action.
|
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 resource action.
|
String |
getName()
Returns the name of this resource action.
|
long |
getPrimaryKey()
Returns the primary key of this resource action.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getResourceActionId()
Returns the resource action ID of this resource action.
|
ResourceAction |
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. |
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 |
setActionId(String actionId)
Sets the action ID of this resource action.
|
void |
setBitwiseValue(long bitwiseValue)
Sets the bitwise value of this resource action.
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache.
|
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 resource action.
|
void |
setName(String name)
Sets the name of this resource action.
|
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 resource action.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setResourceActionId(long resourceActionId)
Sets the resource action ID of this resource action.
|
CacheModel<ResourceAction> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
ResourceAction |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
String |
toString() |
ResourceAction |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public ResourceActionWrapper(ResourceAction resourceAction)
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<ResourceAction>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<ResourceAction>public CacheModel<ResourceAction> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<ResourceAction>toCacheModel in interface ResourceActionModelpublic ResourceAction toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<ResourceAction>toEscapedModel in interface ResourceActionModelAutoEscapeBeanHandlerpublic ResourceAction toUnescapedModel()
toUnescapedModel in interface BaseModel<ResourceAction>toUnescapedModel in interface ResourceActionModelpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<ResourceAction>isCachedModel in interface ResourceActionModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<ResourceAction>isEscapedModel in interface ResourceActionModeltrue if this model instance is escaped;
false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<ResourceAction>isNew in interface ResourceActionModeltrue if this model instance does not yet exist in
the database; false otherwisepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<ResourceAction>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ResourceActionModelpublic int compareTo(ResourceAction resourceAction)
compareTo in interface ResourceActionModelcompareTo in interface Comparable<ResourceAction>public int hashCode()
hashCode in interface ResourceActionModelhashCode in class Objectpublic Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<ResourceAction>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ResourceActionModelpublic Object clone()
BaseModelclone in interface BaseModel<ResourceAction>clone in interface ResourceActionModelclone in class Objectpublic String getActionId()
getActionId in interface ResourceActionModelpublic String getName()
getName in interface ResourceActionModelpublic String toString()
toString in interface ResourceActionModeltoString in class Objectpublic String toXmlString()
BaseModeltoXmlString in interface BaseModel<ResourceAction>toXmlString in interface ResourceActionModelpublic long getBitwiseValue()
getBitwiseValue in interface ResourceActionModelpublic long getMvccVersion()
getMvccVersion in interface MVCCModelgetMvccVersion in interface ResourceActionModelpublic long getPrimaryKey()
getPrimaryKey in interface ResourceActionModelpublic long getResourceActionId()
getResourceActionId in interface ResourceActionModelpublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setActionId(String actionId)
setActionId in interface ResourceActionModelactionId - the action ID of this resource actionpublic void setBitwiseValue(long bitwiseValue)
setBitwiseValue in interface ResourceActionModelbitwiseValue - the bitwise value of this resource actionpublic void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<ResourceAction>setCachedModel in interface ResourceActionModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<ResourceAction>setExpandoBridgeAttributes in interface ResourceActionModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<ResourceAction>setExpandoBridgeAttributes in interface ResourceActionModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<ResourceAction>setExpandoBridgeAttributes in interface ResourceActionModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public void setMvccVersion(long mvccVersion)
setMvccVersion in interface MVCCModelsetMvccVersion in interface ResourceActionModelmvccVersion - the mvcc version of this resource actionpublic void setName(String name)
setName in interface ResourceActionModelname - the name of this resource actionpublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<ResourceAction>setNew in interface ResourceActionModeln - whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ResourceActionModelprimaryKey - the primary key of this resource actionpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<ResourceAction>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ResourceActionModelprimaryKeyObj - the primary key of this model instancepublic void setResourceActionId(long resourceActionId)
setResourceActionId in interface ResourceActionModelresourceActionId - the resource action ID of this resource actionpublic ResourceAction getWrappedModel()
getWrappedModel in interface ModelWrapper<ResourceAction>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<ResourceAction>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.isFinderCacheEnabled in interface BaseModel<ResourceAction>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<ResourceAction>