public interface AQTableWriter extends AQDataWriter
Modifier and Type | Method and Description |
---|---|
int |
getBatchSize()
Returns the number of statements to commit per transaction.
|
boolean |
isBatchTransactionType()
Returns true if the transaction type is Batch.
|
boolean |
isFullTransactionType()
Returns true if the transaction type is Full.
|
AQDataRow |
newDataRow()
Constructs a new empty data row.
|
void |
setBatchSize(int size)
Sets the number of statements to commit per transaction, the default value is zero.
|
void |
setBatchTransactionType()
Sets the transaction type to Batch which will commit N statements per transaction where N is determined by
getBatchSize() . |
void |
setDateFormat(java.lang.String spec)
Sets the format for converting string input into
Date objects to be inserted into
database columns of DATE type. |
void |
setDateTimeFormat(java.lang.String spec)
Sets the format for converting string input into
Date objects to be inserted into
database columns of DATETIME type. |
void |
setFullTransactionType()
Sets the transaction type to Full which will commit all of executed statements in one transaction.
|
void |
setNumberFormat(java.lang.String spec)
Sets default format for number columns.
|
void |
setTimeFormat(java.lang.String spec)
Sets the format for converting string input into
Date objects to be inserted into
database columns of TIME type. |
close, setColumnStructure, write, write, write, write, writeColumnNames
void setDateFormat(java.lang.String spec)
Date
objects to be inserted into
database columns of DATE type. This will only affect DATE types and not DATETIME types.spec
- Date format string according to SimpleDateFormat
convention.void setDateTimeFormat(java.lang.String spec)
Date
objects to be inserted into
database columns of DATETIME type. This will only affect DATETIME types and not DATE type.spec
- Datetime format string according to SimpleDateFormat
convention.void setTimeFormat(java.lang.String spec)
Date
objects to be inserted into
database columns of TIME type.spec
- Time format string according to SimpleDateFormat
convention.void setNumberFormat(java.lang.String spec)
AQColumnDescriptor.getSqlType()
, is known.spec
- Format specification as defined by DecimalFormat
.AQDataRow newDataRow()
void setFullTransactionType()
AQTableWriter
object when the object is instantiated.boolean isFullTransactionType()
void setBatchTransactionType()
getBatchSize()
.
If N is less than or equal to zero, then all of executed statement will be committed in one transaction.
Batch processing is only supported by AQDataWriter.write(AQDataReader d)
and AQDataWriter.write(AQDataSet dataSet)
.boolean isBatchTransactionType()
void setBatchSize(int size)
size
- The number of statements to commit per transactionint getBatchSize()
Copyright © 2017 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.