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

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
 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)
           
 
Methods inherited from class com.healthmarketscience.jackcess.impl.complex.ComplexColumnInfoImpl
addRawValue, addValue, addValues, countValues, deleteAllValues, deleteAllValues, deleteRawValue, deleteValue, deleteValues, getColumn, getComplexValueForeignKeyColumn, getDatabase, getPrimaryKeyColumn, getRawValues, getRawValues, getValues, postTableLoadInit, toString, updateRawValue, updateValue, updateValues
 
Methods inherited from class java.lang.Object
equals, 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>

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.