Package com.firebolt.jdbc.statement
Class FireboltStatement
java.lang.Object
com.firebolt.jdbc.JdbcBase
com.firebolt.jdbc.statement.FireboltStatement
- All Implemented Interfaces:
GenericWrapper,AutoCloseable,Statement,Wrapper
- Direct Known Subclasses:
FireboltPreparedStatement
-
Field Summary
FieldsFields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO -
Constructor Summary
ConstructorsConstructorDescriptionFireboltStatement(FireboltStatementService statementService, FireboltProperties sessionProperties, FireboltConnection connection) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcancel()voidvoidclose()voidclose(boolean removeFromConnection) Closes the Statement and removes the object from the list of Statements kept in theFireboltConnectionif the param removeFromConnection is set to truevoidbooleanbooleanbooleanbooleanexecute(List<StatementInfoWrapper> statements) voidexecuteAsync(String sql) int[]executeQuery(String sql) protected ResultSetexecuteQuery(List<StatementInfoWrapper> statementInfoList) intexecuteUpdate(String sql) intexecuteUpdate(String sql, int autoGeneratedKeys) intexecuteUpdate(String sql, int[] columnIndexes) intexecuteUpdate(String sql, String[] columnNames) protected intintintintintbooleanbooleangetMoreResults(int current) protected StatementInfoWrappergetOneQueryStatementInfo(List<StatementInfoWrapper> statementInfoList) intintintintintbooleanReturns true if the statement has more resultsbooleanisClosed()booleanbooleanbooleanReturns true if the statement is currently runningvoidsetCursorName(String name) voidsetEscapeProcessing(boolean enable) voidsetFetchDirection(int direction) voidsetFetchSize(int rows) voidsetMaxFieldSize(int max) voidsetMaxRows(int max) voidsetPoolable(boolean poolable) voidsetQueryTimeout(int seconds) protected voidMethods inherited from class com.firebolt.jdbc.JdbcBase
addWarning, clearWarnings, getWarningsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.firebolt.jdbc.GenericWrapper
isWrapperFor, unwrapMethods inherited from interface java.sql.Statement
clearWarnings, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, getWarnings, isSimpleIdentifier, setLargeMaxRows
-
Field Details
-
sessionProperties
-
-
Constructor Details
-
FireboltStatement
public FireboltStatement(FireboltStatementService statementService, FireboltProperties sessionProperties, FireboltConnection connection)
-
-
Method Details
-
executeQuery
- Specified by:
executeQueryin interfaceStatement- Throws:
SQLException
-
executeQuery
- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
- Throws:
SQLException
-
cancel
- Specified by:
cancelin interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
- Throws:
SQLException
-
executeAsync
- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfaceStatement
-
getMoreResults
- Specified by:
getMoreResultsin interfaceStatement- Throws:
SQLException
-
getMaxRows
public int getMaxRows()- Specified by:
getMaxRowsin interfaceStatement
-
setMaxRows
- Specified by:
setMaxRowsin interfaceStatement- Throws:
SQLException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceStatement- Throws:
SQLException
-
close
Closes the Statement and removes the object from the list of Statements kept in theFireboltConnectionif the param removeFromConnection is set to true- Parameters:
removeFromConnection- whether theFireboltStatementmust be removed from the parentFireboltConnection- Throws:
SQLException
-
isClosed
public boolean isClosed() -
getResultSet
- Specified by:
getResultSetin interfaceStatement
-
getMoreResults
- Specified by:
getMoreResultsin interfaceStatement- Throws:
SQLException
-
getUpdateCount
public int getUpdateCount()- Specified by:
getUpdateCountin interfaceStatement
-
closeOnCompletion
public void closeOnCompletion()- Specified by:
closeOnCompletionin interfaceStatement
-
isCloseOnCompletion
public boolean isCloseOnCompletion()- Specified by:
isCloseOnCompletionin interfaceStatement
-
getQueryTimeout
public int getQueryTimeout()- Specified by:
getQueryTimeoutin interfaceStatement
-
setQueryTimeout
public void setQueryTimeout(int seconds) - Specified by:
setQueryTimeoutin interfaceStatement
-
validateStatementIsNotClosed
- Throws:
SQLException
-
getOneQueryStatementInfo
protected StatementInfoWrapper getOneQueryStatementInfo(List<StatementInfoWrapper> statementInfoList) throws SQLException - Throws:
SQLException
-
isStatementRunning
public boolean isStatementRunning()Returns true if the statement is currently running- Returns:
- true if the statement is currently running
-
getMaxFieldSize
public int getMaxFieldSize()- Specified by:
getMaxFieldSizein interfaceStatement
-
setMaxFieldSize
public void setMaxFieldSize(int max) - Specified by:
setMaxFieldSizein interfaceStatement
-
setEscapeProcessing
public void setEscapeProcessing(boolean enable) - Specified by:
setEscapeProcessingin interfaceStatement
-
setCursorName
- Specified by:
setCursorNamein interfaceStatement- Throws:
SQLException
-
getFetchDirection
public int getFetchDirection()- Specified by:
getFetchDirectionin interfaceStatement
-
setFetchDirection
- Specified by:
setFetchDirectionin interfaceStatement- Throws:
SQLException
-
getFetchSize
- Specified by:
getFetchSizein interfaceStatement- Throws:
SQLException
-
setFetchSize
- Specified by:
setFetchSizein interfaceStatement- Throws:
SQLException
-
getResultSetConcurrency
public int getResultSetConcurrency()- Specified by:
getResultSetConcurrencyin interfaceStatement
-
getResultSetType
public int getResultSetType()- Specified by:
getResultSetTypein interfaceStatement
-
addBatch
-
clearBatch
public void clearBatch()- Specified by:
clearBatchin interfaceStatement
-
executeBatch
- Specified by:
executeBatchin interfaceStatement- Throws:
SQLException
-
getGeneratedKeys
- Specified by:
getGeneratedKeysin interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
getResultSetHoldability
public int getResultSetHoldability()- Specified by:
getResultSetHoldabilityin interfaceStatement
-
isPoolable
public boolean isPoolable()- Specified by:
isPoolablein interfaceStatement
-
setPoolable
- Specified by:
setPoolablein interfaceStatement- Throws:
SQLException
-
hasMoreResults
public boolean hasMoreResults()Returns true if the statement has more results- Returns:
- true if the statement has more results
-