public class Query extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Query.State |
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
|
int |
getRowCount()
Get the number of rows
|
boolean |
getWithReturn()
Check if the cursor defined as a return cursor to client
|
Boolean |
isFound()
Check if the cursor was fetched and a row was returned
|
Boolean |
isNotFound()
Check if the cursor was fetched and no row was returned
|
boolean |
isOpen()
Check if the cursor is open
|
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 |
setExprCtx(org.antlr.v4.runtime.ParserRuleContext sqlExpr)
Set expression context
|
void |
setFetch(boolean ok)
Set the fetch status
|
void |
setSelectCtx(org.antlr.v4.runtime.ParserRuleContext sqlSelect)
Set SELECT statement context
|
void |
setSql(String sql)
Set SQL statement
|
void |
setWithReturn(boolean withReturn)
Set whether the cursor is returned to the caller
|
public void set(Connection conn, Statement stmt, ResultSet rs)
public void set(Connection conn, PreparedStatement pstmt)
public void setFetch(boolean ok)
public int getRowCount()
public boolean isOpen()
public Boolean isFound()
public Boolean isNotFound()
public void closeStatement()
public void setSql(String sql)
public void setExprCtx(org.antlr.v4.runtime.ParserRuleContext sqlExpr)
public void setSelectCtx(org.antlr.v4.runtime.ParserRuleContext sqlSelect)
public void setWithReturn(boolean withReturn)
public void setError(Exception e)
public void printStackTrace()
public ResultSet getResultSet()
public PreparedStatement getPreparedStatement()
public Connection getConnection()
public boolean getWithReturn()
public boolean error()
public String errorText()
public Exception getException()
Copyright © 2016 The Apache Software Foundation. All rights reserved.