public class ExpandoRowWrapper extends BaseModelWrapper<ExpandoRow> implements ExpandoRow, ModelWrapper<ExpandoRow>
This class is a wrapper for ExpandoRow
.
ExpandoRow
,
Serialized Formmodel
ROW_ID_ACCESSOR
Constructor and Description |
---|
ExpandoRowWrapper(ExpandoRow expandoRow) |
Modifier and Type | Method and Description |
---|---|
Map<String,Function<ExpandoRow,Object>> |
getAttributeGetterFunctions() |
Map<String,BiConsumer<ExpandoRow,Object>> |
getAttributeSetterBiConsumers() |
long |
getClassPK()
Returns the class pk of this expando row.
|
long |
getCompanyId()
Returns the company ID of this expando row.
|
long |
getCtCollectionId()
Returns the ct collection ID of this expando row.
|
Map<String,Object> |
getModelAttributes() |
Date |
getModifiedDate()
Returns the modified date of this expando row.
|
long |
getMvccVersion()
Returns the mvcc version of this expando row.
|
long |
getPrimaryKey()
Returns the primary key of this expando row.
|
long |
getRowId()
Returns the row ID of this expando row.
|
long |
getTableId()
Returns the table ID of this expando row.
|
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
setClassPK(long classPK)
Sets the class pk of this expando row.
|
void |
setCompanyId(long companyId)
Sets the company ID of this expando row.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this expando row.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this expando row.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this expando row.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this expando row.
|
void |
setRowId(long rowId)
Sets the row ID of this expando row.
|
void |
setTableId(long tableId)
Sets the table ID of this expando row.
|
protected ExpandoRowWrapper |
wrap(ExpandoRow expandoRow) |
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 ExpandoRowWrapper(ExpandoRow expandoRow)
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<ExpandoRow>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ExpandoRow>
public long getClassPK()
getClassPK
in interface ExpandoRowModel
public long getCompanyId()
getCompanyId
in interface ExpandoRowModel
getCompanyId
in interface ShardedModel
public long getCtCollectionId()
getCtCollectionId
in interface ExpandoRowModel
getCtCollectionId
in interface CTModel<ExpandoRow>
public Date getModifiedDate()
getModifiedDate
in interface ExpandoRowModel
public long getMvccVersion()
getMvccVersion
in interface ExpandoRowModel
getMvccVersion
in interface MVCCModel
public long getPrimaryKey()
getPrimaryKey
in interface ExpandoRowModel
getPrimaryKey
in interface CTModel<ExpandoRow>
public long getRowId()
getRowId
in interface ExpandoRowModel
public long getTableId()
getTableId
in interface ExpandoRowModel
public void persist()
PersistedModel
persist
in interface PersistedModel
public void setClassPK(long classPK)
setClassPK
in interface ExpandoRowModel
classPK
- the class pk of this expando rowpublic void setCompanyId(long companyId)
setCompanyId
in interface ExpandoRowModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this expando rowpublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId
in interface ExpandoRowModel
setCtCollectionId
in interface CTModel<ExpandoRow>
ctCollectionId
- the ct collection ID of this expando rowpublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface ExpandoRowModel
modifiedDate
- the modified date of this expando rowpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface ExpandoRowModel
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this expando rowpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ExpandoRowModel
setPrimaryKey
in interface CTModel<ExpandoRow>
primaryKey
- the primary key of this expando rowpublic void setRowId(long rowId)
setRowId
in interface ExpandoRowModel
rowId
- the row ID of this expando rowpublic void setTableId(long tableId)
setTableId
in interface ExpandoRowModel
tableId
- the table ID of this expando rowpublic Map<String,Function<ExpandoRow,Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions
in interface BaseModel<ExpandoRow>
public Map<String,BiConsumer<ExpandoRow,Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers
in interface BaseModel<ExpandoRow>
protected ExpandoRowWrapper wrap(ExpandoRow expandoRow)
wrap
in class BaseModelWrapper<ExpandoRow>