Class FireboltBackendPreparedStatement
java.lang.Object
com.firebolt.jdbc.JdbcBase
com.firebolt.jdbc.statement.FireboltStatement
com.firebolt.jdbc.statement.preparedstatement.FireboltPreparedStatement
com.firebolt.jdbc.statement.preparedstatement.FireboltBackendPreparedStatement
- All Implemented Interfaces:
GenericWrapper
,AutoCloseable
,PreparedStatement
,Statement
,Wrapper
-
Field Summary
Fields inherited from class com.firebolt.jdbc.statement.preparedstatement.FireboltPreparedStatement
providedParameters, rawStatement
Fields inherited from class com.firebolt.jdbc.statement.FireboltStatement
sessionProperties
Fields 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
ConstructorsConstructorDescriptionFireboltBackendPreparedStatement
(FireboltStatementService statementService, FireboltConnection connection, String sql) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<StatementInfoWrapper>
prepareSQL
(@NonNull Map<Integer, Object> params) void
void
setBigDecimal
(int parameterIndex, BigDecimal x) void
setBoolean
(int parameterIndex, boolean x) void
setByte
(int parameterIndex, byte x) void
protected <T extends Date>
voidsetDateTime
(int parameterIndex, T datetime, Calendar calendar, JavaTypeToFireboltSQLString type) 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
void
void
void
void
setShort
(int parameterIndex, short x) void
void
setTimestamp
(int parameterIndex, Timestamp x) Methods inherited from class com.firebolt.jdbc.statement.preparedstatement.FireboltPreparedStatement
addBatch, asSingleStatement, clearParameters, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, formatDecimalNumber, getMetaData, getParameterMetaData, setAsciiStream, setAsciiStream, setAsciiStream, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setRef, setRowId, setSQLXML, setTime, setTime, setTimestamp, setUnicodeStream, setURL, validateParamIndex
Methods inherited from class com.firebolt.jdbc.statement.FireboltStatement
addBatch, cancel, clearBatch, close, close, closeOnCompletion, execute, execute, execute, execute, executeAsync, executeQuery, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getOneQueryStatementInfo, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, hasMoreResults, isClosed, isCloseOnCompletion, isPoolable, isStatementRunning, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, validateStatementIsNotClosed
Methods inherited from class com.firebolt.jdbc.JdbcBase
addWarning, clearWarnings, getWarnings
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.firebolt.jdbc.GenericWrapper
isWrapperFor, unwrap
Methods inherited from interface java.sql.PreparedStatement
executeLargeUpdate, setObject, setObject
Methods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, execute, execute, execute, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
-
Constructor Details
-
FireboltBackendPreparedStatement
public FireboltBackendPreparedStatement(FireboltStatementService statementService, FireboltConnection connection, String sql)
-
-
Method Details
-
setNull
- Specified by:
setNull
in interfacePreparedStatement
- Overrides:
setNull
in classFireboltPreparedStatement
- Throws:
SQLException
-
setBoolean
- Specified by:
setBoolean
in interfacePreparedStatement
- Overrides:
setBoolean
in classFireboltPreparedStatement
- Throws:
SQLException
-
setByte
- Specified by:
setByte
in interfacePreparedStatement
- Overrides:
setByte
in classFireboltPreparedStatement
- Throws:
SQLException
-
setShort
- Specified by:
setShort
in interfacePreparedStatement
- Overrides:
setShort
in classFireboltPreparedStatement
- Throws:
SQLException
-
setInt
- Specified by:
setInt
in interfacePreparedStatement
- Overrides:
setInt
in classFireboltPreparedStatement
- Throws:
SQLException
-
setLong
- Specified by:
setLong
in interfacePreparedStatement
- Overrides:
setLong
in classFireboltPreparedStatement
- Throws:
SQLException
-
setFloat
- Specified by:
setFloat
in interfacePreparedStatement
- Overrides:
setFloat
in classFireboltPreparedStatement
- Throws:
SQLException
-
setDouble
- Specified by:
setDouble
in interfacePreparedStatement
- Overrides:
setDouble
in classFireboltPreparedStatement
- Throws:
SQLException
-
setBigDecimal
- Specified by:
setBigDecimal
in interfacePreparedStatement
- Overrides:
setBigDecimal
in classFireboltPreparedStatement
- Throws:
SQLException
-
setString
- Specified by:
setString
in interfacePreparedStatement
- Overrides:
setString
in classFireboltPreparedStatement
- Throws:
SQLException
-
setDate
- Specified by:
setDate
in interfacePreparedStatement
- Overrides:
setDate
in classFireboltPreparedStatement
- Throws:
SQLException
-
setTimestamp
- Specified by:
setTimestamp
in interfacePreparedStatement
- Overrides:
setTimestamp
in classFireboltPreparedStatement
- Throws:
SQLException
-
setObject
- Specified by:
setObject
in interfacePreparedStatement
- Overrides:
setObject
in classFireboltPreparedStatement
- Throws:
SQLException
-
setObject
- Specified by:
setObject
in interfacePreparedStatement
- Overrides:
setObject
in classFireboltPreparedStatement
- Throws:
SQLException
-
setNull
- Specified by:
setNull
in interfacePreparedStatement
- Overrides:
setNull
in classFireboltPreparedStatement
- Throws:
SQLException
-
setArray
- Specified by:
setArray
in interfacePreparedStatement
- Overrides:
setArray
in classFireboltPreparedStatement
- Throws:
SQLException
-
setObject
public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException - Specified by:
setObject
in interfacePreparedStatement
- Overrides:
setObject
in classFireboltPreparedStatement
- Throws:
SQLException
-
prepareSQL
- Overrides:
prepareSQL
in classFireboltPreparedStatement
-
setDateTime
protected <T extends Date> void setDateTime(int parameterIndex, T datetime, Calendar calendar, JavaTypeToFireboltSQLString type) throws SQLException - Overrides:
setDateTime
in classFireboltPreparedStatement
- Throws:
SQLException
-