|
Liferay 6.1.0-ce-ga1 | |||||||||
| 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()
Returns the code ID of this resource code. |
long |
getCompanyId()
Returns the company ID of this resource code. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
String |
getName()
Returns the name of this resource code. |
long |
getPrimaryKey()
Returns the primary key of this resource code. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
int |
getScope()
Returns the scope of this resource code. |
ResourceCode |
getWrappedModel()
|
ResourceCode |
getWrappedResourceCode()
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 |
setCodeId(long codeId)
Sets the code ID of this resource code. |
void |
setCompanyId(long companyId)
Sets the company ID of this resource code. |
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 primaryKey)
Sets the primary key of this resource code. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setScope(int scope)
Sets the scope of this resource code. |
CacheModel<ResourceCode> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
ResourceCode |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
String |
toXmlString()
Returns 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 Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic long getPrimaryKey()
getPrimaryKey in interface ResourceCodeModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ResourceCodeModelprimaryKey - the primary key of this resource codepublic long getCodeId()
getCodeId in interface ResourceCodeModelpublic void setCodeId(long codeId)
setCodeId in interface ResourceCodeModelcodeId - the code ID of this resource codepublic long getCompanyId()
getCompanyId in interface ResourceCodeModelpublic void setCompanyId(long companyId)
setCompanyId in interface ResourceCodeModelcompanyId - the company ID of this resource codepublic String getName()
getName in interface ResourceCodeModelpublic void setName(String name)
setName in interface ResourceCodeModelname - the name of this resource codepublic int getScope()
getScope in interface ResourceCodeModelpublic void setScope(int scope)
setScope in interface ResourceCodeModelscope - the scope of this resource codepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
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()
BaseModeltrue if this model instance was retrieved from the
entity cache.
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()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<ResourceCode>isEscapedModel in interface ResourceCodeModeltrue if this model instance is escaped;
false otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<ResourceCode>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ResourceCodeModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<ResourceCode>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ResourceCodeModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<ResourceCode>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ResourceCodeModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<ResourceCode>setExpandoBridgeAttributes in interface ResourceCodeModelserviceContext - the service contextServiceContext.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 CacheModel<ResourceCode> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<ResourceCode>toCacheModel in interface ResourceCodeModelpublic ResourceCode toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<ResourceCode>toEscapedModel in interface ResourceCodeModelAutoEscapeBeanHandlerpublic String toString()
toString in interface ResourceCodeModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<ResourceCode>toXmlString in interface ResourceCodeModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurredpublic ResourceCode getWrappedResourceCode()
getWrappedModel()
public ResourceCode getWrappedModel()
getWrappedModel in interface ModelWrapper<ResourceCode>public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<ResourceCode>
|
Liferay 6.1.0-ce-ga1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||