com.healthmarketscience.jackcess.complex
Class ComplexColumnInfo<V extends ComplexValue>

java.lang.Object
  extended by com.healthmarketscience.jackcess.complex.ComplexColumnInfo<V>
Direct Known Subclasses:
AttachmentColumnInfo, MultiValueColumnInfo, UnsupportedColumnInfo, VersionHistoryColumnInfo

public abstract class ComplexColumnInfo<V extends ComplexValue>
extends Object

Base class for the additional information tracked for complex columns.

Author:
James Ahlborn

Field Summary
static ComplexValueForeignKey INVALID_COMPLEX_VALUE_ID
           
static int INVALID_ID
           
 
Method Summary
 int addRawValue(Map<String,Object> rawValue)
           
 int addValue(V value)
           
 void addValues(Collection<? extends V> values)
           
 int countValues(int complexValueFk)
           
static ComplexColumnInfo<? extends ComplexValue> create(Column column, ByteBuffer buffer, int offset)
           
 void deleteAllValues(ComplexValueForeignKey complexValueFk)
           
 void deleteAllValues(int complexValueFk)
           
 void deleteRawValue(Map<String,Object> rawValue)
           
 void deleteValue(V value)
           
 void deleteValues(Collection<? extends V> values)
           
 Column getColumn()
           
 Column getComplexValueForeignKeyColumn()
           
 Database getDatabase()
           
 JetFormat getFormat()
           
 PageChannel getPageChannel()
           
 Column getPrimaryKeyColumn()
           
 List<Map<String,Object>> getRawValues(int complexValueFk)
           
 List<Map<String,Object>> getRawValues(int complexValueFk, Collection<String> columnNames)
           
abstract  ComplexDataType getType()
           
 List<V> getValues(ComplexValueForeignKey complexValueFk)
           
 void postTableLoadInit()
           
 String toString()
           
 int updateRawValue(Map<String,Object> rawValue)
           
 int 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 int INVALID_ID
See Also:
Constant Field Values

INVALID_COMPLEX_VALUE_ID

public static final ComplexValueForeignKey INVALID_COMPLEX_VALUE_ID
Method Detail

create

public static ComplexColumnInfo<? extends ComplexValue> create(Column column,
                                                               ByteBuffer buffer,
                                                               int offset)
                                                        throws IOException
Throws:
IOException

postTableLoadInit

public void postTableLoadInit()
                       throws IOException
Throws:
IOException

getColumn

public Column getColumn()

getDatabase

public Database getDatabase()

getFormat

public JetFormat getFormat()

getPageChannel

public PageChannel getPageChannel()

getPrimaryKeyColumn

public Column getPrimaryKeyColumn()

getComplexValueForeignKeyColumn

public Column getComplexValueForeignKeyColumn()

countValues

public int countValues(int complexValueFk)
                throws IOException
Throws:
IOException

getRawValues

public List<Map<String,Object>> getRawValues(int complexValueFk)
                                      throws IOException
Throws:
IOException

getRawValues

public List<Map<String,Object>> getRawValues(int complexValueFk,
                                             Collection<String> columnNames)
                                      throws IOException
Throws:
IOException

getValues

public List<V> getValues(ComplexValueForeignKey complexValueFk)
                                       throws IOException
Throws:
IOException

addRawValue

public int addRawValue(Map<String,Object> rawValue)
                throws IOException
Throws:
IOException

addValue

public int addValue(V value)
             throws IOException
Throws:
IOException

addValues

public void addValues(Collection<? extends V> values)
               throws IOException
Throws:
IOException

updateRawValue

public int updateRawValue(Map<String,Object> rawValue)
                   throws IOException
Throws:
IOException

updateValue

public int updateValue(V value)
                throws IOException
Throws:
IOException

updateValues

public void updateValues(Collection<? extends V> values)
                  throws IOException
Throws:
IOException

deleteRawValue

public void deleteRawValue(Map<String,Object> rawValue)
                    throws IOException
Throws:
IOException

deleteValue

public void deleteValue(V value)
                 throws IOException
Throws:
IOException

deleteValues

public void deleteValues(Collection<? extends V> values)
                  throws IOException
Throws:
IOException

deleteAllValues

public void deleteAllValues(int complexValueFk)
                     throws IOException
Throws:
IOException

deleteAllValues

public void deleteAllValues(ComplexValueForeignKey complexValueFk)
                     throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

getType

public abstract ComplexDataType getType()


Copyright © 2005-2013 Health Market Science. All Rights Reserved.