Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013

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 java.lang.Object

Base class for the additional information tracked for complex columns.


Nested Class Summary
protected static class ComplexColumnInfo.ComplexValueImpl
           
 
Field Summary
static ComplexValueForeignKey INVALID_COMPLEX_VALUE_ID
           
static int INVALID_ID
           
 
Constructor Summary
protected ComplexColumnInfo(Column column, int complexTypeId, Table typeObjTable, Table flatTable)
           
 
Method Summary
 int addRawValue(java.util.Map<java.lang.String,java.lang.Object> rawValue)
           
 int addValue(V value)
           
 void addValues(java.util.Collection<? extends V> values)
           
protected  java.lang.Object[] asRow(java.lang.Object[] row, V value)
           
 int countValues(int complexValueFk)
           
static ComplexColumnInfo<? extends ComplexValue> create(Column column, java.nio.ByteBuffer buffer, int offset)
           
 void deleteAllValues(ComplexValueForeignKey complexValueFk)
           
 void deleteAllValues(int complexValueFk)
           
 void deleteRawValue(java.util.Map<java.lang.String,java.lang.Object> rawValue)
           
 void deleteValue(V value)
           
 void deleteValues(java.util.Collection<? extends V> values)
           
protected static void diffFlatColumns(Table typeObjTable, Table flatTable, java.util.List<Column> typeCols, java.util.List<Column> otherCols)
           
 Column getColumn()
           
 Column getComplexValueForeignKeyColumn()
           
 Database getDatabase()
           
 JetFormat getFormat()
           
 PageChannel getPageChannel()
           
 Column getPrimaryKeyColumn()
           
 java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getRawValues(int complexValueFk)
           
 java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getRawValues(int complexValueFk, java.util.Collection<java.lang.String> columnNames)
           
abstract  ComplexDataType getType()
           
protected  java.util.List<Column> getTypeColumns()
           
 java.util.List<V> getValues(ComplexValueForeignKey complexValueFk)
           
 void postTableLoadInit()
           
 java.lang.String toString()
           
protected abstract  V toValue(ComplexValueForeignKey complexValueFk, java.util.Map<java.lang.String,java.lang.Object> rawValues)
           
protected  java.util.List<V> toValues(ComplexValueForeignKey complexValueFk, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> rawValues)
           
 int updateRawValue(java.util.Map<java.lang.String,java.lang.Object> rawValue)
           
 int updateValue(V value)
           
 void updateValues(java.util.Collection<? extends V> values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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
Constructor Detail

ComplexColumnInfo

protected ComplexColumnInfo(Column column,
                            int complexTypeId,
                            Table typeObjTable,
                            Table flatTable)
                     throws java.io.IOException
Throws:
java.io.IOException
Method Detail

create

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

postTableLoadInit

public void postTableLoadInit()
                       throws java.io.IOException
Throws:
java.io.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()

getTypeColumns

protected java.util.List<Column> getTypeColumns()

countValues

public int countValues(int complexValueFk)
                throws java.io.IOException
Throws:
java.io.IOException

getRawValues

public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getRawValues(int complexValueFk)
                                                                              throws java.io.IOException
Throws:
java.io.IOException

getRawValues

public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getRawValues(int complexValueFk,
                                                                                     java.util.Collection<java.lang.String> columnNames)
                                                                              throws java.io.IOException
Throws:
java.io.IOException

getValues

public java.util.List<V> getValues(ComplexValueForeignKey complexValueFk)
                                                 throws java.io.IOException
Throws:
java.io.IOException

toValues

protected java.util.List<V> toValues(ComplexValueForeignKey complexValueFk,
                                     java.util.List<java.util.Map<java.lang.String,java.lang.Object>> rawValues)
                                                   throws java.io.IOException
Throws:
java.io.IOException

addRawValue

public int addRawValue(java.util.Map<java.lang.String,java.lang.Object> rawValue)
                throws java.io.IOException
Throws:
java.io.IOException

addValue

public int addValue(V value)
             throws java.io.IOException
Throws:
java.io.IOException

addValues

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

updateRawValue

public int updateRawValue(java.util.Map<java.lang.String,java.lang.Object> rawValue)
                   throws java.io.IOException
Throws:
java.io.IOException

updateValue

public int updateValue(V value)
                throws java.io.IOException
Throws:
java.io.IOException

updateValues

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

deleteRawValue

public void deleteRawValue(java.util.Map<java.lang.String,java.lang.Object> rawValue)
                    throws java.io.IOException
Throws:
java.io.IOException

deleteValue

public void deleteValue(V value)
                 throws java.io.IOException
Throws:
java.io.IOException

deleteValues

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

deleteAllValues

public void deleteAllValues(int complexValueFk)
                     throws java.io.IOException
Throws:
java.io.IOException

deleteAllValues

public void deleteAllValues(ComplexValueForeignKey complexValueFk)
                     throws java.io.IOException
Throws:
java.io.IOException

asRow

protected java.lang.Object[] asRow(java.lang.Object[] row,
                                   V value)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

diffFlatColumns

protected static void diffFlatColumns(Table typeObjTable,
                                      Table flatTable,
                                      java.util.List<Column> typeCols,
                                      java.util.List<Column> otherCols)

getType

public abstract ComplexDataType getType()

toValue

protected abstract V toValue(ComplexValueForeignKey complexValueFk,
                             java.util.Map<java.lang.String,java.lang.Object> rawValues)
                                           throws java.io.IOException
Throws:
java.io.IOException

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013