public class DBIOHandler extends SMYLDDataBaseHandler implements SQL
| Modifier and Type | Field and Description |
|---|---|
protected PreparedStatement |
pst |
DB_SEQUENTIAL_NO_WIDTH, DB_VAL_NoParentFieldValue, dbConnection, dbUtility, smyldDBConnectionNEW_LINE, OS_NEW_LINEALL, AND, COL_MAX_NO, COM, CONCAT, COUNT_COLUMN, COUNT_MAX, DEL, DIST, DOT, EQ, EQM, FRM, GR, GRE, GRP, IN, INS, INST_1, INST_2, INST_3, INST_4, INST_5, INST_6, INST_7, ISNULL, LIKE, MAXO, NEQ, OR, ORD, OUTJ, PC, PO, PR, QUM, RightPR, SEL, SELA, SELCA, SELCRN, SET, SM, SME, SP, SQ, TO_CHAR, TO_NUMBER, TRIM, UPD, UPO, UPR, VAL, VAO, WHRDB_ERR_CONNECTION_RESET, DB_ERR_CONNECTION_RESET_TEXT, DB_ERR_UNIQUE_CONSTRAINT, DB_ERR_UNKNOWN, DB_VENDOR_DB2, DB_VENDOR_DEFAULT, DB_VENDOR_MYSQL, DB_VENDOR_ORACLE, DB_VENDOR_SQL_SERVER, DB_VENDOR_SYBASE| Constructor and Description |
|---|
DBIOHandler(DBErrorHandler e,
DBConnection dbConn) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit() |
protected String |
createInsertSQL(String tableName) |
Vector<String> |
detectSchemaError(String recordLine) |
protected void |
doClearProcess() |
protected void |
doInitializeProcess(String targetTable) |
protected void |
fillData(String[] data,
int offset) |
String[] |
getLastDataLine() |
int |
getLineNumber() |
void |
importFile(String dumpKey,
String targetTable,
String fileName,
String separator) |
protected void |
insertLine(String[] data) |
protected void |
insertRecord(String currentLine) |
protected void |
postLine() |
protected PreparedStatement |
prepareStatement(String sql) |
protected String[] |
readData(String currentLine) |
void |
rollback() |
addDBConnectionListener, addDBConnectionListener, closeConnection, doCommit, doRollBack, executeDoubleParamFunction, executeDoubleParamFunction, executeDoubleParamProcedure, executeMultiParamProcedure, executeQuery, executeSingleParamOraArrayFun, executeTrippleParamFunction, executeTrippleParamProcedure, getSMYLDConnection, getTableTotalRecordsNumber, getUtility, handleDBError, isConnected, setDBConnection, setSMYLDConnectiondebug, getLenName, insertInstanceValue, printInstanceValues, toStringprotected PreparedStatement pst
public DBIOHandler(DBErrorHandler e, DBConnection dbConn)
public void importFile(String dumpKey, String targetTable, String fileName, String separator) throws Exception
Exceptionprotected void doInitializeProcess(String targetTable) throws Exception
Exceptionprotected PreparedStatement prepareStatement(String sql) throws Exception
Exceptionpublic String[] getLastDataLine()
protected String createInsertSQL(String tableName) throws SQLException
SQLExceptionpublic int getLineNumber()
Copyright © 2019 SMYLD. All rights reserved.