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

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

public class Statement
extends java.lang.Object


Field Summary
protected  ConnectionImpl jdbcConnection
           
protected  java.lang.String queryString
           
 
Constructor Summary
Statement(java.lang.String sqlString)
           
 
Method Summary
 void close()
           
protected  void enablePaging()
           
 java.util.List executeCall(ParametersExtendedImpl parameters)
           
 java.util.List executeQuery(ParametersExtendedImpl parameters)
           
 int executeUpdate(ParametersExtendedImpl parameters)
           
 int executeUpdate(ParametersExtendedImpl parameters, java.lang.String[] generatedKeys)
           
 void executeUpdateCall(ParametersExtendedImpl parameters)
           
 ConnectionImpl getConnection()
           
 java.lang.Integer getGeneratedKey()
           
 void setConnection(ConnectionImpl jdbcConnection)
           
protected  java.sql.PreparedStatement setParameters(java.sql.PreparedStatement ps, ParametersExtendedImpl parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queryString

protected final java.lang.String queryString

jdbcConnection

protected ConnectionImpl jdbcConnection
Constructor Detail

Statement

public Statement(java.lang.String sqlString)
Method Detail

executeQuery

public java.util.List executeQuery(ParametersExtendedImpl parameters)
                            throws java.sql.SQLException
Throws:
java.sql.SQLException

executeCall

public java.util.List executeCall(ParametersExtendedImpl parameters)
                           throws java.sql.SQLException
Throws:
java.sql.SQLException

executeUpdateCall

public void executeUpdateCall(ParametersExtendedImpl parameters)
                       throws java.sql.SQLException
Throws:
java.sql.SQLException

executeUpdate

public int executeUpdate(ParametersExtendedImpl parameters,
                         java.lang.String[] generatedKeys)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

executeUpdate

public int executeUpdate(ParametersExtendedImpl parameters)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

setParameters

protected java.sql.PreparedStatement setParameters(java.sql.PreparedStatement ps,
                                                   ParametersExtendedImpl parameters)
                                            throws java.sql.SQLException
Throws:
java.sql.SQLException

setConnection

public void setConnection(ConnectionImpl jdbcConnection)

getConnection

public ConnectionImpl getConnection()

getGeneratedKey

public java.lang.Integer getGeneratedKey()
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

enablePaging

protected void enablePaging()

close

public void close()


Copyright © 2007 Apache Software Foundation. All Rights Reserved.