org.webdocwf.util.loader
Class InsertRowQuerySet

java.lang.Object
  extended by org.webdocwf.util.loader.InsertRowQuerySet

public class InsertRowQuerySet
extends java.lang.Object

InsertRowQuerySet class creates insert in to statement for one import definition

Version:
1.0
Author:
Radoslav Dutina

Constructor Summary
InsertRowQuerySet(java.sql.Connection c, java.util.Vector vecColumnNames, java.util.Vector vecColumnMode, java.lang.String tableName, java.lang.String tableID, int iTableInt, java.util.Vector vecTempConstantColumns, java.util.Vector vecVariableTimesTableName, java.util.Vector vecVariableTimesTableID, java.util.Vector vecVariableTimesColumnName, java.util.Vector vecVariableColumnTargetTableName, java.util.Vector vecVariableColumnTargetTableID, java.util.Vector vecVariableColumnTargetColumnName, java.util.Vector vecRelationColumnTargetColumnName, java.util.Vector vecRelationColumnTargetTableName, java.util.Vector vecRelationColumnTargetTableID, java.util.Vector vecRelationColumnRelationMode, CounterColumns counterColumns, Transformations transformations, boolean bOidLogicValue, boolean isTOS, java.lang.String oidColumnName, java.lang.String versionColumnName)
          Construct object InsertRowQuerySet with associated parameters.
 
Method Summary
 java.util.Vector getColumnNames()
          This method read value form columnNamesPstmt parameter
 java.util.Vector getIndexDummyIsNotRelationsColumn()
          This method read the value of indexDummyIsNotRelationsColumn parameter
 java.sql.PreparedStatement getPreparedStatementForInsert()
          This method construct prepare statement
 java.lang.String getStrQuery()
          This method read the value of strQuery parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertRowQuerySet

public InsertRowQuerySet(java.sql.Connection c,
                         java.util.Vector vecColumnNames,
                         java.util.Vector vecColumnMode,
                         java.lang.String tableName,
                         java.lang.String tableID,
                         int iTableInt,
                         java.util.Vector vecTempConstantColumns,
                         java.util.Vector vecVariableTimesTableName,
                         java.util.Vector vecVariableTimesTableID,
                         java.util.Vector vecVariableTimesColumnName,
                         java.util.Vector vecVariableColumnTargetTableName,
                         java.util.Vector vecVariableColumnTargetTableID,
                         java.util.Vector vecVariableColumnTargetColumnName,
                         java.util.Vector vecRelationColumnTargetColumnName,
                         java.util.Vector vecRelationColumnTargetTableName,
                         java.util.Vector vecRelationColumnTargetTableID,
                         java.util.Vector vecRelationColumnRelationMode,
                         CounterColumns counterColumns,
                         Transformations transformations,
                         boolean bOidLogicValue,
                         boolean isTOS,
                         java.lang.String oidColumnName,
                         java.lang.String versionColumnName)
                  throws java.sql.SQLException,
                         java.lang.NullPointerException,
                         java.lang.Exception
Construct object InsertRowQuerySet with associated parameters.

Parameters:
c - Connetion to source tables
vecColumnNames - is Vector of column names in a target table.
vecColumnMode - is Vector of column modes in a target table.
tableName - is current table name
tableID - is current table id
iTableInt - is the number of target table
vecTempConstantColumns - is Vector of column names for target table.
vecVariableTimesTableName - is Vector of variable times, for target table.
vecVariableTimesTableID - is Vector of variable times id, for target table.
vecVariableTimesColumnName - is Vector of variable (times) column names, for target table.
vecVariableColumnTargetTableName - is Vector of variable table names.
vecVariableColumnTargetTableID - is Vector of variable table id.
vecVariableColumnTargetColumnName - is Vector of variable column names, for target table.
vecRelationColumnTargetColumnName - is Vector of relations column names, for target table.
vecRelationColumnTargetTableName - is Vector of relations table names, for target table.
vecRelationColumnTargetTableID - is Vector of relations table id's, for target table.
vecRelationColumnRelationMode - is Vector of relations modes, for target table.
counterColumns - defines Vector of number of columns
bOidLogicValue - is boolean object, which decide is oid logic true or false
isTOS - is boolean object, which decide is oid logic true or false
Throws:
java.sql.SQLException
java.lang.NullPointerException
java.lang.Exception
Method Detail

getStrQuery

public java.lang.String getStrQuery()
This method read the value of strQuery parameter

Returns:
value of paramter

getIndexDummyIsNotRelationsColumn

public java.util.Vector getIndexDummyIsNotRelationsColumn()
This method read the value of indexDummyIsNotRelationsColumn parameter

Returns:
value of paramter

getPreparedStatementForInsert

public java.sql.PreparedStatement getPreparedStatementForInsert()
                                                         throws java.lang.Exception
This method construct prepare statement

Returns:
string representation of prepareStatement
Throws:
java.lang.Exception

getColumnNames

public java.util.Vector getColumnNames()
This method read value form columnNamesPstmt parameter

Returns:
value of parameter


Copyright © 2002-2007 Together - the Workgroup. All Rights Reserved.