|
Liferay 6.1.2-ce-ga3 | |||||||||
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. |
Map<String,Object> |
getModelAttributes()
|
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(Map<String,Object> attributes)
|
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 . |
T |
toUnescapedModel()
|
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
Map<String,Object> getModelAttributes()
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 setModelAttributes(Map<String,Object> attributes)
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
T toUnescapedModel()
String toXmlString()
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |