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) |
Modifier and Type | Method and Description |
---|---|
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, writeBadRecordNar
protected 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)
public void updateDB(JDBCOIRecord[] records)
updateDB
in interface DBUpdaterIfc
updateDB
in class DBInserter
public boolean isHealthy()
isHealthy
in interface DBUpdaterIfc
isHealthy
in class DBInserter