public class ExpandoTableWrapper extends BaseModelWrapper<ExpandoTable> implements ExpandoTable, ModelWrapper<ExpandoTable>
This class is a wrapper for ExpandoTable
.
ExpandoTable
,
Serialized Formmodel
TABLE_ID_ACCESSOR
Constructor and Description |
---|
ExpandoTableWrapper(ExpandoTable expandoTable) |
Modifier and Type | Method and Description |
---|---|
Map<String,Function<ExpandoTable,Object>> |
getAttributeGetterFunctions() |
Map<String,BiConsumer<ExpandoTable,Object>> |
getAttributeSetterBiConsumers() |
String |
getClassName()
Returns the fully qualified class name of this expando table.
|
long |
getClassNameId()
Returns the class name ID of this expando table.
|
long |
getCompanyId()
Returns the company ID of this expando table.
|
long |
getCtCollectionId()
Returns the ct collection ID of this expando table.
|
Map<String,Object> |
getModelAttributes() |
long |
getMvccVersion()
Returns the mvcc version of this expando table.
|
String |
getName()
Returns the name of this expando table.
|
long |
getPrimaryKey()
Returns the primary key of this expando table.
|
long |
getTableId()
Returns the table ID of this expando table.
|
boolean |
isDefaultTable() |
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 expando table.
|
void |
setCompanyId(long companyId)
Sets the company ID of this expando table.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this expando table.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this expando table.
|
void |
setName(String name)
Sets the name of this expando table.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this expando table.
|
void |
setTableId(long tableId)
Sets the table ID of this expando table.
|
protected ExpandoTableWrapper |
wrap(ExpandoTable expandoTable) |
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 ExpandoTableWrapper(ExpandoTable expandoTable)
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<ExpandoTable>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ExpandoTable>
public String getClassName()
getClassName
in interface ExpandoTableModel
getClassName
in interface TypedModel
public long getClassNameId()
getClassNameId
in interface ExpandoTableModel
getClassNameId
in interface TypedModel
public long getCompanyId()
getCompanyId
in interface ExpandoTableModel
getCompanyId
in interface ShardedModel
public long getCtCollectionId()
getCtCollectionId
in interface ExpandoTableModel
getCtCollectionId
in interface CTModel<ExpandoTable>
public long getMvccVersion()
getMvccVersion
in interface ExpandoTableModel
getMvccVersion
in interface MVCCModel
public String getName()
getName
in interface ExpandoTableModel
public long getPrimaryKey()
getPrimaryKey
in interface ExpandoTableModel
getPrimaryKey
in interface CTModel<ExpandoTable>
public long getTableId()
getTableId
in interface ExpandoTableModel
public boolean isDefaultTable()
isDefaultTable
in interface ExpandoTable
public void persist()
PersistedModel
persist
in interface PersistedModel
public void setClassName(String className)
setClassName
in interface ExpandoTableModel
public void setClassNameId(long classNameId)
setClassNameId
in interface ExpandoTableModel
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this expando tablepublic void setCompanyId(long companyId)
setCompanyId
in interface ExpandoTableModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this expando tablepublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId
in interface ExpandoTableModel
setCtCollectionId
in interface CTModel<ExpandoTable>
ctCollectionId
- the ct collection ID of this expando tablepublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface ExpandoTableModel
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this expando tablepublic void setName(String name)
setName
in interface ExpandoTableModel
name
- the name of this expando tablepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ExpandoTableModel
setPrimaryKey
in interface CTModel<ExpandoTable>
primaryKey
- the primary key of this expando tablepublic void setTableId(long tableId)
setTableId
in interface ExpandoTableModel
tableId
- the table ID of this expando tablepublic Map<String,Function<ExpandoTable,Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions
in interface BaseModel<ExpandoTable>
public Map<String,BiConsumer<ExpandoTable,Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers
in interface BaseModel<ExpandoTable>
protected ExpandoTableWrapper wrap(ExpandoTable expandoTable)
wrap
in class BaseModelWrapper<ExpandoTable>