public class KyuubiPreparedStatement extends KyuubiStatement implements SQLPreparedStatement
DEFAULT_ARROW_TIMESTAMP_AS_STRING, DEFAULT_FETCH_SIZE, DEFAULT_RESULT_FORMAT, LOGCLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Constructor and Description |
|---|
KyuubiPreparedStatement(KyuubiConnection connection,
org.apache.kyuubi.shaded.hive.service.rpc.thrift.TCLIService.Iface client,
org.apache.kyuubi.shaded.hive.service.rpc.thrift.TSessionHandle sessHandle,
String sql) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearParameters() |
boolean |
execute()
Invokes executeQuery(sql) using the sql provided to the constructor.
|
ResultSet |
executeQuery()
Invokes executeQuery(sql) using the sql provided to the constructor.
|
int |
executeUpdate() |
void |
setBigDecimal(int parameterIndex,
BigDecimal x) |
void |
setBinaryStream(int parameterIndex,
InputStream x) |
void |
setBoolean(int parameterIndex,
boolean x) |
void |
setByte(int parameterIndex,
byte x) |
void |
setDate(int parameterIndex,
Date x) |
void |
setDouble(int parameterIndex,
double x) |
void |
setFloat(int parameterIndex,
float x) |
void |
setInt(int parameterIndex,
int x) |
void |
setLong(int parameterIndex,
long x) |
void |
setNull(int parameterIndex,
int sqlType) |
void |
setNull(int paramIndex,
int sqlType,
String typeName) |
void |
setObject(int parameterIndex,
Object x) |
void |
setShort(int parameterIndex,
short x) |
void |
setString(int parameterIndex,
String x) |
void |
setTimestamp(int parameterIndex,
Timestamp x) |
cancel, clearWarnings, close, execute, executeAsync, executeGetCurrentCatalog, executeGetCurrentDatabase, executePython, executeQuery, executeScala, executeSetCurrentCatalog, executeSetCurrentDatabase, executeUpdate, getConnection, getExecLog, getFetchDirection, getFetchSize, getMaxRows, getMoreResults, getMoreResults, getQueryId, getQueryLog, getQueryTimeout, getResultSet, getResultSetType, getUpdateCount, getWarnings, getYarnATSGuid, hasMoreLogs, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setFetchDirection, setFetchSize, setInPlaceUpdateStream, setMaxRows, setQueryTimeout, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddBatch, getMetaData, getParameterMetaData, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setObject, setObject, setRef, setRowId, setSQLXML, setTime, setTime, setTimestamp, setUnicodeStream, setURLexecuteLargeUpdate, setObject, setObjectaddBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeoutisWrapperFor, unwrapaddBatch, clearBatch, closeOnCompletion, execute, execute, execute, executeBatch, executeUpdate, executeUpdate, executeUpdate, getGeneratedKeys, getMaxFieldSize, getResultSetConcurrency, getResultSetHoldability, setCursorName, setEscapeProcessing, setMaxFieldSize, setPoolablepublic KyuubiPreparedStatement(KyuubiConnection connection, org.apache.kyuubi.shaded.hive.service.rpc.thrift.TCLIService.Iface client, org.apache.kyuubi.shaded.hive.service.rpc.thrift.TSessionHandle sessHandle, String sql)
public void clearParameters()
throws SQLException
clearParameters in interface PreparedStatementSQLExceptionpublic boolean execute()
throws SQLException
execute in interface PreparedStatementSQLExceptionpublic ResultSet executeQuery() throws SQLException
executeQuery in interface PreparedStatementSQLExceptionpublic int executeUpdate()
throws SQLException
executeUpdate in interface PreparedStatementSQLExceptionpublic void setBigDecimal(int parameterIndex,
BigDecimal x)
throws SQLException
setBigDecimal in interface PreparedStatementSQLExceptionpublic void setBinaryStream(int parameterIndex,
InputStream x)
throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic void setBoolean(int parameterIndex,
boolean x)
throws SQLException
setBoolean in interface PreparedStatementSQLExceptionpublic void setByte(int parameterIndex,
byte x)
throws SQLException
setByte in interface PreparedStatementSQLExceptionpublic void setDate(int parameterIndex,
Date x)
throws SQLException
setDate in interface PreparedStatementSQLExceptionpublic void setDouble(int parameterIndex,
double x)
throws SQLException
setDouble in interface PreparedStatementSQLExceptionpublic void setFloat(int parameterIndex,
float x)
throws SQLException
setFloat in interface PreparedStatementSQLExceptionpublic void setInt(int parameterIndex,
int x)
throws SQLException
setInt in interface PreparedStatementSQLExceptionpublic void setLong(int parameterIndex,
long x)
throws SQLException
setLong in interface PreparedStatementSQLExceptionpublic void setNull(int parameterIndex,
int sqlType)
throws SQLException
setNull in interface PreparedStatementSQLExceptionpublic void setNull(int paramIndex,
int sqlType,
String typeName)
throws SQLException
setNull in interface PreparedStatementSQLExceptionpublic void setObject(int parameterIndex,
Object x)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setShort(int parameterIndex,
short x)
throws SQLException
setShort in interface PreparedStatementSQLExceptionpublic void setString(int parameterIndex,
String x)
throws SQLException
setString in interface PreparedStatementSQLExceptionpublic void setTimestamp(int parameterIndex,
Timestamp x)
throws SQLException
setTimestamp in interface PreparedStatementSQLExceptionCopyright © 2023 The Apache Software Foundation. All rights reserved.