| java.lang.Object org.webdocwf.util.loader.CounterColumns
CounterColumns | public class CounterColumns (Code) | | CounterColumns - insert auto increment values in target counter columns.
|
Method Summary | |
public void | counterColumnTypes(String tableName, String tableID, Connection c, int firstColumn, boolean columnsSuportedTarget, ConfigReader configReaderTarget) Method counterColumnTypes is used to put types of constant columns into
global vector sorted in target tables. | public Vector | getCounterIncrement(String tableName, String tableID) | public Vector | getCounterName(String tableName, String tableID) | public String | getCounterNameColumn() | public Vector | getCounterStartValue(String tableName, String tableID) | public Vector | getCounterStartValueReset(String tableName, String tableID) | public String | getCounterTableName() | public Vector | getCounterValue(String tableName, String tableID) | public String | getCounterValueColumn() | public Vector | getSubCounterIncrement(String tableName, String tableID) | public Vector | getSubCounterKeyColumns(String tableName, String tableID) | public Vector | getSubCounterKeyColumnsTyp(String tableName, String tableID) | public Vector | getSubCounterKeyValues(String tableName, String tableID) | public Vector | getSubCounterName(String tableName, String tableID) | public Vector | getSubCounterStartValue(String tableName, String tableID) | public Vector | getSubTargetColumnName(String tableName, String tableID) | public Vector | getSubTargetColumnTyp(String tableName, String tableID) | public Vector | getSubValueMode(String tableName, String tableID) | public Vector | getTargetColumnName(String tableName, String tableID) | public Vector | getTargetColumnTyp(String tableName, String tableID) | public Vector | getValueMode(String tableName, String tableID) | public void | readConstantColumnAttributes(Document doc, int importJob) | public void | readConstantColumnsParameters(Document doc, int importJob) | public Vector | readSubCounterValue(String tableName, String tableID, Connection conn, int firstColumn, String tableMode, ConfigReader targetConfigReader) | public void | reset() | public void | resetSubCounterCache() | public void | setConstantColumnsParameters(String tableName, String tableID) | public void | setCounterNameColumn(String nameColumn) | public void | setCounterTableName(String tableName) | public void | setCounterValue(String tableName, String tableID) | public void | setCounterValueColumn(String valueColumn) | public void | setLogger(Logger logger) | public void | setSubCounterKeyValues(String tableName, String tableID, Hashtable values) | public void | setTargetColumnStartValues(String tableName, String tableID, Connection conn, int firstColumn) | public void | updateCounter(Connection conn) |
CounterColumns | public CounterColumns()(Code) | | Empty constructor of CounterColumns class
|
counterColumnTypes | public void counterColumnTypes(String tableName, String tableID, Connection c, int firstColumn, boolean columnsSuportedTarget, ConfigReader configReaderTarget) throws SQLException, NullPointerException(Code) | | Method counterColumnTypes is used to put types of constant columns into
global vector sorted in target tables. If there is an error, Exception
"SQLException" or "NullPointerException" is thrown.
Parameters: c - Connection to target database. Parameters: tableName - is table name Parameters: tableID - is table ID Parameters: firstColumn - is first column throws: SQLException - Constructs an SQLException object with a reason. throws: NullPointerException - Constructs a NullPointerException with the specified detail message. |
getCounterIncrement | public Vector getCounterIncrement(String tableName, String tableID)(Code) | | This method read value of counterIncrement parameter
Parameters: tableName - is table name Parameters: tableID - is table ID Vector of increment values for all counter columns in table tableName. |
getCounterName | public Vector getCounterName(String tableName, String tableID)(Code) | | This method read value of counterNames parameter
Parameters: tableName - is table name Parameters: tableID - is table ID vector |
getCounterNameColumn | public String getCounterNameColumn()(Code) | | This method read value of counterNameColumn parameter
String name of column in counter table with counter names. |
getCounterStartValue | public Vector getCounterStartValue(String tableName, String tableID)(Code) | | This method read value of counterStartValue parameter
Parameters: tableName - is table name Parameters: tableID - is table ID Vector of start values for all counter columns in table tableName. |
getCounterStartValueReset | public Vector getCounterStartValueReset(String tableName, String tableID)(Code) | | This method read value of counterStartValueReset parameter
Parameters: tableName - is table name Parameters: tableID - is table ID vector |
getCounterTableName | public String getCounterTableName()(Code) | | This method read value of counterTableName parameter
string name of counter table |
getCounterValue | public Vector getCounterValue(String tableName, String tableID)(Code) | | This method set values for currentCounterValue parameter
Parameters: tableName - is table name Parameters: tableID - is table ID Vector of current counter values for table - tableName |
getCounterValueColumn | public String getCounterValueColumn()(Code) | | This method read value of counterValueColumn parameter
String name of column in counter table with current values of each counter |
getSubCounterIncrement | public Vector getSubCounterIncrement(String tableName, String tableID)(Code) | | This method read value of getSubCounterIncrement parameter
Parameters: tableName - is table name Parameters: tableID - is table ID vector |
getSubCounterKeyColumns | public Vector getSubCounterKeyColumns(String tableName, String tableID)(Code) | | This method read value of subCounterKeyColumns parameter
Parameters: tableName - is table name Parameters: tableID - is table ID vector |
getSubCounterKeyColumnsTyp | public Vector getSubCounterKeyColumnsTyp(String tableName, String tableID)(Code) | | This method read value of subCounterKeyColumnsTyp parameter
Parameters: tableName - is table name Parameters: tableID - is table ID vector |
getSubCounterKeyValues | public Vector getSubCounterKeyValues(String tableName, String tableID)(Code) | | This method read value of subCounterKeyValues parameter
Parameters: tableName - is table name Parameters: tableID - is table ID vector |
getSubCounterName | public Vector getSubCounterName(String tableName, String tableID)(Code) | | This method read value of subCounterName parameter
Parameters: tableName - is table name Parameters: tableID - is table ID vector |
getSubCounterStartValue | public Vector getSubCounterStartValue(String tableName, String tableID)(Code) | | This method read value of getSubCounterStartValue parameter
Parameters: tableName - is table name Parameters: tableID - is table ID vector |
getSubTargetColumnName | public Vector getSubTargetColumnName(String tableName, String tableID)(Code) | | This method read value of subTargetColumnName parameter
Parameters: tableName - is table name Parameters: tableID - is table ID vector |
getSubTargetColumnTyp | public Vector getSubTargetColumnTyp(String tableName, String tableID)(Code) | | This method read value of subTargetColumnTyp parameter
Parameters: tableName - is table name Parameters: tableID - is table ID vector |
getSubValueMode | public Vector getSubValueMode(String tableName, String tableID)(Code) | | This method read value of subValueMode parameter
Parameters: tableName - is table name Parameters: tableID - is table ID vector |
getTargetColumnName | public Vector getTargetColumnName(String tableName, String tableID)(Code) | | This method read value of targetColumnName parameter
Parameters: tableName - is table name Parameters: tableID - is table ID Vector of counter column names for all counter columns in table tableName. |
getTargetColumnTyp | public Vector getTargetColumnTyp(String tableName, String tableID)(Code) | | This method read value of targetColumnTyp parameter
Parameters: tableName - is table name Parameters: tableID - is table ID Vector of counter column types for all counter columns in table tableName. |
getValueMode | public Vector getValueMode(String tableName, String tableID)(Code) | | This method read value of valueMode parameter
Parameters: tableName - is table name Parameters: tableID - is table ID vector |
readConstantColumnAttributes | public void readConstantColumnAttributes(Document doc, int importJob)(Code) | | This method sets the value of:
counterTableName, counterNameColumn and counterValueColumn parameters
Parameters: doc - represents Object document Parameters: importJob - represents current import job |
readConstantColumnsParameters | public void readConstantColumnsParameters(Document doc, int importJob)(Code) | | This method sets the value of next parameters:
vecCounterName, vecCounterIncrement, vecCounterStartValue, vecTargetColumnName,
vecValueMode, vecCounterStartValueReset, vecTargetTableName, vecTargetTableID,
vecSubCounterName, vecSubCounterIncrement, vecSubCounterStartValue,
vecSubTargetTableName, vecSubTargetTableID, vecSubTargetColumnName,
vecSubValueMode and vecSubKeyColumns
Parameters: doc - represents Object document Parameters: importJob - represents current import job |
reset | public void reset()(Code) | | This method reset all variables
|
resetSubCounterCache | public void resetSubCounterCache()(Code) | | This method reset cach for subcounter
|
setConstantColumnsParameters | public void setConstantColumnsParameters(String tableName, String tableID)(Code) | | This method sets the value of Constant Columns parameters
Parameters: tableName - is table name Parameters: tableID - is table ID |
setCounterNameColumn | public void setCounterNameColumn(String nameColumn)(Code) | | This method sets the value of counterNameColumn parameter
Parameters: nameColumn - is name of the column |
setCounterTableName | public void setCounterTableName(String tableName)(Code) | | This method sets the value of counterTableName parameter
Parameters: tableName - is table name |
setCounterValue | public void setCounterValue(String tableName, String tableID)(Code) | | This method set values for Counter columns
Parameters: tableName - is table name Parameters: tableID - is table ID |
setCounterValueColumn | public void setCounterValueColumn(String valueColumn)(Code) | | This method sets the value of counterValueColumn parameter
Parameters: valueColumn - is value of the column |
setLogger | public void setLogger(Logger logger)(Code) | | This method set logger object
|
setSubCounterKeyValues | public void setSubCounterKeyValues(String tableName, String tableID, Hashtable values)(Code) | | This method set value of subCounterKeyValues parameter
Parameters: tableName - defines table name Parameters: tableID - defines table ID Parameters: values - is hashtable new key values |
setTargetColumnStartValues | public void setTargetColumnStartValues(String tableName, String tableID, Connection conn, int firstColumn) throws SQLException(Code) | | This method set values for currentCounterValue parameter
Parameters: tableName - is table name Parameters: tableID - is table ID Parameters: conn - is connection to target database Parameters: firstColumn - is first column throws: SQLException - |
|
|