public class Query
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.sql.Connection |
_connection |
private java.sql.ResultSet |
_results |
private java.lang.String |
_sql |
private java.sql.PreparedStatement |
_statement |
| Constructor and Description |
|---|
Query(java.lang.String sql,
java.sql.Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.sql.ResultSet |
execute() |
java.sql.Connection |
getConnection() |
java.sql.ResultSet |
getResults() |
java.sql.PreparedStatement |
getStatement() |
boolean |
isExecuted() |
private java.sql.Connection _connection
private java.sql.PreparedStatement _statement
private java.sql.ResultSet _results
private java.lang.String _sql
public java.sql.ResultSet execute()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isExecuted()
public java.sql.Connection getConnection()
public java.sql.PreparedStatement getStatement()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.ResultSet getResults()
public void close()