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
-
inputs
- Vector of input objects.
-
DML()
- Default constructor.
-
closeBackground()
- The actual background thread code that executes the close operation.
-
finalize()
- Finalize this object.
-
getInputs()
- Returns the input Vector for the statement.
-
handleInputValues()
- Method to handle input values for an SQL statement.
-
setInputs(Vector)
- Set the input vector for the statement.
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
DML
public DML()
- Default constructor.
finalize
protected void finalize() throws Throwable
- Finalize this object.
- Throws: Throwable
- Possibly thrown by the superclass
- Overrides:
- finalize in class Statement
getInputs
public Vector getInputs()
- Returns the input Vector for the statement.
- Returns:
- Input Vector for the SQL DML statement.
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.
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
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