public class VersionHistoryColumnInfoImpl extends ComplexColumnInfoImpl<Version> implements VersionHistoryColumnInfo
Note, the strongly typed update/delete methods are not supported for version history columns (the data is supposed to be immutable). That said, the "raw" update/delete methods are supported for those that really want to muck with the version history data.
| Modifier and Type | Class and Description |
|---|---|
private static class |
VersionHistoryColumnInfoImpl.VersionImpl |
ComplexColumnInfoImpl.ComplexValueImpl| Modifier and Type | Field and Description |
|---|---|
private Column |
_modifiedCol |
private Column |
_valueCol |
INVALID_FK, INVALID_ID| Constructor and Description |
|---|
VersionHistoryColumnInfoImpl(Column column,
int complexId,
Table typeObjTable,
Table flatTable) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object[] |
asRow(java.lang.Object[] row,
Version version) |
void |
deleteAllValues(int complexValueFk) |
void |
deleteValue(Version value) |
Column |
getModifiedDateColumn() |
ComplexDataType |
getType() |
Column |
getValueColumn() |
static Version |
newVersion(ComplexValueForeignKey complexValueFk,
java.lang.String value,
java.util.Date modifiedDate) |
static Version |
newVersion(java.lang.String value,
java.util.Date modifiedDate) |
void |
postTableLoadInit() |
protected VersionHistoryColumnInfoImpl.VersionImpl |
toValue(ComplexValueForeignKey complexValueFk,
Row rawValue) |
protected java.util.List<Version> |
toValues(ComplexValueForeignKey complexValueFk,
java.util.List<Row> rawValues) |
ComplexValue.Id |
updateValue(Version value) |
addRawValue, addValue, addValues, countValues, deleteAllValues, deleteRawValue, deleteValues, diffFlatColumns, getColumn, getComplexValueForeignKeyColumn, getDatabase, getPrimaryKeyColumn, getRawValues, getRawValues, getTypeColumns, getValueId, getValueId, getValues, toString, updateRawValue, updateValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddRawValue, addValue, addValues, countValues, deleteAllValues, deleteRawValue, deleteValues, getRawValues, getRawValues, getValues, updateRawValue, updateValuesprivate final Column _valueCol
private final Column _modifiedCol
public void postTableLoadInit()
throws java.io.IOException
postTableLoadInit in class ComplexColumnInfoImpl<Version>java.io.IOExceptionpublic Column getValueColumn()
public Column getModifiedDateColumn()
public ComplexDataType getType()
getType in interface ComplexColumnInfo<Version>getType in class ComplexColumnInfoImpl<Version>public ComplexValue.Id updateValue(Version value) throws java.io.IOException
updateValue in interface ComplexColumnInfo<Version>updateValue in class ComplexColumnInfoImpl<Version>java.io.IOExceptionpublic void deleteValue(Version value) throws java.io.IOException
deleteValue in interface ComplexColumnInfo<Version>deleteValue in class ComplexColumnInfoImpl<Version>java.io.IOExceptionpublic void deleteAllValues(int complexValueFk)
throws java.io.IOException
deleteAllValues in interface ComplexColumnInfo<Version>deleteAllValues in class ComplexColumnInfoImpl<Version>java.io.IOExceptionprotected java.util.List<Version> toValues(ComplexValueForeignKey complexValueFk, java.util.List<Row> rawValues) throws java.io.IOException
toValues in class ComplexColumnInfoImpl<Version>java.io.IOExceptionprotected VersionHistoryColumnInfoImpl.VersionImpl toValue(ComplexValueForeignKey complexValueFk, Row rawValue)
toValue in class ComplexColumnInfoImpl<Version>protected java.lang.Object[] asRow(java.lang.Object[] row,
Version version)
throws java.io.IOException
asRow in class ComplexColumnInfoImpl<Version>java.io.IOExceptionpublic static Version newVersion(java.lang.String value, java.util.Date modifiedDate)
public static Version newVersion(ComplexValueForeignKey complexValueFk, java.lang.String value, java.util.Date modifiedDate)