|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.ResourceCodeWrapper
public class ResourceCodeWrapper
This class is a wrapper for ResourceCode.
ResourceCode,
Serialized Form| Constructor Summary | |
|---|---|
ResourceCodeWrapper(ResourceCode resourceCode)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(ResourceCode resourceCode)
|
long |
getCodeId()
Gets the code id of this resource code. |
long |
getCompanyId()
Gets the company id of this resource code. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
String |
getName()
Gets the name of this resource code. |
long |
getPrimaryKey()
Gets the primary key of this resource code. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
int |
getScope()
Gets the scope of this resource code. |
ResourceCode |
getWrappedResourceCode()
|
int |
hashCode()
|
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance is escaped. |
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
void |
setCodeId(long codeId)
Sets the code id of this resource code. |
void |
setCompanyId(long companyId)
Sets the company id of this resource code. |
void |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setName(String name)
Sets the name of this resource code. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long pk)
Sets the primary key of this resource code |
void |
setScope(int scope)
Sets the scope of this resource code. |
ResourceCode |
toEscapedModel()
Gets a copy of this resource code as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
String |
toXmlString()
Gets the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceCodeWrapper(ResourceCode resourceCode)
| Method Detail |
|---|
public long getPrimaryKey()
ResourceCodeModel
getPrimaryKey in interface ResourceCodeModelpublic void setPrimaryKey(long pk)
ResourceCodeModel
setPrimaryKey in interface ResourceCodeModelpk - the primary key of this resource codepublic long getCodeId()
ResourceCodeModel
getCodeId in interface ResourceCodeModelpublic void setCodeId(long codeId)
ResourceCodeModel
setCodeId in interface ResourceCodeModelcodeId - the code id of this resource codepublic long getCompanyId()
ResourceCodeModel
getCompanyId in interface ResourceCodeModelpublic void setCompanyId(long companyId)
ResourceCodeModel
setCompanyId in interface ResourceCodeModelcompanyId - the company id of this resource codepublic String getName()
ResourceCodeModel
getName in interface ResourceCodeModelpublic void setName(String name)
ResourceCodeModel
setName in interface ResourceCodeModelname - the name of this resource codepublic int getScope()
ResourceCodeModel
getScope in interface ResourceCodeModelpublic void setScope(int scope)
ResourceCodeModel
setScope in interface ResourceCodeModelscope - the scope of this resource codepublic ResourceCode toEscapedModel()
ResourceCodeModelAutoEscapeBeanHandler.
toEscapedModel in interface ResourceCodeModelAutoEscapeBeanHandlerpublic boolean isNew()
BaseModel
isNew in interface BaseModel<ResourceCode>isNew in interface ResourceCodeModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<ResourceCode>setNew in interface ResourceCodeModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel in interface BaseModel<ResourceCode>isCachedModel in interface ResourceCodeModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<ResourceCode>setCachedModel in interface ResourceCodeModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModel
isEscapedModel in interface BaseModel<ResourceCode>isEscapedModel in interface ResourceCodeModeltrue if this model instance is escaped;
false otherwiseBaseModel.setEscapedModel(boolean)public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel method. For example,
UserModel.toEscapedModel().
setEscapedModel in interface BaseModel<ResourceCode>setEscapedModel in interface ResourceCodeModelescapedModel - whether this model instance is escapedAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<ResourceCode>getPrimaryKeyObj in interface ResourceCodeModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<ResourceCode>getExpandoBridge in interface ResourceCodeModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<ResourceCode>setExpandoBridgeAttributes in interface ResourceCodeModelserviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<ResourceCode>clone in interface ResourceCodeModelclone in class Objectpublic int compareTo(ResourceCode resourceCode)
compareTo in interface ResourceCodeModelcompareTo in interface Comparable<ResourceCode>public int hashCode()
hashCode in interface ResourceCodeModelhashCode in class Objectpublic String toString()
toString in interface ResourceCodeModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<ResourceCode>toXmlString in interface ResourceCodeModelpublic ResourceCode getWrappedResourceCode()
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||