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

public Class ComplexValueForeignKeyImpl

extends ComplexValueForeignKey
Class Inheritance
Imports
io.github.spannm.jackcess.Column, .Database, .DateTimeType, .Row, io.github.spannm.jackcess.complex.Attachment, .AttachmentColumnInfo, .ComplexColumnInfo, .ComplexDataType, .ComplexValue, .ComplexValueForeignKey, .MultiValueColumnInfo, .SingleValue, .UnsupportedColumnInfo, .UnsupportedValue, .Version, .VersionHistoryColumnInfo, java.io.IOException, java.time.LocalDateTime, java.util.Date, .List, .Map, .Objects

Value which is returned for a complex column. This value corresponds to a foreign key in a secondary table which contains the actual complex data for this row (which could be 0 or more complex values for a given row). This class contains various convenience methods for interacting with the actual complex values.

This class will cache the associated complex values returned from one of the lookup methods. The various modification methods will clear this cache automatically. The reset method may be called manually to clear this internal cache.

Field Summary

Modifier and TypeField and Description
private final transient Column
private final int
private transient List<? extends ComplexValue>
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Attachment
public Attachment
addAttachment(String url, String name, String type, byte[] data, Date timeStamp, Integer flags)

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.addAttachment.

Deprecated see DateTimeType for details

public Attachment
private Attachment
addAttachmentImpl(String url, String name, String type, byte[] data, Object timeStamp, Integer flags)

public Attachment
public Attachment
addEncodedAttachment(String url, String name, String type, byte[] encodedData, Date timeStamp, Integer flags)

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.addEncodedAttachment.

Deprecated see DateTimeType for details

public Attachment
private Attachment
addEncodedAttachmentImpl(String url, String name, String type, byte[] encodedData, Object timeStamp, Integer flags)

public SingleValue
public UnsupportedValue
public Version
public Version
addVersion(String value, Date modifiedDate)

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.addVersion.

Deprecated see DateTimeType for details

public Version
private Version
addVersionImpl(String value, Object modifiedDate)

public int
public void
public Attachment
public SingleValue
public UnsupportedValue
public boolean
equals(Object o)

Overrides io.github.spannm.jackcess.complex.ComplexValueForeignKey.equals.

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

public int
protected AttachmentColumnInfo
public List<Attachment>
public Column
protected ComplexColumnInfo<? extends ComplexValue>
public ComplexDataType
protected MultiValueColumnInfo
public List<SingleValue>
public List<Row>
protected UnsupportedColumnInfo
public List<UnsupportedValue>
public List<? extends ComplexValue>
protected VersionHistoryColumnInfo
public List<Version>
public int
hashCode()

Overrides io.github.spannm.jackcess.complex.ComplexValueForeignKey.hashCode.

Returns a hash code value for this object.

private Object
now()

public void
public Attachment
public SingleValue
public UnsupportedValue
Inherited from io.github.spannm.jackcess.complex.ComplexValueForeignKey:
byteValuedoubleValuefloatValueintValuelongValueshortValuetoStringwriteReplace

Field Detail

mcolumnback to summary
private final transient Column mcolumn
mvalueback to summary
private final int mvalue
mvaluesback to summary
private transient List<? extends ComplexValue> mvalues
serialVersionUIDback to summary
private static final long serialVersionUID

Hides io.github.spannm.jackcess.complex.ComplexValueForeignKey.serialVersionUID.

Constructor Detail

ComplexValueForeignKeyImplback to summary
public ComplexValueForeignKeyImpl(Column column, int value)

Method Detail

addAttachmentback to summary
public Attachment addAttachment(byte[] data) throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.addAttachment.

Annotations
@Override
addAttachmentback to summary
public Attachment addAttachment(String url, String name, String type, byte[] data, Date timeStamp, Integer flags) throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.addAttachment.

Deprecated

see DateTimeType for details

Annotations
@Override
@Deprecated
addAttachmentback to summary
public Attachment addAttachment(String url, String name, String type, byte[] data, LocalDateTime timeStamp, Integer flags) throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.addAttachment.

Annotations
@Override
addAttachmentImplback to summary
private Attachment addAttachmentImpl(String url, String name, String type, byte[] data, Object timeStamp, Integer flags) throws IOException
addEncodedAttachmentback to summary
public Attachment addEncodedAttachment(byte[] encodedData) throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.addEncodedAttachment.

Annotations
@Override
addEncodedAttachmentback to summary
public Attachment addEncodedAttachment(String url, String name, String type, byte[] encodedData, Date timeStamp, Integer flags) throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.addEncodedAttachment.

Deprecated

see DateTimeType for details

Annotations
@Override
@Deprecated
addEncodedAttachmentback to summary
public Attachment addEncodedAttachment(String url, String name, String type, byte[] encodedData, LocalDateTime timeStamp, Integer flags) throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.addEncodedAttachment.

Annotations
@Override
addEncodedAttachmentImplback to summary
private Attachment addEncodedAttachmentImpl(String url, String name, String type, byte[] encodedData, Object timeStamp, Integer flags) throws IOException
addMultiValueback to summary
public SingleValue addMultiValue(Object value) throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.addMultiValue.

Annotations
@Override
addUnsupportedValueback to summary
public UnsupportedValue addUnsupportedValue(Map<String, ?> values) throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.addUnsupportedValue.

Annotations
@Override
addVersionback to summary
public Version addVersion(String value) throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.addVersion.

Annotations
@Override
addVersionback to summary
public Version addVersion(String value, Date modifiedDate) throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.addVersion.

Deprecated

see DateTimeType for details

Annotations
@Override
@Deprecated
addVersionback to summary
public Version addVersion(String value, LocalDateTime modifiedDate) throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.addVersion.

Annotations
@Override
addVersionImplback to summary
private Version addVersionImpl(String value, Object modifiedDate) throws IOException
countValuesback to summary
public int countValues() throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.countValues.

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

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.deleteAllValues.

Annotations
@Override
deleteAttachmentback to summary
public Attachment deleteAttachment(Attachment attachment) throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.deleteAttachment.

Annotations
@Override
deleteMultiValueback to summary
public SingleValue deleteMultiValue(SingleValue value) throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.deleteMultiValue.

Annotations
@Override
deleteUnsupportedValueback to summary
public UnsupportedValue deleteUnsupportedValue(UnsupportedValue value) throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.deleteUnsupportedValue.

Annotations
@Override
equalsback to summary
public boolean equals(Object o)

Overrides io.github.spannm.jackcess.complex.ComplexValueForeignKey.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
getback to summary
public int get()

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.get.

Annotations
@Override
getAttachmentInfoback to summary
protected AttachmentColumnInfo getAttachmentInfo()
getAttachmentsback to summary
public List<Attachment> getAttachments() throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.getAttachments.

Annotations
@Override
@SuppressWarnings:unchecked
getColumnback to summary
public Column getColumn()

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.getColumn.

Annotations
@Override
getComplexInfoback to summary
protected ComplexColumnInfo<? extends ComplexValue> getComplexInfo()
getComplexTypeback to summary
public ComplexDataType getComplexType()

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.getComplexType.

Annotations
@Override
getMultiValueInfoback to summary
protected MultiValueColumnInfo getMultiValueInfo()
getMultiValuesback to summary
public List<SingleValue> getMultiValues() throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.getMultiValues.

Annotations
@Override
@SuppressWarnings:unchecked
getRawValuesback to summary
public List<Row> getRawValues() throws IOException
getUnsupportedInfoback to summary
protected UnsupportedColumnInfo getUnsupportedInfo()
getUnsupportedValuesback to summary
public List<UnsupportedValue> getUnsupportedValues() throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.getUnsupportedValues.

Annotations
@Override
@SuppressWarnings:unchecked
getValuesback to summary
public List<? extends ComplexValue> getValues() throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.getValues.

Annotations
@Override
getVersionInfoback to summary
protected VersionHistoryColumnInfo getVersionInfo()
getVersionsback to summary
public List<Version> getVersions() throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.getVersions.

Annotations
@Override
@SuppressWarnings:unchecked
hashCodeback to summary
public int hashCode()

Overrides io.github.spannm.jackcess.complex.ComplexValueForeignKey.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
nowback to summary
private Object now()
resetback to summary
public void reset()

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.reset.

Annotations
@Override
updateAttachmentback to summary
public Attachment updateAttachment(Attachment attachment) throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.updateAttachment.

Annotations
@Override
updateMultiValueback to summary
public SingleValue updateMultiValue(SingleValue value) throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.updateMultiValue.

Annotations
@Override
updateUnsupportedValueback to summary
public UnsupportedValue updateUnsupportedValue(UnsupportedValue value) throws IOException

Implements abstract io.github.spannm.jackcess.complex.ComplexValueForeignKey.updateUnsupportedValue.

Annotations
@Override