com.healthmarketscience.jackcess.impl.complex
Class AttachmentColumnInfoImpl

java.lang.Object
  extended by com.healthmarketscience.jackcess.impl.complex.ComplexColumnInfoImpl<Attachment>
      extended by com.healthmarketscience.jackcess.impl.complex.AttachmentColumnInfoImpl
All Implemented Interfaces:
AttachmentColumnInfo, ComplexColumnInfo<Attachment>

public class AttachmentColumnInfoImpl
extends ComplexColumnInfoImpl<Attachment>
implements AttachmentColumnInfo

Complex column info for a column holding 0 or more attachments per row.

Author:
James Ahlborn

Nested Class Summary
 
Nested classes/interfaces inherited from class com.healthmarketscience.jackcess.impl.complex.ComplexColumnInfoImpl
ComplexColumnInfoImpl.ComplexValueImpl
 
Field Summary
 
Fields inherited from class com.healthmarketscience.jackcess.impl.complex.ComplexColumnInfoImpl
INVALID_FK, INVALID_ID
 
Constructor Summary
AttachmentColumnInfoImpl(Column column, int complexId, Table typeObjTable, Table flatTable)
           
 
Method Summary
protected  Object[] asRow(Object[] row, Attachment attachment)
           
 Column getFileDataColumn()
           
 Column getFileFlagsColumn()
           
 Column getFileNameColumn()
           
 Column getFileTimeStampColumn()
           
 Column getFileTypeColumn()
           
 Column getFileUrlColumn()
           
 ComplexDataType getType()
           
static Attachment newAttachment(byte[] data)
           
static Attachment newAttachment(ComplexValueForeignKey complexValueFk, byte[] data)
           
static Attachment newAttachment(ComplexValueForeignKey complexValueFk, String url, String name, String type, byte[] data, Date timeStamp, Integer flags)
           
static Attachment newAttachment(String url, String name, String type, byte[] data, Date timeStamp, Integer flags)
           
static Attachment newEncodedAttachment(byte[] encodedData)
           
static Attachment newEncodedAttachment(ComplexValueForeignKey complexValueFk, byte[] encodedData)
           
static Attachment newEncodedAttachment(ComplexValueForeignKey complexValueFk, String url, String name, String type, byte[] encodedData, Date timeStamp, Integer flags)
           
static Attachment newEncodedAttachment(String url, String name, String type, byte[] encodedData, Date timeStamp, Integer flags)
           
protected  com.healthmarketscience.jackcess.impl.complex.AttachmentColumnInfoImpl.AttachmentImpl toValue(ComplexValueForeignKey complexValueFk, Row rawValue)
           
 
Methods inherited from class com.healthmarketscience.jackcess.impl.complex.ComplexColumnInfoImpl
addRawValue, addValue, addValues, countValues, deleteAllValues, deleteAllValues, deleteRawValue, deleteValue, deleteValues, diffFlatColumns, getColumn, getComplexValueForeignKeyColumn, getDatabase, getPrimaryKeyColumn, getRawValues, getRawValues, getTypeColumns, getValueId, getValueId, getValues, postTableLoadInit, toString, toValues, updateRawValue, updateValue, updateValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.healthmarketscience.jackcess.complex.ComplexColumnInfo
addRawValue, addValue, addValues, countValues, deleteAllValues, deleteAllValues, deleteRawValue, deleteValue, deleteValues, getRawValues, getRawValues, getValues, updateRawValue, updateValue, updateValues
 

Constructor Detail

AttachmentColumnInfoImpl

public AttachmentColumnInfoImpl(Column column,
                                int complexId,
                                Table typeObjTable,
                                Table flatTable)
                         throws IOException
Throws:
IOException
Method Detail

getFileUrlColumn

public Column getFileUrlColumn()

getFileNameColumn

public Column getFileNameColumn()

getFileTypeColumn

public Column getFileTypeColumn()

getFileDataColumn

public Column getFileDataColumn()

getFileTimeStampColumn

public Column getFileTimeStampColumn()

getFileFlagsColumn

public Column getFileFlagsColumn()

getType

public ComplexDataType getType()
Specified by:
getType in interface ComplexColumnInfo<Attachment>
Specified by:
getType in class ComplexColumnInfoImpl<Attachment>

toValue

protected com.healthmarketscience.jackcess.impl.complex.AttachmentColumnInfoImpl.AttachmentImpl toValue(ComplexValueForeignKey complexValueFk,
                                                                                                        Row rawValue)
Specified by:
toValue in class ComplexColumnInfoImpl<Attachment>

asRow

protected Object[] asRow(Object[] row,
                         Attachment attachment)
                  throws IOException
Overrides:
asRow in class ComplexColumnInfoImpl<Attachment>
Throws:
IOException

newAttachment

public static Attachment newAttachment(byte[] data)

newAttachment

public static Attachment newAttachment(ComplexValueForeignKey complexValueFk,
                                       byte[] data)

newAttachment

public static Attachment newAttachment(String url,
                                       String name,
                                       String type,
                                       byte[] data,
                                       Date timeStamp,
                                       Integer flags)

newAttachment

public static Attachment newAttachment(ComplexValueForeignKey complexValueFk,
                                       String url,
                                       String name,
                                       String type,
                                       byte[] data,
                                       Date timeStamp,
                                       Integer flags)

newEncodedAttachment

public static Attachment newEncodedAttachment(byte[] encodedData)

newEncodedAttachment

public static Attachment newEncodedAttachment(ComplexValueForeignKey complexValueFk,
                                              byte[] encodedData)

newEncodedAttachment

public static Attachment newEncodedAttachment(String url,
                                              String name,
                                              String type,
                                              byte[] encodedData,
                                              Date timeStamp,
                                              Integer flags)

newEncodedAttachment

public static Attachment newEncodedAttachment(ComplexValueForeignKey complexValueFk,
                                              String url,
                                              String name,
                                              String type,
                                              byte[] encodedData,
                                              Date timeStamp,
                                              Integer flags)


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