com.ibm.tivoli.maximo.integrity.repair

Class ParamBatchSQL

  • java.lang.Object
    • com.ibm.tivoli.maximo.integrity.repair.ParamBatchSQL
  • All Implemented Interfaces:
    Repair


    public class ParamBatchSQL
    extends java.lang.Object
    implements Repair
    This repair takes a SQL statement with parameter place holders.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ParamBatchSQL(java.sql.Connection dc, java.lang.String sql, AttributeClass[] paramTypes)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addParamBatch(java.lang.Object[] params)
      Add a set of parameters.
      void doRepair()
      Perform the repair.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ParamBatchSQL

        public ParamBatchSQL(java.sql.Connection dc,
                             java.lang.String sql,
                             AttributeClass[] paramTypes)
        Constructor
        Parameters:
        dc - Connection to the database.
        sql - The SQL with place holders.
        paramTypes - The parameter types.
    • Method Detail

      • addParamBatch

        public void addParamBatch(java.lang.Object[] params)
                           throws java.lang.Exception
        Add a set of parameters.
        Parameters:
        params - The parameters.
        Throws:
        java.lang.Exception - If the number of parameters doesn't match the # of parameter types given in the constructor, an exception will be thrown.
      • doRepair

        public void doRepair()
                      throws java.lang.Exception
        Description copied from interface: Repair
        Perform the repair.
        Specified by:
        doRepair in interface Repair
        Throws:
        java.lang.Exception