public abstract class BaseYdbStatement extends Object implements YdbStatement
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BaseYdbStatement.YdbResult |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Constructor and Description |
|---|
BaseYdbStatement(Logger logger,
YdbConnection connection,
int resultSetType,
boolean isPoolable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteExplainQuery, executeQuery, executeScanQuery, executeSchemeQueryaddBatch, clearBatch, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getLargeMaxRows, getLargeUpdateCount, setLargeMaxRowsisWrapperFor, unwrappublic BaseYdbStatement(Logger logger, YdbConnection connection, int resultSetType, boolean isPoolable)
public YdbConnection getConnection()
getConnection in interface StatementgetConnection in interface YdbStatementpublic void close()
close in interface AutoCloseableclose in interface Statementpublic int getResultSetType()
getResultSetType in interface Statementpublic SQLWarning getWarnings()
getWarnings in interface Statementpublic void clearWarnings()
clearWarnings in interface Statementpublic int getQueryTimeout()
getQueryTimeout in interface Statementpublic void setQueryTimeout(int seconds)
throws SQLException
setQueryTimeout in interface StatementSQLExceptionpublic void setPoolable(boolean poolable)
setPoolable in interface Statementpublic boolean isPoolable()
isPoolable in interface Statementpublic int getMaxRows()
getMaxRows in interface Statementpublic void setMaxRows(int max)
setMaxRows in interface Statementpublic YdbResultSet getResultSet() throws SQLException
getResultSet in interface StatementgetResultSet in interface YdbStatementSQLExceptionpublic YdbResultSet getResultSetAt(int resultSetIndex) throws SQLException
YdbStatementStatement.getMoreResults() traverse,
in case previous rows were not removed by providing Statement.CLOSE_ALL_RESULTS
or Statement.CLOSE_CURRENT_RESULTgetResultSetAt in interface YdbStatementresultSetIndex - indexStatement.getMoreResults()SQLException - when trying to get result set on closed connectionpublic boolean getMoreResults(int current)
throws SQLException
getMoreResults in interface StatementSQLExceptionpublic int getUpdateCount()
throws SQLException
getUpdateCount in interface StatementSQLExceptionprotected void cleanState()
throws SQLException
SQLExceptionprotected boolean updateState(List<BaseYdbStatement.YdbResult> results)
protected List<BaseYdbStatement.YdbResult> executeSchemeQuery(YdbQuery query) throws SQLException
SQLExceptionprotected List<BaseYdbStatement.YdbResult> executeExplainQuery(YdbQuery query) throws SQLException
SQLExceptionprotected List<BaseYdbStatement.YdbResult> executeScanQuery(String yql, tech.ydb.table.query.Params params) throws SQLException
SQLExceptionprotected List<BaseYdbStatement.YdbResult> executeDataQuery(YdbQuery query, String yql, tech.ydb.table.query.Params params) throws SQLException
SQLExceptionpublic void setCursorName(String name) throws SQLFeatureNotSupportedException
setCursorName in interface StatementSQLFeatureNotSupportedExceptionpublic ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys in interface StatementSQLExceptionpublic int getResultSetHoldability()
getResultSetHoldability in interface Statementpublic void closeOnCompletion()
closeOnCompletion in interface Statementpublic boolean isCloseOnCompletion()
isCloseOnCompletion in interface Statementpublic int getMaxFieldSize()
getMaxFieldSize in interface Statementpublic void setMaxFieldSize(int max)
setMaxFieldSize in interface Statementpublic void setEscapeProcessing(boolean enable)
setEscapeProcessing in interface Statementpublic boolean getMoreResults()
throws SQLException
getMoreResults in interface StatementSQLExceptionpublic void setFetchDirection(int direction)
throws SQLException
setFetchDirection in interface StatementSQLExceptionpublic int getFetchDirection()
getFetchDirection in interface Statementpublic void setFetchSize(int rows)
setFetchSize in interface Statementpublic int getFetchSize()
getFetchSize in interface Statementpublic int getResultSetConcurrency()
getResultSetConcurrency in interface StatementCopyright © 2024. All rights reserved.