|
|||||||||
| 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 | |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes()
|
java.io.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 |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKeyObj(java.io.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. |
java.lang.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 |
|---|
java.lang.Object clone()
ExpandoBridge getExpandoBridge()
getExpandoBridge in interface ClassedModeljava.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
java.io.Serializable getPrimaryKeyObj()
getPrimaryKeyObj in interface ClassedModelboolean 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 cacheEntityCachevoid setExpandoBridgeAttributes(ServiceContext serviceContext)
serviceContext - the service contextServiceContext.getExpandoBridgeAttributes(
)void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
void setNew(boolean n)
n - whether this model instance does not yet exist in the databasevoid setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
setPrimaryKeyObj in interface ClassedModelprimaryKeyObj - the primary key of this model instanceCacheModel<T> toCacheModel()
T toEscapedModel()
AutoEscapeBeanHandler.
AutoEscapeBeanHandlerjava.lang.String toXmlString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||