Where Am I? Class Hierarchy All Classes All Fields and Methods

Class com.ibm.ivj.db.uibeans.Query

java.lang.Object
   |
   +----com.ibm.ivj.db.uibeans.Query

public class Query
implements Serializable
extends Object

Query contains references to a connection alias and an SQL specification. Query is used to set the query property of a Select bean, the procedure property of the ProcedureCall bean, and the action property of the Modify bean.


Constructor Index

Query(DatabaseConnection, StatementMetaData)
Constructs a new Query and sets the connection alias and the SQL specification the the specified values.

Method Index

getConnectionAlias()
Returns the associated com.ibm.db.DatabaseConnection that represents the connection alias for a Select, Modify, or ProcedureCall bean.
getSQLSpec()
Returns the associated com.ibm.db.StatementMetaData that represents an SQL specification for a Select, Modify, or ProcedureCall bean.
setConnectionAlias(DatabaseConnection)
Associates a com.ibm.db.DatabaseConnection with the Query.
setSQLSpec(StatementMetaData)
Associates a com.ibm.db.StatementMetaData with the Query.

Constructors

Query
 public Query(DatabaseConnection conAlias,
              StatementMetaData sqlSpec) 
Constructs a new Query and sets the connection alias and the SQL specification the the specified values.

Parameters:
conAlias - the connection alias represented by a DatabaseConnection
sqlSpec - the SQL specification represented by a StatementMetadata
See Also:
DatabaseConnection
StatementMetaData

Methods

getConnectionAlias
 public DatabaseConnection getConnectionAlias() 
Returns the associated com.ibm.db.DatabaseConnection that represents the connection alias for a Select, Modify, or ProcedureCall bean.

Returns:
the associated DatabaseConnection that represents a connection alias
See Also:
setConnectionAlias
getSQLSpec
 public StatementMetaData getSQLSpec() 
Returns the associated com.ibm.db.StatementMetaData that represents an SQL specification for a Select, Modify, or ProcedureCall bean.

Returns:
the associated StatementMetaData that represents a SQL specification
See Also:
setSQLSpec
setConnectionAlias
 public void setConnectionAlias(DatabaseConnection connectionAlias) 
Associates a com.ibm.db.DatabaseConnection with the Query. A DatabaseConnection represents a connection alias for a Select, Modify, or ProcedureCall bean.

Parameters:
connectionAlias - the associated DatabaseConnection
See Also:
getConnectionAlias
setSQLSpec
 public void setSQLSpec(StatementMetaData SQLspec) 
Associates a com.ibm.db.StatementMetaData with the Query. A StatementMetaData represents an SQL specification for a Select, Modify, or ProcedureCall bean.

Parameters:
SQLspec - the associated StatementMetaData
See Also:
getSQLSpec

Where Am I? Class Hierarchy All Classes All Fields and Methods