|
Liferay 6.0.4 | |||||||||
| 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.
BaseModelImpl| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance is escaped. |
boolean |
isNew()
Determines 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 |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
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. |
String |
toXmlString()
Gets the XML representation of this model instance. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
boolean isNew()
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; 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;
false otherwisesetEscapedModel(boolean)void setEscapedModel(boolean escapedModel)
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel method. For example,
UserModel.toEscapedModel().
escapedModel - whether this model instance is escapedAutoEscapeBeanHandlerSerializable getPrimaryKeyObj()
ExpandoBridge getExpandoBridge()
void setExpandoBridgeAttributes(ServiceContext serviceContext)
serviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)Object clone()
String toXmlString()
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||