Class ComplexValueForeignKey
- java.lang.Object
-
- java.lang.Number
-
- com.healthmarketscience.jackcess.complex.ComplexValueForeignKey
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ComplexValueForeignKeyImpl
public abstract class ComplexValueForeignKey extends Number
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.- Author:
- James Ahlborn
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComplexValueForeignKey()
-
Method Summary
-
-
-
Method Detail
-
shortValue
public short shortValue()
- Overrides:
shortValuein classNumber
-
floatValue
public float floatValue()
- Specified by:
floatValuein classNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValuein classNumber
-
get
public abstract int get()
-
getColumn
public abstract Column getColumn()
-
getComplexType
public abstract ComplexDataType getComplexType()
-
countValues
public abstract int countValues() throws IOException- Throws:
IOException
-
getValues
public abstract List<? extends ComplexValue> getValues() throws IOException
- Throws:
IOException
-
getVersions
public abstract List<Version> getVersions() throws IOException
- Throws:
IOException
-
getAttachments
public abstract List<Attachment> getAttachments() throws IOException
- Throws:
IOException
-
getMultiValues
public abstract List<SingleValue> getMultiValues() throws IOException
- Throws:
IOException
-
getUnsupportedValues
public abstract List<UnsupportedValue> getUnsupportedValues() throws IOException
- Throws:
IOException
-
reset
public abstract void reset()
-
addVersion
public abstract Version addVersion(String value) throws IOException
- Throws:
IOException
-
addVersion
@Deprecated public abstract Version addVersion(String value, Date modifiedDate) throws IOException
Deprecated.seeDateTimeTypefor details- Throws:
IOException
-
addVersion
public abstract Version addVersion(String value, LocalDateTime modifiedDate) throws IOException
- Throws:
IOException
-
addAttachment
public abstract Attachment addAttachment(byte[] data) throws IOException
- Throws:
IOException
-
addAttachment
@Deprecated public abstract Attachment addAttachment(String url, String name, String type, byte[] data, Date timeStamp, Integer flags) throws IOException
Deprecated.seeDateTimeTypefor details- Throws:
IOException
-
addAttachment
public abstract Attachment addAttachment(String url, String name, String type, byte[] data, LocalDateTime timeStamp, Integer flags) throws IOException
- Throws:
IOException
-
addEncodedAttachment
public abstract Attachment addEncodedAttachment(byte[] encodedData) throws IOException
- Throws:
IOException
-
addEncodedAttachment
@Deprecated public abstract Attachment addEncodedAttachment(String url, String name, String type, byte[] encodedData, Date timeStamp, Integer flags) throws IOException
Deprecated.seeDateTimeTypefor details- Throws:
IOException
-
addEncodedAttachment
public abstract Attachment addEncodedAttachment(String url, String name, String type, byte[] encodedData, LocalDateTime timeStamp, Integer flags) throws IOException
- Throws:
IOException
-
updateAttachment
public abstract Attachment updateAttachment(Attachment attachment) throws IOException
- Throws:
IOException
-
deleteAttachment
public abstract Attachment deleteAttachment(Attachment attachment) throws IOException
- Throws:
IOException
-
addMultiValue
public abstract SingleValue addMultiValue(Object value) throws IOException
- Throws:
IOException
-
updateMultiValue
public abstract SingleValue updateMultiValue(SingleValue value) throws IOException
- Throws:
IOException
-
deleteMultiValue
public abstract SingleValue deleteMultiValue(SingleValue value) throws IOException
- Throws:
IOException
-
addUnsupportedValue
public abstract UnsupportedValue addUnsupportedValue(Map<String,?> values) throws IOException
- Throws:
IOException
-
updateUnsupportedValue
public abstract UnsupportedValue updateUnsupportedValue(UnsupportedValue value) throws IOException
- Throws:
IOException
-
deleteUnsupportedValue
public abstract UnsupportedValue deleteUnsupportedValue(UnsupportedValue value) throws IOException
- Throws:
IOException
-
deleteAllValues
public abstract void deleteAllValues() throws IOException- Throws:
IOException
-
-