All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.samples.daps.sql.DML

java.lang.Object
   |
   +----com.ibm.beans.samples.daps.sql.Common
           |
           +----com.ibm.beans.samples.daps.sql.Statement
                   |
                   +----com.ibm.beans.samples.daps.sql.DML

public abstract class DML
extends Statement
The DML class is instantiated via subclasses to represent a single SQL DML statement. This class adds the functionality of input host variable values for DML parameter markers.

This class is an abstract class used by the Select and InsertUpdateDelete classes.

See Also:
Select, InsertUpdateDelete, DMLBeanInfo

Variable Index

 o inputs
Vector of input objects.

Constructor Index

 o DML()
Default constructor.

Method Index

 o closeBackground()
The actual background thread code that executes the close operation.
 o finalize()
Finalize this object.
 o getInputs()
Returns the input Vector for the statement.
 o handleInputValues()
Method to handle input values for an SQL statement.
 o setInputs(Vector)
Set the input vector for the statement.

Variables

 o inputs
 protected transient Vector inputs
Vector of input objects.

These are used by the handleInputValues() method to set values for SQL parameter markers. This Vector must be set prior to execution of the execute() method

Constructors

 o DML
 public DML()
Default constructor.

Methods

 o finalize
 protected void finalize() throws Throwable
Finalize this object.

Throws: Throwable
Possibly thrown by the superclass
Overrides:
finalize in class Statement
 o getInputs
 public Vector getInputs()
Returns the input Vector for the statement.

Returns:
Input Vector for the SQL DML statement.
 o setInputs
 public synchronized void setInputs(Vector inputs)
Set the input vector for the statement.

This value is used by the handleInputValues() method.

Fire the property change event for the input object.

Parameters:
inputs - The input Vector of objects for use by the SQL DML statement.
 o handleInputValues
 protected void handleInputValues() throws SQLException
Method to handle input values for an SQL statement.

In a DML statement, these are values for the statement's parameter markers.

The preparedStatement and inputs properties are used by this method.

Throws: SQLException
Thrown if a setObject fails.
Overrides:
handleInputValues in class Statement
 o closeBackground
 protected void closeBackground() throws SQLException, NullPointerException
The actual background thread code that executes the close operation.

The inputs property is set by this method.

Throws: SQLException
SQL Exception
Throws: NullPointerException
Pointer not set
Overrides:
closeBackground in class Statement

All Packages  Class Hierarchy  This Package  Previous  Next  Index