Groovy 1.7.11

groovy.sql
[Java] Class Sql.AbstractQueryCommand

java.lang.Object
  groovy.sql.Sql.AbstractQueryCommand

protected abstract class Sql.AbstractQueryCommand

Field Summary
protected String sql

protected Statement statement

 
Method Summary
void closeResources()

Perform the query.

void closeResources(ResultSet rs)

protected ResultSet runQuery(Connection connection)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

sql

protected final String sql


statement

protected Statement statement


 
Method Detail

closeResources

public final void closeResources()
Perform the query. Must set statement field so that the main (execute()) method can clean up. This is the method that encloses the variant part of the code.
throws:
SQLException if a database error occurs
Parameters:
connection - the connection to use
Returns:
ResultSet from an executeQuery method.


closeResources

public final void closeResources(ResultSet rs)


runQuery

protected ResultSet runQuery(Connection connection)


 

Copyright © 2003-2010 The Codehaus. All rights reserved.