Constructor and description |
---|
protected Sql.AbstractQueryCommand
(String sql) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
closeResources() After performing the execute operation and making use of its return, it's necessary to free the resources allocated for the statement. |
|
protected void |
closeResources(ResultSet rs) After performing the execute operation and making use of its return, it's necessary to free the resources allocated for the statement. |
|
protected ResultSet |
execute() Execute the command that's defined by the subclass following the Command pattern. |
|
protected int |
getMaxRows() Get the maximum number of rows to return in the ResultSet |
|
protected ResultSet |
runQuery(Connection connection) Perform the query. |
|
protected void |
setMaxRows(int maxRows) Set the maximum number of rows to return in the ResultSet |
After performing the execute operation and making use of its return, it's necessary to free the resources allocated for the statement.
After performing the execute operation and making use of its return, it's necessary to free the resources allocated for the statement.
rs
- allows the caller to conveniently close its resource as wellExecute the command that's defined by the subclass following the Command pattern. Specialized parameters are held in the command instances.
Get the maximum number of rows to return in the ResultSet
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.
connection
- the connection to useSet the maximum number of rows to return in the ResultSet
maxRows
- the maximum number of rowsCopyright © 2003-2021 The Apache Software Foundation. All rights reserved.