@ProviderType public class ResourceBlockWrapper extends java.lang.Object implements ResourceBlock, ModelWrapper<ResourceBlock>
This class is a wrapper for ResourceBlock.
ResourceBlock,
Serialized FormRESOURCE_BLOCK_ID_ACCESSOR| Constructor and Description |
|---|
ResourceBlockWrapper(ResourceBlock resourceBlock) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(ResourceBlock resourceBlock) |
boolean |
equals(java.lang.Object obj) |
long |
getCompanyId()
Returns the company ID of this resource block.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
long |
getGroupId()
Returns the group ID of this resource block.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
long |
getMvccVersion()
Returns the mvcc version of this resource block.
|
java.lang.String |
getName()
Returns the name of this resource block.
|
java.lang.String |
getPermissionsHash()
Returns the permissions hash of this resource block.
|
long |
getPrimaryKey()
Returns the primary key of this resource block.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getReferenceCount()
Returns the reference count of this resource block.
|
long |
getResourceBlockId()
Returns the resource block ID of this resource block.
|
ResourceBlock |
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 |
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 block.
|
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 block.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this resource block.
|
void |
setName(java.lang.String name)
Sets the name of this resource block.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setPermissionsHash(java.lang.String permissionsHash)
Sets the permissions hash of this resource block.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this resource block.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setReferenceCount(long referenceCount)
Sets the reference count of this resource block.
|
void |
setResourceBlockId(long resourceBlockId)
Sets the resource block ID of this resource block.
|
CacheModel<ResourceBlock> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
ResourceBlock |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
java.lang.String |
toString() |
ResourceBlock |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public ResourceBlockWrapper(ResourceBlock resourceBlock)
public java.lang.Class<?> getModelClass()
getModelClass in interface ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<ResourceBlock>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<ResourceBlock>public java.lang.Object clone()
BaseModelclone in interface BaseModel<ResourceBlock>clone in interface ResourceBlockModelclone in class java.lang.Objectpublic int compareTo(ResourceBlock resourceBlock)
compareTo in interface ResourceBlockModelcompareTo in interface java.lang.Comparable<ResourceBlock>public long getCompanyId()
getCompanyId in interface ResourceBlockModelgetCompanyId in interface ShardedModelpublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<ResourceBlock>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ResourceBlockModelpublic long getGroupId()
getGroupId in interface ResourceBlockModelpublic long getMvccVersion()
getMvccVersion in interface MVCCModelgetMvccVersion in interface ResourceBlockModelpublic java.lang.String getName()
getName in interface ResourceBlockModelpublic java.lang.String getPermissionsHash()
getPermissionsHash in interface ResourceBlockModelpublic long getPrimaryKey()
getPrimaryKey in interface ResourceBlockModelpublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<ResourceBlock>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ResourceBlockModelpublic long getReferenceCount()
getReferenceCount in interface ResourceBlockModelpublic long getResourceBlockId()
getResourceBlockId in interface PermissionedModelgetResourceBlockId in interface ResourceBlockModelpublic int hashCode()
hashCode in interface ResourceBlockModelhashCode in class java.lang.Objectpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<ResourceBlock>isCachedModel in interface ResourceBlockModeltrue 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<ResourceBlock>isEscapedModel in interface ResourceBlockModeltrue 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<ResourceBlock>isNew in interface ResourceBlockModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<ResourceBlock>setCachedModel in interface ResourceBlockModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setCompanyId(long companyId)
setCompanyId in interface ResourceBlockModelsetCompanyId in interface ShardedModelcompanyId - the company ID of this resource blockpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<ResourceBlock>setExpandoBridgeAttributes in interface ResourceBlockModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<ResourceBlock>setExpandoBridgeAttributes in interface ResourceBlockModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<ResourceBlock>setExpandoBridgeAttributes in interface ResourceBlockModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public void setGroupId(long groupId)
setGroupId in interface ResourceBlockModelgroupId - the group ID of this resource blockpublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface MVCCModelsetMvccVersion in interface ResourceBlockModelmvccVersion - the mvcc version of this resource blockpublic void setName(java.lang.String name)
setName in interface ResourceBlockModelname - the name of this resource blockpublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<ResourceBlock>setNew in interface ResourceBlockModeln - whether this model instance does not yet exist in the databasepublic void setPermissionsHash(java.lang.String permissionsHash)
setPermissionsHash in interface ResourceBlockModelpermissionsHash - the permissions hash of this resource blockpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ResourceBlockModelprimaryKey - the primary key of this resource blockpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<ResourceBlock>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ResourceBlockModelprimaryKeyObj - the primary key of this model instancepublic void setReferenceCount(long referenceCount)
setReferenceCount in interface ResourceBlockModelreferenceCount - the reference count of this resource blockpublic void setResourceBlockId(long resourceBlockId)
setResourceBlockId in interface PermissionedModelsetResourceBlockId in interface ResourceBlockModelresourceBlockId - the resource block ID of this resource blockpublic CacheModel<ResourceBlock> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<ResourceBlock>toCacheModel in interface ResourceBlockModelpublic ResourceBlock toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<ResourceBlock>toEscapedModel in interface ResourceBlockModelAutoEscapeBeanHandlerpublic java.lang.String toString()
toString in interface ResourceBlockModeltoString in class java.lang.Objectpublic ResourceBlock toUnescapedModel()
toUnescapedModel in interface BaseModel<ResourceBlock>toUnescapedModel in interface ResourceBlockModelpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<ResourceBlock>toXmlString in interface ResourceBlockModelpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic ResourceBlock getWrappedModel()
getWrappedModel in interface ModelWrapper<ResourceBlock>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<ResourceBlock>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<ResourceBlock>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<ResourceBlock>