public class ExpandoColumnWrapper extends BaseModelWrapper<ExpandoColumn> implements ExpandoColumn, ModelWrapper<ExpandoColumn>
This class is a wrapper for ExpandoColumn
.
ExpandoColumn
,
Serialized Formmodel
COLUMN_ID_ACCESSOR
Constructor and Description |
---|
ExpandoColumnWrapper(ExpandoColumn expandoColumn) |
Modifier and Type | Method and Description |
---|---|
Map<String,Function<ExpandoColumn,Object>> |
getAttributeGetterFunctions() |
Map<String,BiConsumer<ExpandoColumn,Object>> |
getAttributeSetterBiConsumers() |
long |
getColumnId()
Returns the column ID of this expando column.
|
long |
getCompanyId()
Returns the company ID of this expando column.
|
long |
getCtCollectionId()
Returns the ct collection ID of this expando column.
|
String |
getDefaultData()
Returns the default data of this expando column.
|
Serializable |
getDefaultValue() |
String |
getDisplayName(Locale locale) |
Map<String,Object> |
getModelAttributes() |
long |
getMvccVersion()
Returns the mvcc version of this expando column.
|
String |
getName()
Returns the name of this expando column.
|
long |
getPrimaryKey()
Returns the primary key of this expando column.
|
long |
getTableId()
Returns the table ID of this expando column.
|
int |
getType()
Returns the type of this expando column.
|
String |
getTypeSettings()
Returns the type settings of this expando column.
|
UnicodeProperties |
getTypeSettingsProperties() |
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
setColumnId(long columnId)
Sets the column ID of this expando column.
|
void |
setCompanyId(long companyId)
Sets the company ID of this expando column.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this expando column.
|
void |
setDefaultData(String defaultData)
Sets the default data of this expando column.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this expando column.
|
void |
setName(String name)
Sets the name of this expando column.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this expando column.
|
void |
setTableId(long tableId)
Sets the table ID of this expando column.
|
void |
setType(int type)
Sets the type of this expando column.
|
void |
setTypeSettings(String typeSettings)
Sets the type settings of this expando column.
|
void |
setTypeSettingsProperties(UnicodeProperties typeSettingsUnicodeProperties) |
protected ExpandoColumnWrapper |
wrap(ExpandoColumn expandoColumn) |
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, toXmlString
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
getModelClass, getModelClassName
getWrappedModel
public ExpandoColumnWrapper(ExpandoColumn expandoColumn)
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<ExpandoColumn>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ExpandoColumn>
public long getColumnId()
getColumnId
in interface ExpandoColumnModel
public long getCompanyId()
getCompanyId
in interface ExpandoColumnModel
getCompanyId
in interface ShardedModel
public long getCtCollectionId()
getCtCollectionId
in interface ExpandoColumnModel
getCtCollectionId
in interface CTModel<ExpandoColumn>
public String getDefaultData()
getDefaultData
in interface ExpandoColumnModel
public Serializable getDefaultValue()
getDefaultValue
in interface ExpandoColumn
public String getDisplayName(Locale locale)
getDisplayName
in interface ExpandoColumn
public long getMvccVersion()
getMvccVersion
in interface ExpandoColumnModel
getMvccVersion
in interface MVCCModel
public String getName()
getName
in interface ExpandoColumnModel
public long getPrimaryKey()
getPrimaryKey
in interface ExpandoColumnModel
getPrimaryKey
in interface CTModel<ExpandoColumn>
public long getTableId()
getTableId
in interface ExpandoColumnModel
public int getType()
getType
in interface ExpandoColumnModel
public String getTypeSettings()
getTypeSettings
in interface ExpandoColumnModel
public UnicodeProperties getTypeSettingsProperties()
getTypeSettingsProperties
in interface ExpandoColumn
public void persist()
PersistedModel
persist
in interface PersistedModel
public void setColumnId(long columnId)
setColumnId
in interface ExpandoColumnModel
columnId
- the column ID of this expando columnpublic void setCompanyId(long companyId)
setCompanyId
in interface ExpandoColumnModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this expando columnpublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId
in interface ExpandoColumnModel
setCtCollectionId
in interface CTModel<ExpandoColumn>
ctCollectionId
- the ct collection ID of this expando columnpublic void setDefaultData(String defaultData)
setDefaultData
in interface ExpandoColumnModel
defaultData
- the default data of this expando columnpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface ExpandoColumnModel
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this expando columnpublic void setName(String name)
setName
in interface ExpandoColumnModel
name
- the name of this expando columnpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ExpandoColumnModel
setPrimaryKey
in interface CTModel<ExpandoColumn>
primaryKey
- the primary key of this expando columnpublic void setTableId(long tableId)
setTableId
in interface ExpandoColumnModel
tableId
- the table ID of this expando columnpublic void setType(int type)
setType
in interface ExpandoColumnModel
type
- the type of this expando columnpublic void setTypeSettings(String typeSettings)
setTypeSettings
in interface ExpandoColumnModel
typeSettings
- the type settings of this expando columnpublic void setTypeSettingsProperties(UnicodeProperties typeSettingsUnicodeProperties)
setTypeSettingsProperties
in interface ExpandoColumn
public Map<String,Function<ExpandoColumn,Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions
in interface BaseModel<ExpandoColumn>
public Map<String,BiConsumer<ExpandoColumn,Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers
in interface BaseModel<ExpandoColumn>
protected ExpandoColumnWrapper wrap(ExpandoColumn expandoColumn)
wrap
in class BaseModelWrapper<ExpandoColumn>