Class ComplexValueForeignKeyImpl
- java.lang.Object
-
- java.lang.Number
-
- com.healthmarketscience.jackcess.complex.ComplexValueForeignKey
-
- com.healthmarketscience.jackcess.impl.complex.ComplexValueForeignKeyImpl
-
- All Implemented Interfaces:
Serializable
public class ComplexValueForeignKeyImpl extends ComplexValueForeignKey
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 ComplexValueForeignKeyImpl(Column column, int value)
-
Method Summary
-
Methods inherited from class com.healthmarketscience.jackcess.complex.ComplexValueForeignKey
byteValue, doubleValue, floatValue, hashCode, intValue, longValue, shortValue, toString
-
-
-
-
Constructor Detail
-
ComplexValueForeignKeyImpl
public ComplexValueForeignKeyImpl(Column column, int value)
-
-
Method Detail
-
get
public int get()
- Specified by:
getin classComplexValueForeignKey
-
getColumn
public Column getColumn()
- Specified by:
getColumnin classComplexValueForeignKey
-
getComplexType
public ComplexDataType getComplexType()
- Specified by:
getComplexTypein classComplexValueForeignKey
-
countValues
public int countValues() throws IOException- Specified by:
countValuesin classComplexValueForeignKey- Throws:
IOException
-
getRawValues
public List<Row> getRawValues() throws IOException
- Throws:
IOException
-
getValues
public List<? extends ComplexValue> getValues() throws IOException
- Specified by:
getValuesin classComplexValueForeignKey- Throws:
IOException
-
getVersions
public List<Version> getVersions() throws IOException
- Specified by:
getVersionsin classComplexValueForeignKey- Throws:
IOException
-
getAttachments
public List<Attachment> getAttachments() throws IOException
- Specified by:
getAttachmentsin classComplexValueForeignKey- Throws:
IOException
-
getMultiValues
public List<SingleValue> getMultiValues() throws IOException
- Specified by:
getMultiValuesin classComplexValueForeignKey- Throws:
IOException
-
getUnsupportedValues
public List<UnsupportedValue> getUnsupportedValues() throws IOException
- Specified by:
getUnsupportedValuesin classComplexValueForeignKey- Throws:
IOException
-
reset
public void reset()
- Specified by:
resetin classComplexValueForeignKey
-
addVersion
public Version addVersion(String value) throws IOException
- Specified by:
addVersionin classComplexValueForeignKey- Throws:
IOException
-
addVersion
public Version addVersion(String value, Date modifiedDate) throws IOException
- Specified by:
addVersionin classComplexValueForeignKey- Throws:
IOException
-
addVersion
public Version addVersion(String value, LocalDateTime modifiedDate) throws IOException
- Specified by:
addVersionin classComplexValueForeignKey- Throws:
IOException
-
addAttachment
public Attachment addAttachment(byte[] data) throws IOException
- Specified by:
addAttachmentin classComplexValueForeignKey- Throws:
IOException
-
addAttachment
public Attachment addAttachment(String url, String name, String type, byte[] data, Date timeStamp, Integer flags) throws IOException
- Specified by:
addAttachmentin classComplexValueForeignKey- Throws:
IOException
-
addAttachment
public Attachment addAttachment(String url, String name, String type, byte[] data, LocalDateTime timeStamp, Integer flags) throws IOException
- Specified by:
addAttachmentin classComplexValueForeignKey- Throws:
IOException
-
addEncodedAttachment
public Attachment addEncodedAttachment(byte[] encodedData) throws IOException
- Specified by:
addEncodedAttachmentin classComplexValueForeignKey- Throws:
IOException
-
addEncodedAttachment
public Attachment addEncodedAttachment(String url, String name, String type, byte[] encodedData, Date timeStamp, Integer flags) throws IOException
- Specified by:
addEncodedAttachmentin classComplexValueForeignKey- Throws:
IOException
-
addEncodedAttachment
public Attachment addEncodedAttachment(String url, String name, String type, byte[] encodedData, LocalDateTime timeStamp, Integer flags) throws IOException
- Specified by:
addEncodedAttachmentin classComplexValueForeignKey- Throws:
IOException
-
updateAttachment
public Attachment updateAttachment(Attachment attachment) throws IOException
- Specified by:
updateAttachmentin classComplexValueForeignKey- Throws:
IOException
-
deleteAttachment
public Attachment deleteAttachment(Attachment attachment) throws IOException
- Specified by:
deleteAttachmentin classComplexValueForeignKey- Throws:
IOException
-
addMultiValue
public SingleValue addMultiValue(Object value) throws IOException
- Specified by:
addMultiValuein classComplexValueForeignKey- Throws:
IOException
-
updateMultiValue
public SingleValue updateMultiValue(SingleValue value) throws IOException
- Specified by:
updateMultiValuein classComplexValueForeignKey- Throws:
IOException
-
deleteMultiValue
public SingleValue deleteMultiValue(SingleValue value) throws IOException
- Specified by:
deleteMultiValuein classComplexValueForeignKey- Throws:
IOException
-
addUnsupportedValue
public UnsupportedValue addUnsupportedValue(Map<String,?> values) throws IOException
- Specified by:
addUnsupportedValuein classComplexValueForeignKey- Throws:
IOException
-
updateUnsupportedValue
public UnsupportedValue updateUnsupportedValue(UnsupportedValue value) throws IOException
- Specified by:
updateUnsupportedValuein classComplexValueForeignKey- Throws:
IOException
-
deleteUnsupportedValue
public UnsupportedValue deleteUnsupportedValue(UnsupportedValue value) throws IOException
- Specified by:
deleteUnsupportedValuein classComplexValueForeignKey- Throws:
IOException
-
deleteAllValues
public void deleteAllValues() throws IOException- Specified by:
deleteAllValuesin classComplexValueForeignKey- Throws:
IOException
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classComplexValueForeignKey
-
-