|
Groovy Documentation | |||||||
| 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 java.lang.String |
sql
|
protected java.sql.Statement |
statement
|
| Constructor Summary | |
protected Sql.AbstractQueryCommand(java.lang.String sql)
|
|
| Method Summary | |
|---|---|
protected void
|
closeResources()
Perform the query. |
protected void
|
closeResources(java.sql.ResultSet rs)
|
protected java.sql.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 java.sql.ResultSet
|
runQuery(java.sql.Connection connection)
|
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
| Field Detail |
|---|
protected final java.lang.String sql
protected java.sql.Statement statement
| Constructor Detail |
|---|
protected Sql.AbstractQueryCommand(java.lang.String sql)
| Method Detail |
|---|
protected final void closeResources()
connection - the connection to use
protected final void closeResources(java.sql.ResultSet rs)
protected final java.sql.ResultSet execute()
rs - allows the caller to conveniently close its resource as well
protected java.sql.ResultSet runQuery(java.sql.Connection connection)
Groovy Documentation