APIdia Launch Partner
Top Description Inners Fields Constructors Methods
io.github.spannm.jackcess.impl.complex

public final Class VersionHistoryColumnInfoImpl

extends ComplexColumnInfoImpl<Version>
implements VersionHistoryColumnInfo
Class Inheritance
All Implemented Interfaces
io.github.spannm.jackcess.complex.VersionHistoryColumnInfo, io.github.spannm.jackcess.complex.ComplexColumnInfo
Imports
io.github.spannm.jackcess.Column, .DateTimeType, .Row, .Table, io.github.spannm.jackcess.complex.ComplexDataType, .ComplexValue, .ComplexValueForeignKey, .Version, .VersionHistoryColumnInfo, io.github.spannm.jackcess.impl.ColumnImpl, io.github.spannm.jackcess.util.ToStringBuilder, java.io.IOException, java.time.LocalDateTime, java.util.Collections, .Date, .List

Complex column info for a column which tracking the version history of an "append only" memo column.

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.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final Column
private final Column
Inherited from io.github.spannm.jackcess.impl.complex.ComplexColumnInfoImpl:
INVALID_FKINVALID_ID

Constructor Summary

AccessConstructor and Description
public
VersionHistoryColumnInfoImpl(Column column, int complexId, Table typeObjTable, Table flatTable)

Method Summary

Modifier and TypeMethod and Description
protected Object[]
public void
public void
public Column
public ComplexDataType
public Column
public static Version
newVersion(String value, Object modifiedDate)

public static Version
newVersion(ComplexValueForeignKey complexValueFk, String value, Object modifiedDate)

public void
protected VersionHistoryColumnInfoImpl.VersionImpl
protected List<Version>
public ComplexValue.Id
Inherited from io.github.spannm.jackcess.impl.complex.ComplexColumnInfoImpl:
addRawValueaddValueaddValuescountValuesdeleteAllValuesdeleteRawValuedeleteValuesdiffFlatColumnsgetColumngetComplexValueForeignKeyColumngetDatabasegetPrimaryKeyColumngetRawValuesgetRawValuesgetTypeColumnsgetValueIdgetValueIdgetValuestoStringupdateRawValueupdateValues

Field Detail

mmodifiedColback to summary
private final Column mmodifiedCol
mvalueColback to summary
private final Column mvalueCol

Constructor Detail

VersionHistoryColumnInfoImplback to summary
public VersionHistoryColumnInfoImpl(Column column, int complexId, Table typeObjTable, Table flatTable) throws IOException

Method Detail

asRowback to summary
protected Object[] asRow(Object[] row, Version version) throws IOException

Overrides io.github.spannm.jackcess.impl.complex.ComplexColumnInfoImpl.asRow.

Annotations
@Override
deleteAllValuesback to summary
public void deleteAllValues(int complexValueFk)

Overrides io.github.spannm.jackcess.impl.complex.ComplexColumnInfoImpl.deleteAllValues.

Implements io.github.spannm.jackcess.complex.ComplexColumnInfo.deleteAllValues.

Annotations
@Override
deleteValueback to summary
public void deleteValue(Version value)

Overrides io.github.spannm.jackcess.impl.complex.ComplexColumnInfoImpl.deleteValue.

Implements io.github.spannm.jackcess.complex.ComplexColumnInfo.deleteValue.

Annotations
@Override
getModifiedDateColumnback to summary
public Column getModifiedDateColumn()
getTypeback to summary
public ComplexDataType getType()

Implements abstract io.github.spannm.jackcess.impl.complex.ComplexColumnInfoImpl.getType.

Implements io.github.spannm.jackcess.complex.ComplexColumnInfo.getType.

Annotations
@Override
getValueColumnback to summary
public Column getValueColumn()
newVersionback to summary
public static Version newVersion(String value, Object modifiedDate)
newVersionback to summary
public static Version newVersion(ComplexValueForeignKey complexValueFk, String value, Object modifiedDate)
postTableLoadInitback to summary
public void postTableLoadInit() throws IOException

Overrides io.github.spannm.jackcess.impl.complex.ComplexColumnInfoImpl.postTableLoadInit.

Annotations
@Override
toValueback to summary
protected VersionHistoryColumnInfoImpl.VersionImpl toValue(ComplexValueForeignKey complexValueFk, Row rawValue)

Implements abstract io.github.spannm.jackcess.impl.complex.ComplexColumnInfoImpl.toValue.

Annotations
@Override
toValuesback to summary
protected List<Version> toValues(ComplexValueForeignKey complexValueFk, List<Row> rawValues) throws IOException

Overrides io.github.spannm.jackcess.impl.complex.ComplexColumnInfoImpl.toValues.

Annotations
@Override
updateValueback to summary
public ComplexValue.Id updateValue(Version value)

Overrides io.github.spannm.jackcess.impl.complex.ComplexColumnInfoImpl.updateValue.

Implements io.github.spannm.jackcess.complex.ComplexColumnInfo.updateValue.

Annotations
@Override
io.github.spannm.jackcess.impl.complex back to summary

private final Class VersionHistoryColumnInfoImpl.VersionImpl

extends ComplexValueImpl
implements Version
Class Inheritance
All Implemented Interfaces
io.github.spannm.jackcess.complex.Version, java.lang.Comparable, io.github.spannm.jackcess.complex.ComplexValue

Field Summary

Modifier and TypeField and Description
private final Object
private final String

Constructor Summary

AccessConstructor and Description
private
VersionImpl(ComplexValue.Id id, ComplexValueForeignKey complexValueFk, String value, Object modifiedDate)

Method Summary

Modifier and TypeMethod and Description
private static <C extends Comparable<C>> int
public int
compareTo(Version o)

Implements java.lang.Comparable.compareTo.

Compares this object with the specified object for order.

public void
delete()

Implements io.github.spannm.jackcess.complex.ComplexValue.delete.

Deletes the data for this complex value from the database.

public Date
public Object
public LocalDateTime
public String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public void
update()

Implements io.github.spannm.jackcess.complex.ComplexValue.update.

Writes any updated data for this complex value to the database.

Inherited from io.github.spannm.jackcess.impl.complex.ComplexColumnInfoImpl.ComplexValueImpl:
equalsgetColumngetComplexValueForeignKeygetIdhashCodesetComplexValueForeignKeysetId

Field Detail

modifiedDateback to summary
private final Object modifiedDate
valueback to summary
private final String value

Constructor Detail

VersionImplback to summary
private VersionImpl(ComplexValue.Id id, ComplexValueForeignKey complexValueFk, String value, Object modifiedDate)

Method Detail

compareback to summary
private static <C extends Comparable<C>> int compare(Object o1, Object o2)
Annotations
@SuppressWarnings:unchecked
compareToback to summary
public int compareTo(Version o)

Implements java.lang.Comparable.compareTo.

Doc from java.lang.Comparable.compareTo.

Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

The implementor must ensure signum(x.compareTo(y)) == -signum(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception if and only if y.compareTo(x) throws an exception.)

The implementor must also ensure that the relation is transitive: (x.compareTo(y) > 0 && y.compareTo(z) > 0) implies x.compareTo(z) > 0.

Finally, the implementor must ensure that x.compareTo(y)==0 implies that signum(x.compareTo(z)) == signum(y.compareTo(z)), for all z.

Annotations
@Override
deleteback to summary
public void delete()

Implements io.github.spannm.jackcess.complex.ComplexValue.delete.

Doc from io.github.spannm.jackcess.complex.ComplexValue.delete.

Deletes the data for this complex value from the database.

Annotations
@Override
getModifiedDateback to summary
public Date getModifiedDate()

Implements io.github.spannm.jackcess.complex.Version.getModifiedDate.

Deprecated

see DateTimeType for details

Annotations
@Override
@Deprecated
getModifiedDateObjectback to summary
public Object getModifiedDateObject()

Implements io.github.spannm.jackcess.complex.Version.getModifiedDateObject.

Annotations
@Override
getModifiedLocalDateback to summary
public LocalDateTime getModifiedLocalDate()

Implements io.github.spannm.jackcess.complex.Version.getModifiedLocalDate.

Annotations
@Override
getValueback to summary
public String getValue()

Implements io.github.spannm.jackcess.complex.Version.getValue.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
updateback to summary
public void update()

Implements io.github.spannm.jackcess.complex.ComplexValue.update.

Doc from io.github.spannm.jackcess.complex.ComplexValue.update.

Writes any updated data for this complex value to the database.

Annotations
@Override