Tuscany DAS for Relational Databases

org.apache.tuscany.das.rdb.impl
Class Statement

java.lang.Object
  extended by org.apache.tuscany.das.rdb.impl.Statement

public class Statement
extends Object


Field Summary
protected  ConnectionImpl jdbcConnection
           
protected  QueryString queryString
           
 
Constructor Summary
Statement(String sqlString)
           
 
Method Summary
 void close()
           
protected  void enablePaging()
           
 ResultSet executeCall(Parameters parameters)
           
 ResultSet executeQuery(Parameters parameters)
           
 int executeUpdate(Parameters parameters)
          TODO - We need to look at using specific ps.setXXX methods when a type has been specified and try setObject otherwise.
 void executeUpdateCall(Parameters parameters)
           
 ConnectionImpl getConnection()
           
 Integer getGeneratedKey()
           
 void setConnection(ConnectionImpl jdbcConnection)
           
protected  PreparedStatement setParameters(PreparedStatement ps, Parameters parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queryString

protected final QueryString queryString

jdbcConnection

protected ConnectionImpl jdbcConnection
Constructor Detail

Statement

public Statement(String sqlString)
Method Detail

executeQuery

public ResultSet executeQuery(Parameters parameters)
                       throws SQLException
Throws:
SQLException

executeCall

public ResultSet executeCall(Parameters parameters)
                      throws SQLException
Throws:
SQLException

executeUpdateCall

public void executeUpdateCall(Parameters parameters)
                       throws SQLException
Throws:
SQLException

executeUpdate

public int executeUpdate(Parameters parameters)
                  throws SQLException
TODO - We need to look at using specific ps.setXXX methods when a type has been specified and try setObject otherwise.

Throws:
SQLException

setParameters

protected PreparedStatement setParameters(PreparedStatement ps,
                                          Parameters parameters)
                                   throws SQLException
Throws:
SQLException

setConnection

public void setConnection(ConnectionImpl jdbcConnection)

getConnection

public ConnectionImpl getConnection()

getGeneratedKey

public Integer getGeneratedKey()
                        throws SQLException
Throws:
SQLException

enablePaging

protected void enablePaging()

close

public void close()

Tuscany DAS for Relational Databases

-