|
Liferay 6.1.0 | |||||||||
| 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 |
|---|
boolean 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 setNew(boolean n)
n - whether this model instance does not yet exist in the databaseboolean 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)void setCachedModel(boolean cachedModel)
cachedModel - whether this model instance was retrieved from the
entity cacheEntityCacheboolean isEscapedModel()
true if this model instance is escaped.
true if this model instance is escaped;
false otherwiseSerializable getPrimaryKeyObj()
getPrimaryKeyObj in interface ClassedModelvoid setPrimaryKeyObj(Serializable primaryKeyObj)
setPrimaryKeyObj in interface ClassedModelprimaryKeyObj - the primary key of this model instanceExpandoBridge getExpandoBridge()
getExpandoBridge in interface ClassedModelvoid setExpandoBridgeAttributes(ServiceContext serviceContext)
serviceContext - the service contextServiceContext.getExpandoBridgeAttributes(
)Object clone()
void resetOriginalValues()
CacheModel<T> toCacheModel()
T toEscapedModel()
AutoEscapeBeanHandler.
AutoEscapeBeanHandlerString toXmlString()
|
Liferay 6.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||