|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portal.model.impl.BaseModelImpl<T>
public abstract class BaseModelImpl<T>
The base implementation for all model classes. This class should never need to be used directly.
Constructor Summary | |
---|---|
BaseModelImpl()
|
Method Summary | |
---|---|
abstract Object |
clone()
Creates a shallow clone of this model instance. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
protected Locale |
getLocale(String languageId)
|
Map<String,Object> |
getModelAttributes()
|
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. |
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()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.liferay.portal.model.BaseModel |
---|
getPrimaryKeyObj, setPrimaryKeyObj, toXmlString |
Methods inherited from interface com.liferay.portal.model.ClassedModel |
---|
getModelClass, getModelClassName |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public BaseModelImpl()
Method Detail |
---|
public abstract Object clone()
BaseModel
clone
in interface BaseModel<T>
clone
in class Object
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<T>
getExpandoBridge
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<T>
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<T>
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<T>
true
if this model instance is escaped;
false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<T>
true
if this model instance does not yet exist in
the database; false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<T>
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<T>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<T>
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<T>
public void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<T>
n
- whether this model instance does not yet exist in the databasepublic CacheModel<T> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<T>
public T toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<T>
AutoEscapeBeanHandler
public T toUnescapedModel()
toUnescapedModel
in interface BaseModel<T>
protected Locale getLocale(String languageId)
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |