|
Liferay 6.1.2-ce-ga3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceModel
The base model interface for the Resource service. Represents a row in the "Resource_" database table, with each column mapped to a property of this class.
This interface and its corresponding implementation ResourceModelImpl exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in ResourceImpl.
Resource,
ResourceImpl,
ResourceModelImpl| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Resource resource)
|
long |
getCodeId()
Returns the code ID of this resource. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
long |
getPrimaryKey()
Returns the primary key of this resource. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
String |
getPrimKey()
Returns the prim key of this resource. |
long |
getResourceId()
Returns the resource ID of this resource. |
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 |
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. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
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. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setPrimKey(String primKey)
Sets the prim key of this resource. |
void |
setResourceId(long resourceId)
Sets the resource ID of this resource. |
CacheModel<Resource> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
Resource |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
Resource |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
| Methods inherited from interface com.liferay.portal.model.BaseModel |
|---|
getModelAttributes, resetOriginalValues, setModelAttributes |
| Methods inherited from interface com.liferay.portal.model.ClassedModel |
|---|
getModelClass, getModelClassName |
| Method Detail |
|---|
long getPrimaryKey()
void setPrimaryKey(long primaryKey)
primaryKey - the primary key of this resourcelong getResourceId()
void setResourceId(long resourceId)
resourceId - the resource ID of this resourcelong getCodeId()
void setCodeId(long codeId)
codeId - the code ID of this resource@AutoEscape String getPrimKey()
void setPrimKey(String primKey)
primKey - the prim key of this resourceboolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<Resource>true if this model instance does not yet exist in
the database; false otherwisevoid setNew(boolean n)
BaseModel
setNew in interface BaseModel<Resource>n - whether this model instance does not yet exist in the databaseboolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<Resource>true if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<Resource>cachedModel - whether this model instance was retrieved from the
entity cacheEntityCacheboolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<Resource>true if this model instance is escaped;
false otherwiseSerializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Resource>getPrimaryKeyObj in interface ClassedModelvoid setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<Resource>setPrimaryKeyObj in interface ClassedModelprimaryKeyObj - the primary key of this model instanceExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Resource>getExpandoBridge in interface ClassedModelvoid setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Resource>serviceContext - the service contextServiceContext.getExpandoBridgeAttributes(
)Object clone()
BaseModel
clone in interface BaseModel<Resource>int compareTo(Resource resource)
compareTo in interface Comparable<Resource>int hashCode()
hashCode in class ObjectCacheModel<Resource> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<Resource>Resource toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<Resource>AutoEscapeBeanHandlerResource toUnescapedModel()
toUnescapedModel in interface BaseModel<Resource>String toString()
toString in class ObjectString toXmlString()
BaseModel
toXmlString in interface BaseModel<Resource>
|
Liferay 6.1.2-ce-ga3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||