public class ClassNameWrapper extends BaseModelWrapper<ClassName> implements ClassName, ModelWrapper<ClassName>
This class is a wrapper for ClassName
.
ClassName
,
Serialized Formmodel
CLASS_NAME_ID_ACCESSOR
Constructor and Description |
---|
ClassNameWrapper(ClassName className) |
Modifier and Type | Method and Description |
---|---|
ClassName |
cloneWithOriginalValues() |
String |
getClassName()
Returns the fully qualified class name of this class name.
|
long |
getClassNameId()
Returns the class name ID of this class name.
|
Map<String,Object> |
getModelAttributes() |
long |
getMvccVersion()
Returns the mvcc version of this class name.
|
long |
getPrimaryKey()
Returns the primary key of this class name.
|
String |
getValue()
Returns the value of this class name.
|
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
setClassName(String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this class name.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this class name.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this class name.
|
void |
setValue(String value)
Sets the value of this class name.
|
String |
toXmlString() |
protected ClassNameWrapper |
wrap(ClassName className) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
getModelClass, getModelClassName
getWrappedModel
public ClassNameWrapper(ClassName className)
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<ClassName>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ClassName>
public ClassName cloneWithOriginalValues()
cloneWithOriginalValues
in interface BaseModel<ClassName>
cloneWithOriginalValues
in interface ClassNameModel
public String getClassName()
getClassName
in interface ClassNameModel
getClassName
in interface TypedModel
public long getClassNameId()
getClassNameId
in interface ClassNameModel
getClassNameId
in interface TypedModel
public long getMvccVersion()
getMvccVersion
in interface ClassNameModel
getMvccVersion
in interface MVCCModel
public long getPrimaryKey()
getPrimaryKey
in interface ClassNameModel
public String getValue()
getValue
in interface ClassNameModel
public void persist()
PersistedModel
persist
in interface PersistedModel
public void setClassName(String className)
setClassName
in interface ClassNameModel
public void setClassNameId(long classNameId)
setClassNameId
in interface ClassNameModel
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this class namepublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface ClassNameModel
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this class namepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ClassNameModel
primaryKey
- the primary key of this class namepublic void setValue(String value)
setValue
in interface ClassNameModel
value
- the value of this class namepublic String toXmlString()
toXmlString
in interface ClassNameModel
protected ClassNameWrapper wrap(ClassName className)
wrap
in class BaseModelWrapper<ClassName>