| java.lang.Object org.webdocwf.util.loader.DataTransmition
DataTransmition | public class DataTransmition (Code) | | DataTransmition class is used for handling the operation with ‘restore counter table’.
author: Radoslav Dutina version: 1.0 |
checkDataTransmition | public BigDecimal checkDataTransmition(Connection c, ResultSet rset, String jobName, int iTargetFirstColumnResult) throws SQLException(Code) | | This method is used for checking the restart counter table
Parameters: c - defines the connection object to target database Parameters: rset - defines the ResultSet object of source database Parameters: jobName - defines the current import job name Parameters: iTargetFirstColumnResult - is parameter from conf file value of counter field from restart counter table throws: SQLException - |
createRestartCounterTable | public void createRestartCounterTable(Connection conn) throws LoaderException(Code) | | This method create restore counter table
Parameters: conn - defines the connection object of target database throws: LoaderException - |
insertCounter | public void insertCounter(String jobName, BigDecimal bdecCount, Connection conn) throws SQLException(Code) | | This method is used for inserting the appropriate values into restart counter
table
Parameters: jobName - defines the current import job name Parameters: bdecCount - defines the number of rows which are commited Parameters: conn - defines the connection object to target database throws: SQLException - |
resetRestartCounter | public void resetRestartCounter(Connection conn, String jobName) throws SQLException(Code) | | This method is used to set '0' into counter column from counter table, if the
current import job was finished successfuly
Parameters: conn - defines the connection object of target database Parameters: jobName - defines the current import job name throws: SQLException - |
setLogger | public void setLogger(Logger logger)(Code) | | This method is used to set current Looger
Parameters: logger - is the currently used logger |
|
|