OpenAPI 1.0

com.aquafold.openapi.io
Interface AQTableWriter

All Superinterfaces:
AQDataWriter, Closeable

public interface AQTableWriter
extends AQDataWriter

This interface facilitates writing of data rows and a data sets to a database table.


Method Summary
 AQDataRow newDataRow()
          Constructs a new empty data row.
 void setDateFormat(String spec)
          Sets the format for converting string input into Date objects to be inserted into database columns of DATE type.
 void setDateTimeFormat(String spec)
          Sets the format for converting string input into Date objects to be inserted into database columns of DATETIME type.
 void setNumberFormat(String spec)
          Sets default format for number columns.
 void setTimeFormat(String spec)
          Sets the format for converting string input into Date objects to be inserted into database columns of TIME type.
 
Methods inherited from interface com.aquafold.openapi.io.AQDataWriter
close, write, write, write, write
 

Method Detail

setDateFormat

void setDateFormat(String spec)
Sets the format for converting string input into Date objects to be inserted into database columns of DATE type. This will only affect DATE types and not DATETIME types.

Parameters:
spec - Date format string according to SimpleDateFormat convention.

setDateTimeFormat

void setDateTimeFormat(String spec)
Sets the format for converting string input into Date objects to be inserted into database columns of DATETIME type. This will only affect DATETIME types and not DATE type.

Parameters:
spec - Datetime format string according to SimpleDateFormat convention.

setTimeFormat

void setTimeFormat(String spec)
Sets the format for converting string input into Date objects to be inserted into database columns of TIME type.

Parameters:
spec - Time format string according to SimpleDateFormat convention.

setNumberFormat

void setNumberFormat(String spec)
Sets default format for number columns. This format applies only when the column data type, as returned by AQColumnDescriptor.getSqlType(), is known.

Parameters:
spec - Format specification as defined by DecimalFormat.

newDataRow

AQDataRow newDataRow()
Constructs a new empty data row.


OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.