|
Groovy 2.2.0 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgroovy.sql.Sql.AbstractQueryCommand
protected abstract class Sql.AbstractQueryCommand
| Field Summary | |
|---|---|
protected String |
sql
|
protected Statement |
statement
|
| Constructor Summary | |
protected Sql.AbstractQueryCommand(String sql)
|
|
| Method Summary | |
|---|---|
protected void
|
closeResources()
Perform the query. |
protected void
|
closeResources(ResultSet rs)
|
protected ResultSet
|
execute()
After performing the execute operation and making use of its return, it's necessary to free the resources allocated for the statement. |
protected ResultSet
|
runQuery(Connection connection)
|
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
protected final String sql
protected Statement statement
| Constructor Detail |
|---|
protected Sql.AbstractQueryCommand(String sql)
| Method Detail |
|---|
protected final void closeResources()
connection - the connection to use
protected final void closeResources(ResultSet rs)
protected final ResultSet execute()
rs - allows the caller to conveniently close its resource as well
protected ResultSet runQuery(Connection connection)
Copyright © 2003-2013 The Codehaus. All rights reserved.