|
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.ClassNameWrapper
public class ClassNameWrapper
This class is a wrapper for ClassName
.
ClassName
,
Serialized FormConstructor 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 |
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 |
getWrappedClassName()
Deprecated. Renamed to getWrappedModel() |
ClassName |
getWrappedModel()
|
int |
hashCode()
|
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 |
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(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 |
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 ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<ClassName>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ClassName>
public long getPrimaryKey()
getPrimaryKey
in interface ClassNameModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ClassNameModel
primaryKey
- the primary key of this class namepublic String getClassName()
getClassName
in interface ClassNameModel
public void setClassName(String className)
setClassName
in interface ClassNameModel
public long getClassNameId()
getClassNameId
in interface ClassNameModel
public void setClassNameId(long classNameId)
setClassNameId
in interface ClassNameModel
classNameId
- the class name ID of this class namepublic String getValue()
getValue
in interface ClassNameModel
public void setValue(String value)
setValue
in interface ClassNameModel
value
- the value of this class namepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<ClassName>
isNew
in interface ClassNameModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<ClassName>
setNew
in interface ClassNameModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<ClassName>
isCachedModel
in interface ClassNameModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<ClassName>
setCachedModel
in interface ClassNameModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<ClassName>
isEscapedModel
in interface ClassNameModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ClassName>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface ClassNameModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<ClassName>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface ClassNameModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ClassName>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface ClassNameModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ClassName>
setExpandoBridgeAttributes
in interface ClassNameModel
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<ClassName>
clone
in interface ClassNameModel
clone
in class Object
public int compareTo(ClassName className)
compareTo
in interface ClassNameModel
compareTo
in interface Comparable<ClassName>
public int hashCode()
hashCode
in interface ClassNameModel
hashCode
in class Object
public CacheModel<ClassName> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<ClassName>
toCacheModel
in interface ClassNameModel
public ClassName toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<ClassName>
toEscapedModel
in interface ClassNameModel
AutoEscapeBeanHandler
public ClassName toUnescapedModel()
toUnescapedModel
in interface BaseModel<ClassName>
toUnescapedModel
in interface ClassNameModel
public String toString()
toString
in interface ClassNameModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ClassName>
toXmlString
in interface ClassNameModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic boolean equals(Object obj)
equals
in class Object
public ClassName getWrappedClassName()
getWrappedModel()
public ClassName getWrappedModel()
getWrappedModel
in interface ModelWrapper<ClassName>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<ClassName>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |