public class Query extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
closeStatement()
Close statement results
|
boolean |
error()
Return error information
|
String |
errorText() |
Connection |
getConnection()
Get the connection object
|
Exception |
getException() |
PreparedStatement |
getPreparedStatement()
Get the prepared statement object
|
ResultSet |
getResultSet()
Get the result set object
|
void |
printStackTrace()
Print error stack trace
|
void |
set(Connection conn,
PreparedStatement pstmt) |
void |
set(Connection conn,
Statement stmt,
ResultSet rs)
Set query objects
|
void |
setError(Exception e)
Set an execution error
|
void |
setSql(String sql)
Set SQL statement
|
public Query(String sql)
public void set(Connection conn, Statement stmt, ResultSet rs)
public void set(Connection conn, PreparedStatement pstmt)
public void closeStatement()
public void setSql(String sql)
public void setError(Exception e)
public void printStackTrace()
public ResultSet getResultSet()
public PreparedStatement getPreparedStatement()
public Connection getConnection()
public boolean error()
public String errorText()
public Exception getException()
Copyright © 2022 The Apache Software Foundation. All rights reserved.