|
Liferay 6.1.10-ee-ga1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BaseModel<T>
The base interface for all model classes. This interface should never need to be used directly.
BaseModelImpl
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
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 |
resetOriginalValues()
Reset all original fields to current values. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
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 |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
CacheModel<T> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
T |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toXmlString()
Returns the XML representation of this model instance. |
Methods inherited from interface com.liferay.portal.model.ClassedModel |
---|
getModelClass, getModelClassName |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
Object clone()
ExpandoBridge getExpandoBridge()
getExpandoBridge
in interface ClassedModel
Serializable getPrimaryKeyObj()
getPrimaryKeyObj
in interface ClassedModel
boolean isCachedModel()
true
if this model instance was retrieved from the
entity cache.
true
if this model instance was retrieved from the
entity cache; false
otherwisesetCachedModel(boolean)
boolean isEscapedModel()
true
if this model instance is escaped.
true
if this model instance is escaped;
false
otherwiseboolean isNew()
true
if this model instance does not yet exist in
the database.
true
if this model instance does not yet exist in
the database; false
otherwisevoid resetOriginalValues()
void setCachedModel(boolean cachedModel)
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
void setExpandoBridgeAttributes(ServiceContext serviceContext)
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
void setNew(boolean n)
n
- whether this model instance does not yet exist in the databasevoid setPrimaryKeyObj(Serializable primaryKeyObj)
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instanceCacheModel<T> toCacheModel()
T toEscapedModel()
AutoEscapeBeanHandler
.
AutoEscapeBeanHandler
String toXmlString()
|
Liferay 6.1.10-ee-ga1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |