com.healthmarketscience.jackcess.impl.complex
Class ComplexColumnInfoImpl<V extends ComplexValue>

java.lang.Object
  extended by com.healthmarketscience.jackcess.impl.complex.ComplexColumnInfoImpl<V>
All Implemented Interfaces:
ComplexColumnInfo<V>
Direct Known Subclasses:
AttachmentColumnInfoImpl, MultiValueColumnInfoImpl, UnsupportedColumnInfoImpl, VersionHistoryColumnInfoImpl

public abstract class ComplexColumnInfoImpl<V extends ComplexValue>
extends Object
implements ComplexColumnInfo<V>

Base class for the additional information tracked for complex columns.

Author:
James Ahlborn

Field Summary
static ComplexValueForeignKey INVALID_FK
           
static ComplexValue.Id INVALID_ID
           
 
Method Summary
 ComplexValue.Id addRawValue(Map<String,?> rawValue)
           
 ComplexValue.Id addValue(V value)
           
 void addValues(Collection<? extends V> values)
           
 int countValues(int complexValueFk)
           
 void deleteAllValues(ComplexValueForeignKey complexValueFk)
           
 void deleteAllValues(int complexValueFk)
           
 void deleteRawValue(Row rawValue)
           
 void deleteValue(V value)
           
 void deleteValues(Collection<? extends V> values)
           
 Column getColumn()
           
 Column getComplexValueForeignKeyColumn()
           
 Database getDatabase()
           
 Column getPrimaryKeyColumn()
           
 List<Row> getRawValues(int complexValueFk)
           
 List<Row> getRawValues(int complexValueFk, Collection<String> columnNames)
           
abstract  ComplexDataType getType()
           
 List<V> getValues(ComplexValueForeignKey complexValueFk)
           
 void postTableLoadInit()
           
 String toString()
           
 ComplexValue.Id updateRawValue(Row rawValue)
           
 ComplexValue.Id updateValue(V value)
           
 void updateValues(Collection<? extends V> values)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INVALID_ID

public static final ComplexValue.Id INVALID_ID

INVALID_FK

public static final ComplexValueForeignKey INVALID_FK
Method Detail

postTableLoadInit

public void postTableLoadInit()
                       throws IOException
Throws:
IOException

getColumn

public Column getColumn()

getDatabase

public Database getDatabase()

getPrimaryKeyColumn

public Column getPrimaryKeyColumn()

getComplexValueForeignKeyColumn

public Column getComplexValueForeignKeyColumn()

countValues

public int countValues(int complexValueFk)
                throws IOException
Specified by:
countValues in interface ComplexColumnInfo<V extends ComplexValue>
Throws:
IOException

getRawValues

public List<Row> getRawValues(int complexValueFk)
                       throws IOException
Specified by:
getRawValues in interface ComplexColumnInfo<V extends ComplexValue>
Throws:
IOException

getRawValues

public List<Row> getRawValues(int complexValueFk,
                              Collection<String> columnNames)
                       throws IOException
Specified by:
getRawValues in interface ComplexColumnInfo<V extends ComplexValue>
Throws:
IOException

getValues

public List<V> getValues(ComplexValueForeignKey complexValueFk)
                                       throws IOException
Specified by:
getValues in interface ComplexColumnInfo<V extends ComplexValue>
Throws:
IOException

addRawValue

public ComplexValue.Id addRawValue(Map<String,?> rawValue)
                            throws IOException
Specified by:
addRawValue in interface ComplexColumnInfo<V extends ComplexValue>
Throws:
IOException

addValue

public ComplexValue.Id addValue(V value)
                         throws IOException
Specified by:
addValue in interface ComplexColumnInfo<V extends ComplexValue>
Throws:
IOException

addValues

public void addValues(Collection<? extends V> values)
               throws IOException
Specified by:
addValues in interface ComplexColumnInfo<V extends ComplexValue>
Throws:
IOException

updateRawValue

public ComplexValue.Id updateRawValue(Row rawValue)
                               throws IOException
Specified by:
updateRawValue in interface ComplexColumnInfo<V extends ComplexValue>
Throws:
IOException

updateValue

public ComplexValue.Id updateValue(V value)
                            throws IOException
Specified by:
updateValue in interface ComplexColumnInfo<V extends ComplexValue>
Throws:
IOException

updateValues

public void updateValues(Collection<? extends V> values)
                  throws IOException
Specified by:
updateValues in interface ComplexColumnInfo<V extends ComplexValue>
Throws:
IOException

deleteRawValue

public void deleteRawValue(Row rawValue)
                    throws IOException
Specified by:
deleteRawValue in interface ComplexColumnInfo<V extends ComplexValue>
Throws:
IOException

deleteValue

public void deleteValue(V value)
                 throws IOException
Specified by:
deleteValue in interface ComplexColumnInfo<V extends ComplexValue>
Throws:
IOException

deleteValues

public void deleteValues(Collection<? extends V> values)
                  throws IOException
Specified by:
deleteValues in interface ComplexColumnInfo<V extends ComplexValue>
Throws:
IOException

deleteAllValues

public void deleteAllValues(int complexValueFk)
                     throws IOException
Specified by:
deleteAllValues in interface ComplexColumnInfo<V extends ComplexValue>
Throws:
IOException

deleteAllValues

public void deleteAllValues(ComplexValueForeignKey complexValueFk)
                     throws IOException
Specified by:
deleteAllValues in interface ComplexColumnInfo<V extends ComplexValue>
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

getType

public abstract ComplexDataType getType()
Specified by:
getType in interface ComplexColumnInfo<V extends ComplexValue>


Copyright © 2005–2017 Health Market Science. All rights reserved.