@ProviderType public class ResourceTypePermissionWrapper extends Object implements ResourceTypePermission, ModelWrapper<ResourceTypePermission>
This class is a wrapper for ResourceTypePermission.
ResourceTypePermission,
Serialized FormRESOURCE_TYPE_PERMISSION_ID_ACCESSOR| Constructor and Description |
|---|
ResourceTypePermissionWrapper(ResourceTypePermission resourceTypePermission) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(ResourceTypePermission resourceTypePermission) |
boolean |
equals(Object obj) |
long |
getActionIds()
Returns the action IDs of this resource type permission.
|
long |
getCompanyId()
Returns the company ID of this resource type permission.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
long |
getGroupId()
Returns the group ID of this resource type permission.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
long |
getMvccVersion()
Returns the mvcc version of this resource type permission.
|
String |
getName()
Returns the name of this resource type permission.
|
long |
getPrimaryKey()
Returns the primary key of this resource type permission.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getResourceTypePermissionId()
Returns the resource type permission ID of this resource type permission.
|
long |
getRoleId()
Returns the role ID of this resource type permission.
|
ResourceTypePermission |
getWrappedModel() |
boolean |
hasAction(ResourceAction resourceAction) |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isCompanyScope() |
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 |
isGroupScope() |
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 |
setActionIds(long actionIds)
Sets the action IDs of this resource type permission.
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache.
|
void |
setCompanyId(long companyId)
Sets the company ID of this resource type permission.
|
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 |
setGroupId(long groupId)
Sets the group ID of this resource type permission.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this resource type permission.
|
void |
setName(String name)
Sets the name of this resource type permission.
|
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 type permission.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setResourceTypePermissionId(long resourceTypePermissionId)
Sets the resource type permission ID of this resource type permission.
|
void |
setRoleId(long roleId)
Sets the role ID of this resource type permission.
|
CacheModel<ResourceTypePermission> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
ResourceTypePermission |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
String |
toString() |
ResourceTypePermission |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public ResourceTypePermissionWrapper(ResourceTypePermission resourceTypePermission)
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<ResourceTypePermission>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<ResourceTypePermission>public CacheModel<ResourceTypePermission> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<ResourceTypePermission>toCacheModel in interface ResourceTypePermissionModelpublic ResourceTypePermission toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<ResourceTypePermission>toEscapedModel in interface ResourceTypePermissionModelAutoEscapeBeanHandlerpublic ResourceTypePermission toUnescapedModel()
toUnescapedModel in interface BaseModel<ResourceTypePermission>toUnescapedModel in interface ResourceTypePermissionModelpublic boolean hasAction(ResourceAction resourceAction)
hasAction in interface ResourceTypePermissionpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<ResourceTypePermission>isCachedModel in interface ResourceTypePermissionModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isCompanyScope()
isCompanyScope in interface ResourceTypePermissionpublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<ResourceTypePermission>isEscapedModel in interface ResourceTypePermissionModeltrue if this model instance is escaped;
false otherwisepublic boolean isGroupScope()
isGroupScope in interface ResourceTypePermissionpublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<ResourceTypePermission>isNew in interface ResourceTypePermissionModeltrue if this model instance does not yet exist in
the database; false otherwisepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<ResourceTypePermission>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ResourceTypePermissionModelpublic int compareTo(ResourceTypePermission resourceTypePermission)
compareTo in interface ResourceTypePermissionModelcompareTo in interface Comparable<ResourceTypePermission>public int hashCode()
hashCode in interface ResourceTypePermissionModelhashCode in class Objectpublic Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<ResourceTypePermission>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ResourceTypePermissionModelpublic Object clone()
BaseModelclone in interface BaseModel<ResourceTypePermission>clone in interface ResourceTypePermissionModelclone in class Objectpublic String getName()
getName in interface ResourceTypePermissionModelpublic String toString()
toString in interface ResourceTypePermissionModeltoString in class Objectpublic String toXmlString()
BaseModeltoXmlString in interface BaseModel<ResourceTypePermission>toXmlString in interface ResourceTypePermissionModelpublic long getActionIds()
getActionIds in interface ResourceTypePermissionModelpublic long getCompanyId()
getCompanyId in interface ResourceTypePermissionModelgetCompanyId in interface ShardedModelpublic long getGroupId()
getGroupId in interface ResourceTypePermissionModelpublic long getMvccVersion()
getMvccVersion in interface MVCCModelgetMvccVersion in interface ResourceTypePermissionModelpublic long getPrimaryKey()
getPrimaryKey in interface ResourceTypePermissionModelpublic long getResourceTypePermissionId()
getResourceTypePermissionId in interface ResourceTypePermissionModelpublic long getRoleId()
getRoleId in interface ResourceTypePermissionModelpublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setActionIds(long actionIds)
setActionIds in interface ResourceTypePermissionModelactionIds - the action IDs of this resource type permissionpublic void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<ResourceTypePermission>setCachedModel in interface ResourceTypePermissionModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setCompanyId(long companyId)
setCompanyId in interface ResourceTypePermissionModelsetCompanyId in interface ShardedModelcompanyId - the company ID of this resource type permissionpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<ResourceTypePermission>setExpandoBridgeAttributes in interface ResourceTypePermissionModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<ResourceTypePermission>setExpandoBridgeAttributes in interface ResourceTypePermissionModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<ResourceTypePermission>setExpandoBridgeAttributes in interface ResourceTypePermissionModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public void setGroupId(long groupId)
setGroupId in interface ResourceTypePermissionModelgroupId - the group ID of this resource type permissionpublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface MVCCModelsetMvccVersion in interface ResourceTypePermissionModelmvccVersion - the mvcc version of this resource type permissionpublic void setName(String name)
setName in interface ResourceTypePermissionModelname - the name of this resource type permissionpublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<ResourceTypePermission>setNew in interface ResourceTypePermissionModeln - whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ResourceTypePermissionModelprimaryKey - the primary key of this resource type permissionpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<ResourceTypePermission>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ResourceTypePermissionModelprimaryKeyObj - the primary key of this model instancepublic void setResourceTypePermissionId(long resourceTypePermissionId)
setResourceTypePermissionId in interface ResourceTypePermissionModelresourceTypePermissionId - the resource type permission ID of this resource type permissionpublic void setRoleId(long roleId)
setRoleId in interface ResourceTypePermissionModelroleId - the role ID of this resource type permissionpublic ResourceTypePermission getWrappedModel()
getWrappedModel in interface ModelWrapper<ResourceTypePermission>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<ResourceTypePermission>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<ResourceTypePermission>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<ResourceTypePermission>