public class DBBatchInserter extends DBInserter
| Modifier and Type | Field and Description |
|---|---|
protected DBSingularInserter |
dbSingInserter |
protected JDBCOITransport |
transport |
badRecCount, badRecDir, badRecFile, badRecNarFile, dbConn, errMesg, fos, healthy, inserts, invalidRecCount, lobData, logger, MAX_BAD_RECORDS_PER_FILE, RECORD_SEPARATOR, reservedColumnList, reservedNamesList, reservedTableList, tableColumns, writer| Constructor and Description |
|---|
DBBatchInserter(java.sql.Connection dbConn,
java.lang.String dbUser,
java.util.Hashtable tableColumns,
java.util.Hashtable lobData,
java.util.List<java.util.List<java.lang.String>> reservedNamesList,
LoggerIfc logger,
JDBCOITransport transport,
int batchTimeOut,
int batchTimeOutCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleTimeoutException(java.lang.Exception toe,
JDBCOIRecord[] batch) |
boolean |
isHealthy() |
void |
updateDB(JDBCOIRecord[] records)
This method takes the set of records for all tables that need to be inserted
the set of records is then split into different batches one for each table
and executed sequentially if there is any case of parent child relationship
in the records then the parent records should placed before the child records
in the NPL, this method will not do any validation on the parent child relationship
|
buildStatements, checkColumn, resetConnection, setColumnValue, shutdown, writeBadRecord, writeBadRecordNarprotected JDBCOITransport transport
protected DBSingularInserter dbSingInserter
public DBBatchInserter(java.sql.Connection dbConn,
java.lang.String dbUser,
java.util.Hashtable tableColumns,
java.util.Hashtable lobData,
java.util.List<java.util.List<java.lang.String>> reservedNamesList,
LoggerIfc logger,
JDBCOITransport transport,
int batchTimeOut,
int batchTimeOutCount)
public void updateDB(JDBCOIRecord[] records)
updateDB in interface DBUpdaterIfcupdateDB in class DBInserterpublic boolean isHealthy()
isHealthy in interface DBUpdaterIfcisHealthy in class DBInserterpublic void handleTimeoutException(java.lang.Exception toe,
JDBCOIRecord[] batch)
throws LostConnectionException
LostConnectionException