|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.webdocwf.util.loader.DataTransmition
public class DataTransmition
DataTransmition class is used for handling the operation with ‘restore counter table’.
Constructor Summary | |
---|---|
DataTransmition(ImportDefinitionElement importDefinitionElement)
|
Method Summary | |
---|---|
java.math.BigDecimal |
checkDataTransmition(java.sql.Connection c,
java.sql.ResultSet rset,
java.lang.String jobName,
int iTargetFirstColumnResult)
This method is used for checking the restart counter table |
void |
createRestartCounterTable(java.sql.Connection conn)
This method create restore counter table |
void |
insertCounter(java.lang.String jobName,
java.math.BigDecimal bdecCount,
java.sql.Connection conn)
This method is used for inserting the appropriate values into restart counter table |
void |
resetRestartCounter(java.sql.Connection conn,
java.lang.String jobName)
This method is used to set '0' into counter column from counter table, if the current import job was finished successfuly |
void |
setLogger(Logger logger)
This method is used to set current Looger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataTransmition(ImportDefinitionElement importDefinitionElement)
Method Detail |
---|
public void createRestartCounterTable(java.sql.Connection conn) throws LoaderException
conn
- defines the connection object of target database
LoaderException
public java.math.BigDecimal checkDataTransmition(java.sql.Connection c, java.sql.ResultSet rset, java.lang.String jobName, int iTargetFirstColumnResult) throws java.sql.SQLException
c
- defines the connection object to target databaserset
- defines the ResultSet object of source databasejobName
- defines the current import job nameiTargetFirstColumnResult
- is parameter from conf file
java.sql.SQLException
public void insertCounter(java.lang.String jobName, java.math.BigDecimal bdecCount, java.sql.Connection conn) throws java.sql.SQLException
jobName
- defines the current import job namebdecCount
- defines the number of rows which are commitedconn
- defines the connection object to target database
java.sql.SQLException
public void resetRestartCounter(java.sql.Connection conn, java.lang.String jobName) throws java.sql.SQLException
conn
- defines the connection object of target databasejobName
- defines the current import job name
java.sql.SQLException
public void setLogger(Logger logger)
logger
- is the currently used logger
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |