public abstract class BaseYdbStatement extends Object implements YdbStatement
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 YdbValidator getValidator()
getValidator in interface YdbStatementpublic YdbConnection getConnection()
getConnection in interface StatementgetConnection in interface YdbStatementpublic void close()
throws SQLException
close in interface AutoCloseableclose in interface StatementSQLExceptionpublic int getResultSetType()
getResultSetType in interface Statementpublic SQLWarning getWarnings() throws SQLException
getWarnings in interface StatementSQLExceptionpublic 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 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(YdbQueryResult result) throws SQLException
SQLExceptionprotected YdbQueryResult executeBulkUpsert(YdbQuery query, String tablePath, tech.ydb.table.values.ListValue rows) throws SQLException
SQLExceptionprotected YdbQueryResult executeExplainQuery(YdbQuery query) throws SQLException
SQLExceptionprotected YdbQueryResult executeDataQuery(YdbQuery query, String yql, tech.ydb.table.query.Params params) throws SQLException
SQLExceptionprotected YdbQueryResult executeSchemeQuery(YdbQuery query) throws SQLException
SQLExceptionprotected YdbQueryResult executeScanQuery(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.