@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 ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<ResourceAction>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ResourceAction>
public Object clone()
BaseModel
clone
in interface BaseModel<ResourceAction>
clone
in interface ResourceActionModel
clone
in class Object
public int compareTo(ResourceAction resourceAction)
compareTo
in interface ResourceActionModel
compareTo
in interface Comparable<ResourceAction>
public String getActionId()
getActionId
in interface ResourceActionModel
public long getBitwiseValue()
getBitwiseValue
in interface ResourceActionModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ResourceAction>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface ResourceActionModel
public long getMvccVersion()
getMvccVersion
in interface MVCCModel
getMvccVersion
in interface ResourceActionModel
public String getName()
getName
in interface ResourceActionModel
public long getPrimaryKey()
getPrimaryKey
in interface ResourceActionModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ResourceAction>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface ResourceActionModel
public long getResourceActionId()
getResourceActionId
in interface ResourceActionModel
public int hashCode()
hashCode
in interface ResourceActionModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<ResourceAction>
isCachedModel
in interface ResourceActionModel
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<ResourceAction>
isEscapedModel
in interface ResourceActionModel
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<ResourceAction>
isNew
in interface ResourceActionModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setActionId(String actionId)
setActionId
in interface ResourceActionModel
actionId
- the action ID of this resource actionpublic void setBitwiseValue(long bitwiseValue)
setBitwiseValue
in interface ResourceActionModel
bitwiseValue
- the bitwise value of this resource actionpublic void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<ResourceAction>
setCachedModel
in interface ResourceActionModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<ResourceAction>
setExpandoBridgeAttributes
in interface ResourceActionModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<ResourceAction>
setExpandoBridgeAttributes
in interface ResourceActionModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ResourceAction>
setExpandoBridgeAttributes
in interface ResourceActionModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
setMvccVersion
in interface ResourceActionModel
mvccVersion
- the mvcc version of this resource actionpublic void setName(String name)
setName
in interface ResourceActionModel
name
- the name of this resource actionpublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<ResourceAction>
setNew
in interface ResourceActionModel
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ResourceActionModel
primaryKey
- the primary key of this resource actionpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<ResourceAction>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface ResourceActionModel
primaryKeyObj
- the primary key of this model instancepublic void setResourceActionId(long resourceActionId)
setResourceActionId
in interface ResourceActionModel
resourceActionId
- the resource action ID of this resource actionpublic CacheModel<ResourceAction> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<ResourceAction>
toCacheModel
in interface ResourceActionModel
public ResourceAction toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<ResourceAction>
toEscapedModel
in interface ResourceActionModel
AutoEscapeBeanHandler
public String toString()
toString
in interface ResourceActionModel
toString
in class Object
public ResourceAction toUnescapedModel()
toUnescapedModel
in interface BaseModel<ResourceAction>
toUnescapedModel
in interface ResourceActionModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ResourceAction>
toXmlString
in interface ResourceActionModel
public boolean equals(Object obj)
equals
in class Object
public ResourceAction getWrappedModel()
getWrappedModel
in interface ModelWrapper<ResourceAction>
public boolean isEntityCacheEnabled()
BaseModel
true
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()
BaseModel
true
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()
BaseModel
resetOriginalValues
in interface BaseModel<ResourceAction>