|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.ClassNameWrapper
@ProviderType public class ClassNameWrapper
This class is a wrapper for ClassName.
ClassName,
Serialized Form| Field Summary |
|---|
| Fields inherited from interface com.liferay.portal.model.ClassName |
|---|
CLASS_NAME_ID_ACCESSOR |
| Constructor Summary | |
|---|---|
ClassNameWrapper(ClassName className)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(ClassName className)
|
boolean |
equals(Object obj)
|
String |
getClassName()
Returns the fully qualified class name of this class name. |
long |
getClassNameId()
Returns the class name ID of this class name. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
long |
getMvccVersion()
Returns the mvcc version of this class name. |
long |
getPrimaryKey()
Returns the primary key of this class name. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
String |
getValue()
Returns the value of this class name. |
ClassName |
getWrappedModel()
|
int |
hashCode()
|
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns true if this model's finder cache is enabled. |
boolean |
isNew()
Returns true if this model instance does not yet exist in
the database. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet exist. |
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 |
setClassName(String className)
|
void |
setClassNameId(long classNameId)
Sets the class name ID of this class name. |
void |
setExpandoBridgeAttributes(BaseModel<?> baseModel)
|
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
|
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 |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this class name. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this class name. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setValue(String value)
Sets the value of this class name. |
CacheModel<ClassName> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
ClassName |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
ClassName |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClassNameWrapper(ClassName className)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<ClassName>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<ClassName>public Object clone()
BaseModel
clone in interface BaseModel<ClassName>clone in interface ClassNameModelclone in class Objectpublic int compareTo(ClassName className)
compareTo in interface ClassNameModelcompareTo in interface Comparable<ClassName>public String getClassName()
getClassName in interface ClassNameModelgetClassName in interface TypedModelpublic long getClassNameId()
getClassNameId in interface ClassNameModelgetClassNameId in interface TypedModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<ClassName>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ClassNameModelpublic long getMvccVersion()
getMvccVersion in interface ClassNameModelgetMvccVersion in interface MVCCModelpublic long getPrimaryKey()
getPrimaryKey in interface ClassNameModelpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<ClassName>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ClassNameModelpublic String getValue()
getValue in interface ClassNameModelpublic int hashCode()
hashCode in interface ClassNameModelhashCode in class Objectpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<ClassName>isCachedModel in interface ClassNameModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<ClassName>isEscapedModel in interface ClassNameModeltrue if this model instance is escaped;
false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<ClassName>isNew in interface ClassNameModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void persist()
PersistedModel
persist in interface PersistedModelpublic void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<ClassName>setCachedModel in interface ClassNameModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setClassName(String className)
setClassName in interface ClassNameModelpublic void setClassNameId(long classNameId)
setClassNameId in interface ClassNameModelsetClassNameId in interface TypedModelclassNameId - the class name ID of this class namepublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<ClassName>setExpandoBridgeAttributes in interface ClassNameModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<ClassName>setExpandoBridgeAttributes in interface ClassNameModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<ClassName>setExpandoBridgeAttributes in interface ClassNameModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public void setMvccVersion(long mvccVersion)
setMvccVersion in interface ClassNameModelsetMvccVersion in interface MVCCModelmvccVersion - the mvcc version of this class namepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<ClassName>setNew in interface ClassNameModeln - whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ClassNameModelprimaryKey - the primary key of this class namepublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<ClassName>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ClassNameModelprimaryKeyObj - the primary key of this model instancepublic void setValue(String value)
setValue in interface ClassNameModelvalue - the value of this class namepublic CacheModel<ClassName> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<ClassName>toCacheModel in interface ClassNameModelpublic ClassName toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<ClassName>toEscapedModel in interface ClassNameModelAutoEscapeBeanHandlerpublic String toString()
toString in interface ClassNameModeltoString in class Objectpublic ClassName toUnescapedModel()
toUnescapedModel in interface BaseModel<ClassName>toUnescapedModel in interface ClassNameModelpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<ClassName>toXmlString in interface ClassNameModelpublic boolean equals(Object obj)
equals in class Objectpublic ClassName getWrappedModel()
getWrappedModel in interface ModelWrapper<ClassName>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.
isEntityCacheEnabled in interface BaseModel<ClassName>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.
isFinderCacheEnabled in interface BaseModel<ClassName>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<ClassName>
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||