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

public abstract Class ComplexColumnInfoImpl<V extends ComplexValue>

extends Object
implements ComplexColumnInfo<V extends ComplexValue>
Class Inheritance
All Implemented Interfaces
io.github.spannm.jackcess.complex.ComplexColumnInfo
Known Direct Subclasses
io.github.spannm.jackcess.impl.complex.MultiValueColumnInfoImpl, io.github.spannm.jackcess.impl.complex.UnsupportedColumnInfoImpl, io.github.spannm.jackcess.impl.complex.VersionHistoryColumnInfoImpl, io.github.spannm.jackcess.impl.complex.AttachmentColumnInfoImpl
Imports
io.github.spannm.jackcess.Column, .DataType, .Database, .IndexCursor, .Row, .RowId, .Table, io.github.spannm.jackcess.complex.ComplexColumnInfo, .ComplexDataType, .ComplexValue, .ComplexValueForeignKey, io.github.spannm.jackcess.impl.ColumnImpl, .TableImpl, io.github.spannm.jackcess.util.ToStringBuilder, java.io.IOException, java.util.ArrayList, .Collection, .Collections, .Iterator, .List, .Map, .Objects

Base class for the additional information tracked for complex columns.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
ComplexColumnInfoImpl.ComplexValueIdImpl

Implementation of ComplexValue.Id.

protected abstract static class

Field Summary

Modifier and TypeField and Description
public static final ComplexValueForeignKey
public static final ComplexValue.Id
private static final int
private final Column
private final int
private final Column
private final Table
private IndexCursor
private final Column
private final List<Column>

Constructor Summary

AccessConstructor and Description
protected
ComplexColumnInfoImpl(Column column, int complexTypeId, Table typeObjTable, Table flatTable)

Method Summary

Modifier and TypeMethod and Description
public ComplexValue.Id
public ComplexValue.Id
public void
protected Object[]
asRow(Object[] row, V value)

public int
public void
public void
public void
private void
public void
public void
protected static void
diffFlatColumns(Table typeObjTable, Table flatTable, List<Column> typeCols, List<Column> otherCols)

public Column
private Iterator<Row>
getComplexValFkIter(int complexValueFk, Collection<String> columnNames)

public Column
public Database
public Column
public List<Row>
public List<Row>
public abstract ComplexDataType
protected List<Column>
protected ComplexColumnInfoImpl.ComplexValueIdImpl
protected ComplexColumnInfoImpl.ComplexValueIdImpl
public List<V>
private Object[]
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

protected abstract V
toValue(ComplexValueForeignKey complexValueFk, Row rawValues)

protected List<V>
toValues(ComplexValueForeignKey complexValueFk, List<Row> rawValues)

public ComplexValue.Id
private void
public ComplexValue.Id
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

INVALID_FKback to summary
public static final ComplexValueForeignKey INVALID_FK
INVALID_IDback to summary
public static final ComplexValue.Id INVALID_ID
INVALID_ID_VALUEback to summary
private static final int INVALID_ID_VALUE
mcolumnback to summary
private final Column mcolumn
mcomplexTypeIdback to summary
private final int mcomplexTypeId
mcomplexValFkColback to summary
private final Column mcomplexValFkCol
mflatTableback to summary
private final Table mflatTable
momplexValIdCursorback to summary
private IndexCursor momplexValIdCursor
mpkColback to summary
private final Column mpkCol
mtypeColsback to summary
private final List<Column> mtypeCols

Constructor Detail

ComplexColumnInfoImplback to summary
protected ComplexColumnInfoImpl(Column column, int complexTypeId, Table typeObjTable, Table flatTable) throws IOException

Method Detail

addRawValueback to summary
public ComplexValue.Id addRawValue(Map<String, ?> rawValue) throws IOException

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

Annotations
@Override
addValueback to summary
public ComplexValue.Id addValue(V value) throws IOException

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

Annotations
@Override
addValuesback to summary
public void addValues(Collection<? extends V> values) throws IOException

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

Annotations
@Override
asRowback to summary
protected Object[] asRow(Object[] row, V value) throws IOException
countValuesback to summary
public int countValues(int complexValueFk) throws IOException

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

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

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

Annotations
@Override
deleteAllValuesback to summary
public void deleteAllValues(ComplexValueForeignKey complexValueFk) throws IOException

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

Annotations
@Override
deleteRawValueback to summary
public void deleteRawValue(Row rawValue) throws IOException

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

Annotations
@Override
deleteRowback to summary
private void deleteRow(RowId rowId) throws IOException
deleteValueback to summary
public void deleteValue(V value) throws IOException

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

Annotations
@Override
deleteValuesback to summary
public void deleteValues(Collection<? extends V> values) throws IOException

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

Annotations
@Override
diffFlatColumnsback to summary
protected static void diffFlatColumns(Table typeObjTable, Table flatTable, List<Column> typeCols, List<Column> otherCols)
getColumnback to summary
public Column getColumn()
getComplexValFkIterback to summary
private Iterator<Row> getComplexValFkIter(int complexValueFk, Collection<String> columnNames) throws IOException
getComplexValueForeignKeyColumnback to summary
public Column getComplexValueForeignKeyColumn()
getDatabaseback to summary
public Database getDatabase()
getPrimaryKeyColumnback to summary
public Column getPrimaryKeyColumn()
getRawValuesback to summary
public List<Row> getRawValues(int complexValueFk) throws IOException

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

Annotations
@Override
getRawValuesback to summary
public List<Row> getRawValues(int complexValueFk, Collection<String> columnNames) throws IOException

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

Annotations
@Override
getTypeback to summary
public abstract ComplexDataType getType()

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

Annotations
@Override
getTypeColumnsback to summary
protected List<Column> getTypeColumns()
getValueIdback to summary
protected ComplexColumnInfoImpl.ComplexValueIdImpl getValueId(Row row)
getValueIdback to summary
protected ComplexColumnInfoImpl.ComplexValueIdImpl getValueId(Object[] row)
getValuesback to summary
public List<V> getValues(ComplexValueForeignKey complexValueFk) throws IOException

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

Annotations
@Override
newRowArrayback to summary
private Object[] newRowArray()
postTableLoadInitback to summary
public void postTableLoadInit() throws IOException
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
toValueback to summary
protected abstract V toValue(ComplexValueForeignKey complexValueFk, Row rawValues)
toValuesback to summary
protected List<V> toValues(ComplexValueForeignKey complexValueFk, List<Row> rawValues) throws IOException
updateRawValueback to summary
public ComplexValue.Id updateRawValue(Row rawValue) throws IOException

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

Annotations
@Override
updateRowback to summary
private void updateRow(ComplexValue.Id id, Object[] row) throws IOException
updateValueback to summary
public ComplexValue.Id updateValue(V value) throws IOException

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

Annotations
@Override
updateValuesback to summary
public void updateValues(Collection<? extends V> values) throws IOException

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

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

private final Class ComplexColumnInfoImpl.ComplexValueIdImpl

extends Id
Class Inheritance

Implementation of ComplexValue.Id.

Field Summary

Modifier and TypeField and Description
private final RowId
private static final long
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
ComplexValueIdImpl(int value, RowId rowId)

Method Summary

Modifier and TypeMethod and Description
public int
get()

Implements abstract io.github.spannm.jackcess.complex.ComplexValue.Id.get.

Returns the unique identifier of this complex value (this value is unique among all values in all rows of the main table for the complex column).

public RowId
getRowId()

Implements abstract io.github.spannm.jackcess.complex.ComplexValue.Id.getRowId.

Returns the rowId of this ComplexValue within the secondary table.

Inherited from io.github.spannm.jackcess.complex.ComplexValue.Id:
byteValuedoubleValueequalsfloatValuehashCodeintValuelongValueshortValuetoStringwriteReplace

Field Detail

rowIdback to summary
private final RowId rowId
serialVersionUIDback to summary
private static final long serialVersionUID

Hides io.github.spannm.jackcess.complex.ComplexValue.Id.serialVersionUID.

valueback to summary
private final int value

Constructor Detail

ComplexValueIdImplback to summary
pack-priv ComplexValueIdImpl(int value, RowId rowId)

Method Detail

getback to summary
public int get()

Implements abstract io.github.spannm.jackcess.complex.ComplexValue.Id.get.

Doc from io.github.spannm.jackcess.complex.ComplexValue.Id.get.

Returns the unique identifier of this complex value (this value is unique among all values in all rows of the main table for the complex column).

Annotations
@Override
getRowIdback to summary
public RowId getRowId()

Implements abstract io.github.spannm.jackcess.complex.ComplexValue.Id.getRowId.

Doc from io.github.spannm.jackcess.complex.ComplexValue.Id.getRowId.

Returns the rowId of this ComplexValue within the secondary table.

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

protected abstract Class ComplexColumnInfoImpl.ComplexValueImpl

extends Object
implements ComplexValue
Class Inheritance
  • java.lang.Object
  • io.github.spannm.jackcess.impl.complex.ComplexColumnInfoImpl.ComplexValueImpl
All Implemented Interfaces
io.github.spannm.jackcess.complex.ComplexValue
Known Direct Subclasses
io.github.spannm.jackcess.impl.complex.MultiValueColumnInfoImpl.SingleValueImpl, io.github.spannm.jackcess.impl.complex.UnsupportedColumnInfoImpl.UnsupportedValueImpl, io.github.spannm.jackcess.impl.complex.VersionHistoryColumnInfoImpl.VersionImpl, io.github.spannm.jackcess.impl.complex.AttachmentColumnInfoImpl.AttachmentImpl

Field Summary

Modifier and TypeField and Description
private ComplexValueForeignKey
private ComplexValue.Id

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object o)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

public Column
getColumn()

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

Returns the column in the main table with which this complex value is associated.

public ComplexValueForeignKey
getComplexValueForeignKey()

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

Returns the foreign key identifier for this complex value (this value is the same for all values in the same row of the main table).

public ComplexValue.Id
getId()

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

Returns the unique identifier of this complex value (this value is unique among all values in all rows of the main table).

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public void
public void
setId(ComplexValue.Id id)

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

Called once when a new ComplexValue is saved to set the new unique identifier.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

complexValueFkback to summary
private ComplexValueForeignKey complexValueFk
idback to summary
private ComplexValue.Id id

Constructor Detail

ComplexValueImplback to summary
protected ComplexValueImpl(ComplexValue.Id id, ComplexValueForeignKey complexValueFk)

Method Detail

equalsback to summary
public boolean equals(Object o)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Annotations
@Override
getColumnback to summary
public Column getColumn()

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

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

Returns the column in the main table with which this complex value is associated.

Annotations
@Override
getComplexValueForeignKeyback to summary
public ComplexValueForeignKey getComplexValueForeignKey()

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

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

Returns the foreign key identifier for this complex value (this value is the same for all values in the same row of the main table).

Annotations
@Override
getIdback to summary
public ComplexValue.Id getId()

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

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

Returns the unique identifier of this complex value (this value is unique among all values in all rows of the main table).

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Annotations
@Override
setComplexValueForeignKeyback to summary
public void setComplexValueForeignKey(ComplexValueForeignKey newComplexValueFk)

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

Annotations
@Override
setIdback to summary
public void setId(ComplexValue.Id id)

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

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

Called once when a new ComplexValue is saved to set the new unique identifier.

Annotations
@Override