com.healthmarketscience.jackcess.complex
Class ComplexValueForeignKey
java.lang.Object
java.lang.Number
com.healthmarketscience.jackcess.complex.ComplexValueForeignKey
- All Implemented Interfaces:
- Serializable
public 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
ComplexValueForeignKey
public ComplexValueForeignKey(Column column,
int value)
get
public int get()
getColumn
public Column getColumn()
byteValue
public byte byteValue()
- Overrides:
byteValue in class Number
shortValue
public short shortValue()
- Overrides:
shortValue in class Number
intValue
public int intValue()
- Specified by:
intValue in class Number
longValue
public long longValue()
- Specified by:
longValue in class Number
floatValue
public float floatValue()
- Specified by:
floatValue in class Number
doubleValue
public double doubleValue()
- Specified by:
doubleValue in class Number
getComplexType
public ComplexDataType getComplexType()
countValues
public int countValues()
throws IOException
- Throws:
IOException
getRawValues
public List<Map<String,Object>> getRawValues()
throws IOException
- Throws:
IOException
getValues
public List<? extends ComplexValue> getValues()
throws IOException
- Throws:
IOException
getVersions
public List<Version> getVersions()
throws IOException
- Throws:
IOException
getAttachments
public List<Attachment> getAttachments()
throws IOException
- Throws:
IOException
getMultiValues
public List<SingleValue> getMultiValues()
throws IOException
- Throws:
IOException
getUnsupportedValues
public List<UnsupportedValue> getUnsupportedValues()
throws IOException
- Throws:
IOException
reset
public void reset()
addVersion
public Version addVersion(String value)
throws IOException
- Throws:
IOException
addVersion
public Version addVersion(String value,
Date modifiedDate)
throws IOException
- Throws:
IOException
addAttachment
public Attachment addAttachment(byte[] data)
throws IOException
- Throws:
IOException
addAttachment
public Attachment addAttachment(String url,
String name,
String type,
byte[] data,
Date timeStamp,
Integer flags)
throws IOException
- Throws:
IOException
updateAttachment
public Attachment updateAttachment(Attachment attachment)
throws IOException
- Throws:
IOException
deleteAttachment
public Attachment deleteAttachment(Attachment attachment)
throws IOException
- Throws:
IOException
addMultiValue
public SingleValue addMultiValue(Object value)
throws IOException
- Throws:
IOException
updateMultiValue
public SingleValue updateMultiValue(SingleValue value)
throws IOException
- Throws:
IOException
deleteMultiValue
public SingleValue deleteMultiValue(SingleValue value)
throws IOException
- Throws:
IOException
addUnsupportedValue
public UnsupportedValue addUnsupportedValue(Map<String,?> values)
throws IOException
- Throws:
IOException
updateUnsupportedValue
public UnsupportedValue updateUnsupportedValue(UnsupportedValue value)
throws IOException
- Throws:
IOException
deleteUnsupportedValue
public UnsupportedValue deleteUnsupportedValue(UnsupportedValue value)
throws IOException
- Throws:
IOException
deleteAllValues
public void deleteAllValues()
throws IOException
- Throws:
IOException
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2005-2013 Health Market Science. All Rights Reserved.