|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.ResourceBlockWrapper
public class ResourceBlockWrapper
This class is a wrapper for ResourceBlock
.
ResourceBlock
,
Serialized FormConstructor Summary | |
---|---|
ResourceBlockWrapper(ResourceBlock resourceBlock)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(ResourceBlock resourceBlock)
|
boolean |
equals(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. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
String |
getName()
Returns the name of this resource block. |
String |
getPermissionsHash()
Returns the permissions hash of this resource block. |
long |
getPrimaryKey()
Returns the primary key of this resource block. |
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()
|
ResourceBlock |
getWrappedResourceBlock()
Deprecated. Renamed to getWrappedModel() |
int |
hashCode()
|
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
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(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(Map<String,Object> attributes)
|
void |
setName(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(String permissionsHash)
Sets the permissions hash of this resource block. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this resource block. |
void |
setPrimaryKeyObj(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 . |
String |
toString()
|
ResourceBlock |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceBlockWrapper(ResourceBlock resourceBlock)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<ResourceBlock>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ResourceBlock>
public long getPrimaryKey()
getPrimaryKey
in interface ResourceBlockModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ResourceBlockModel
primaryKey
- the primary key of this resource blockpublic long getResourceBlockId()
getResourceBlockId
in interface PermissionedModel
getResourceBlockId
in interface ResourceBlockModel
public void setResourceBlockId(long resourceBlockId)
setResourceBlockId
in interface PermissionedModel
setResourceBlockId
in interface ResourceBlockModel
resourceBlockId
- the resource block ID of this resource blockpublic long getCompanyId()
getCompanyId
in interface ResourceBlockModel
public void setCompanyId(long companyId)
setCompanyId
in interface ResourceBlockModel
companyId
- the company ID of this resource blockpublic long getGroupId()
getGroupId
in interface ResourceBlockModel
public void setGroupId(long groupId)
setGroupId
in interface ResourceBlockModel
groupId
- the group ID of this resource blockpublic String getName()
getName
in interface ResourceBlockModel
public void setName(String name)
setName
in interface ResourceBlockModel
name
- the name of this resource blockpublic String getPermissionsHash()
getPermissionsHash
in interface ResourceBlockModel
public void setPermissionsHash(String permissionsHash)
setPermissionsHash
in interface ResourceBlockModel
permissionsHash
- the permissions hash of this resource blockpublic long getReferenceCount()
getReferenceCount
in interface ResourceBlockModel
public void setReferenceCount(long referenceCount)
setReferenceCount
in interface ResourceBlockModel
referenceCount
- the reference count of this resource blockpublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<ResourceBlock>
isNew
in interface ResourceBlockModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<ResourceBlock>
setNew
in interface ResourceBlockModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<ResourceBlock>
isCachedModel
in interface ResourceBlockModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<ResourceBlock>
setCachedModel
in interface ResourceBlockModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<ResourceBlock>
isEscapedModel
in interface ResourceBlockModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ResourceBlock>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface ResourceBlockModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<ResourceBlock>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface ResourceBlockModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ResourceBlock>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface ResourceBlockModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ResourceBlock>
setExpandoBridgeAttributes
in interface ResourceBlockModel
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<ResourceBlock>
clone
in interface ResourceBlockModel
clone
in class Object
public int compareTo(ResourceBlock resourceBlock)
compareTo
in interface ResourceBlockModel
compareTo
in interface Comparable<ResourceBlock>
public int hashCode()
hashCode
in interface ResourceBlockModel
hashCode
in class Object
public CacheModel<ResourceBlock> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<ResourceBlock>
toCacheModel
in interface ResourceBlockModel
public ResourceBlock toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<ResourceBlock>
toEscapedModel
in interface ResourceBlockModel
AutoEscapeBeanHandler
public ResourceBlock toUnescapedModel()
toUnescapedModel
in interface BaseModel<ResourceBlock>
toUnescapedModel
in interface ResourceBlockModel
public String toString()
toString
in interface ResourceBlockModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ResourceBlock>
toXmlString
in interface ResourceBlockModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic boolean equals(Object obj)
equals
in class Object
public ResourceBlock getWrappedResourceBlock()
getWrappedModel()
public ResourceBlock getWrappedModel()
getWrappedModel
in interface ModelWrapper<ResourceBlock>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<ResourceBlock>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |