com.healthmarketscience.jackcess.impl.complex
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
|
Method Summary |
Attachment |
addAttachment(byte[] data)
|
Attachment |
addAttachment(String url,
String name,
String type,
byte[] data,
Date timeStamp,
Integer flags)
|
Attachment |
addEncodedAttachment(byte[] encodedData)
|
Attachment |
addEncodedAttachment(String url,
String name,
String type,
byte[] encodedData,
Date timeStamp,
Integer flags)
|
SingleValue |
addMultiValue(Object value)
|
UnsupportedValue |
addUnsupportedValue(Map<String,?> values)
|
Version |
addVersion(String value)
|
Version |
addVersion(String value,
Date modifiedDate)
|
int |
countValues()
|
void |
deleteAllValues()
|
Attachment |
deleteAttachment(Attachment attachment)
|
SingleValue |
deleteMultiValue(SingleValue value)
|
UnsupportedValue |
deleteUnsupportedValue(UnsupportedValue value)
|
boolean |
equals(Object o)
|
int |
get()
|
protected AttachmentColumnInfo |
getAttachmentInfo()
|
List<Attachment> |
getAttachments()
|
Column |
getColumn()
|
protected ComplexColumnInfo<? extends ComplexValue> |
getComplexInfo()
|
ComplexDataType |
getComplexType()
|
protected MultiValueColumnInfo |
getMultiValueInfo()
|
List<SingleValue> |
getMultiValues()
|
List<Row> |
getRawValues()
|
protected UnsupportedColumnInfo |
getUnsupportedInfo()
|
List<UnsupportedValue> |
getUnsupportedValues()
|
List<? extends ComplexValue> |
getValues()
|
protected VersionHistoryColumnInfo |
getVersionInfo()
|
List<Version> |
getVersions()
|
void |
reset()
|
Attachment |
updateAttachment(Attachment attachment)
|
SingleValue |
updateMultiValue(SingleValue value)
|
UnsupportedValue |
updateUnsupportedValue(UnsupportedValue value)
|
ComplexValueForeignKeyImpl
public ComplexValueForeignKeyImpl(Column column,
int value)
get
public int get()
- Specified by:
get in class ComplexValueForeignKey
getColumn
public Column getColumn()
- Specified by:
getColumn in class ComplexValueForeignKey
getComplexType
public ComplexDataType getComplexType()
- Specified by:
getComplexType in class ComplexValueForeignKey
getComplexInfo
protected ComplexColumnInfo<? extends ComplexValue> getComplexInfo()
getVersionInfo
protected VersionHistoryColumnInfo getVersionInfo()
getAttachmentInfo
protected AttachmentColumnInfo getAttachmentInfo()
getMultiValueInfo
protected MultiValueColumnInfo getMultiValueInfo()
getUnsupportedInfo
protected UnsupportedColumnInfo getUnsupportedInfo()
countValues
public int countValues()
throws IOException
- Specified by:
countValues in class ComplexValueForeignKey
- Throws:
IOException
getRawValues
public List<Row> getRawValues()
throws IOException
- Throws:
IOException
getValues
public List<? extends ComplexValue> getValues()
throws IOException
- Specified by:
getValues in class ComplexValueForeignKey
- Throws:
IOException
getVersions
public List<Version> getVersions()
throws IOException
- Specified by:
getVersions in class ComplexValueForeignKey
- Throws:
IOException
getAttachments
public List<Attachment> getAttachments()
throws IOException
- Specified by:
getAttachments in class ComplexValueForeignKey
- Throws:
IOException
getMultiValues
public List<SingleValue> getMultiValues()
throws IOException
- Specified by:
getMultiValues in class ComplexValueForeignKey
- Throws:
IOException
getUnsupportedValues
public List<UnsupportedValue> getUnsupportedValues()
throws IOException
- Specified by:
getUnsupportedValues in class ComplexValueForeignKey
- Throws:
IOException
reset
public void reset()
- Specified by:
reset in class ComplexValueForeignKey
addVersion
public Version addVersion(String value)
throws IOException
- Specified by:
addVersion in class ComplexValueForeignKey
- Throws:
IOException
addVersion
public Version addVersion(String value,
Date modifiedDate)
throws IOException
- Specified by:
addVersion in class ComplexValueForeignKey
- Throws:
IOException
addAttachment
public Attachment addAttachment(byte[] data)
throws IOException
- Specified by:
addAttachment in class ComplexValueForeignKey
- Throws:
IOException
addAttachment
public Attachment addAttachment(String url,
String name,
String type,
byte[] data,
Date timeStamp,
Integer flags)
throws IOException
- Specified by:
addAttachment in class ComplexValueForeignKey
- Throws:
IOException
addEncodedAttachment
public Attachment addEncodedAttachment(byte[] encodedData)
throws IOException
- Specified by:
addEncodedAttachment in class ComplexValueForeignKey
- Throws:
IOException
addEncodedAttachment
public Attachment addEncodedAttachment(String url,
String name,
String type,
byte[] encodedData,
Date timeStamp,
Integer flags)
throws IOException
- Specified by:
addEncodedAttachment in class ComplexValueForeignKey
- Throws:
IOException
updateAttachment
public Attachment updateAttachment(Attachment attachment)
throws IOException
- Specified by:
updateAttachment in class ComplexValueForeignKey
- Throws:
IOException
deleteAttachment
public Attachment deleteAttachment(Attachment attachment)
throws IOException
- Specified by:
deleteAttachment in class ComplexValueForeignKey
- Throws:
IOException
addMultiValue
public SingleValue addMultiValue(Object value)
throws IOException
- Specified by:
addMultiValue in class ComplexValueForeignKey
- Throws:
IOException
updateMultiValue
public SingleValue updateMultiValue(SingleValue value)
throws IOException
- Specified by:
updateMultiValue in class ComplexValueForeignKey
- Throws:
IOException
deleteMultiValue
public SingleValue deleteMultiValue(SingleValue value)
throws IOException
- Specified by:
deleteMultiValue in class ComplexValueForeignKey
- Throws:
IOException
addUnsupportedValue
public UnsupportedValue addUnsupportedValue(Map<String,?> values)
throws IOException
- Specified by:
addUnsupportedValue in class ComplexValueForeignKey
- Throws:
IOException
updateUnsupportedValue
public UnsupportedValue updateUnsupportedValue(UnsupportedValue value)
throws IOException
- Specified by:
updateUnsupportedValue in class ComplexValueForeignKey
- Throws:
IOException
deleteUnsupportedValue
public UnsupportedValue deleteUnsupportedValue(UnsupportedValue value)
throws IOException
- Specified by:
deleteUnsupportedValue in class ComplexValueForeignKey
- Throws:
IOException
deleteAllValues
public void deleteAllValues()
throws IOException
- Specified by:
deleteAllValues in class ComplexValueForeignKey
- Throws:
IOException
equals
public boolean equals(Object o)
- Overrides:
equals in class ComplexValueForeignKey
Copyright © 2005-2017 Health Market Science. All Rights Reserved.