Package com.ocient.jdbc
Class XGPreparedStatement
java.lang.Object
com.ocient.jdbc.XGStatement
com.ocient.jdbc.XGPreparedStatement
- All Implemented Interfaces:
AutoCloseable,PreparedStatement,Statement,Wrapper
-
Field Summary
Fields inherited from class com.ocient.jdbc.XGStatement
closed, conn, errors, force, forceNextRedirect, oneShotForce, parms, poolable, result, resultSetInterruptReason, timeoutMillis, timeTakenToCreateMillis, warningsFields 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
ConstructorsConstructorDescriptionXGPreparedStatement(XGConnection conn, String sql) XGPreparedStatement(XGConnection conn, String sql, int arg1, int arg2) XGPreparedStatement(XGConnection conn, String sql, int arg1, int arg2, int arg3) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBatch()voidbooleanexecute()longintstatic XGPreparedStatementnewXGPreparedStatement(XGConnection conn, String sql, boolean force, boolean oneShotForce) Deprecated.static XGPreparedStatementnewXGPreparedStatement(XGConnection conn, String sql, int type, int concur, boolean force, boolean oneShotForce) Deprecated.static XGPreparedStatementnewXGPreparedStatement(XGConnection conn, String sql, int type, int concur, int hold, boolean force, boolean oneShotForce) Deprecated.protected CompletionStage<CompletableFutures.SQLResult<Void>> reset()voidvoidsetAsciiStream(int parameterIndex, InputStream x) voidsetAsciiStream(int parameterIndex, InputStream x, int length) voidsetAsciiStream(int parameterIndex, InputStream x, long length) voidsetBigDecimal(int parameterIndex, BigDecimal x) voidsetBinaryStream(int parameterIndex, InputStream x) voidsetBinaryStream(int parameterIndex, InputStream x, int length) voidsetBinaryStream(int parameterIndex, InputStream x, long length) voidsetBlob(int parameterIndex, InputStream inputStream) voidsetBlob(int parameterIndex, InputStream inputStream, long length) voidvoidsetBoolean(int parameterIndex, boolean x) voidsetByte(int parameterIndex, byte x) voidsetBytes(int parameterIndex, byte[] x) voidsetCharacterStream(int parameterIndex, Reader reader) voidsetCharacterStream(int parameterIndex, Reader reader, int length) voidsetCharacterStream(int parameterIndex, Reader reader, long length) voidvoidvoidvoidvoidvoidsetDouble(int parameterIndex, double x) voidsetFloat(int parameterIndex, float x) voidsetInt(int parameterIndex, int x) voidsetLong(int parameterIndex, long x) voidsetNCharacterStream(int parameterIndex, Reader value) voidsetNCharacterStream(int parameterIndex, Reader value, long length) voidvoidvoidvoidsetNString(int parameterIndex, String value) voidsetNull(int parameterIndex, int sqlType) voidvoidvoidvoidvoidvoidvoidsetShort(int parameterIndex, short x) voidvoidvoidvoidvoidsetTimestamp(int parameterIndex, Timestamp x) voidsetTimestamp(int parameterIndex, Timestamp x, Calendar cal) voidsetUnicodeStream(int parameterIndex, InputStream x, int length) voidMethods inherited from class com.ocient.jdbc.XGStatement
addBatch, cancel, cancel, cancelAsync, cancelQuery, clearBatch, clearErrors, clearWarnings, close, closeAsync, closeOnCompletion, closeResultSet, dissociateQuery, execute, execute, execute, execute, executeBatch, executeInlinePlan, executeLargeUpdate, executePlan, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, explain, explainPipeline, explainPlan, exportCreatePipeline, exportMlModel, exportPipeline, exportTable, exportTranslation, exportView, fetchSystemMetadataInt, fetchSystemMetadataResultSet, fetchSystemMetadataString, finalize, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryId, getQueryTimeout, getQueryTimeoutMillis, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getSql, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, killQuery, listPlan, logQueryNoResults, logQueryWithResults, monitorTask, newXGStatement, newXGStatement, newXGStatement, newXGStatement, passUpCancel, redirect, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setForceNextRedirect, setKMLFile, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, toString, transformNextResultSet, unwrapMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.sql.PreparedStatement
setObject, setObjectMethods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, 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, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeoutMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Constructor Details
-
XGPreparedStatement
- Throws:
SQLException
-
XGPreparedStatement
- Throws:
SQLException
-
XGPreparedStatement
public XGPreparedStatement(XGConnection conn, String sql, int arg1, int arg2, int arg3) throws SQLException - Throws:
SQLException
-
-
Method Details
-
newXGPreparedStatement
@Deprecated public static XGPreparedStatement newXGPreparedStatement(XGConnection conn, String sql, boolean force, boolean oneShotForce) throws SQLException Deprecated.This method is deprecated. Please fork the connection usingXGConnection.forkConnection(Hint, boolean)and use the publicconstructor.invalid reference
XGPreparedStatement#XGPreparedStatement(XGConnection)- Parameters:
conn- the connection to forksql- the statementforce- whether or not to disable redirectoneShotForce- set totrueto bypass the load balancer on connection- Returns:
- Throws:
SQLException
-
newXGPreparedStatement
@Deprecated public static XGPreparedStatement newXGPreparedStatement(XGConnection conn, String sql, int type, int concur, boolean force, boolean oneShotForce) throws SQLException Deprecated.This method is deprecated. Please fork the connection usingXGConnection.forkConnection(Hint, boolean)and use the publicconstructor.invalid reference
XGPreparedStatement#XGPreparedStatement(XGConnection)- Parameters:
conn- the connection to forksql- the statementtype- statement flagconcur- statement flagforce- whether or not to disable redirectoneShotForce- set totrueto bypass the load balancer on connection- Returns:
- Throws:
SQLException
-
newXGPreparedStatement
@Deprecated public static XGPreparedStatement newXGPreparedStatement(XGConnection conn, String sql, int type, int concur, int hold, boolean force, boolean oneShotForce) throws SQLException Deprecated.This method is deprecated. Please fork the connection usingXGConnection.forkConnection(Hint, boolean)and use the publicconstructor.invalid reference
XGPreparedStatement#XGPreparedStatement(XGConnection)- Parameters:
conn- the connection to forksql- the statementtype- statement flagconcur- statement flaghold- statement flagforce- whether or not to disable redirectoneShotForce- set totrueto bypass the load balancer on connection- Returns:
- Throws:
SQLException
-
addBatch
- Specified by:
addBatchin interfacePreparedStatement- Throws:
SQLException
-
clearParameters
- Specified by:
clearParametersin interfacePreparedStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfacePreparedStatement- Throws:
SQLException
-
executeQuery
- Specified by:
executeQueryin interfacePreparedStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfacePreparedStatement- Throws:
SQLException
-
executeLargeUpdate
- Specified by:
executeLargeUpdatein interfacePreparedStatement- Throws:
SQLException
-
getMetaData
- Specified by:
getMetaDatain interfacePreparedStatement- Throws:
SQLException
-
getParameterMetaData
- Specified by:
getParameterMetaDatain interfacePreparedStatement- Throws:
SQLException
-
reset
- Overrides:
resetin classXGStatement
-
setArray
- Specified by:
setArrayin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setBigDecimal
- Specified by:
setBigDecimalin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
setBlob
- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setBlob
- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setBlob
- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setBoolean
- Specified by:
setBooleanin interfacePreparedStatement- Throws:
SQLException
-
setByte
- Specified by:
setBytein interfacePreparedStatement- Throws:
SQLException
-
setBytes
- Specified by:
setBytesin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setClob
- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setClob
- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setClob
- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setDate
- Specified by:
setDatein interfacePreparedStatement- Throws:
SQLException
-
setDate
- Specified by:
setDatein interfacePreparedStatement- Throws:
SQLException
-
setDouble
- Specified by:
setDoublein interfacePreparedStatement- Throws:
SQLException
-
setFloat
- Specified by:
setFloatin interfacePreparedStatement- Throws:
SQLException
-
setInt
- Specified by:
setIntin interfacePreparedStatement- Throws:
SQLException
-
setLong
- Specified by:
setLongin interfacePreparedStatement- Throws:
SQLException
-
setNCharacterStream
- Specified by:
setNCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setNCharacterStream
- Specified by:
setNCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setNClob
- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
setNClob
- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
setNClob
- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
setNString
- Specified by:
setNStringin interfacePreparedStatement- Throws:
SQLException
-
setNull
- Specified by:
setNullin interfacePreparedStatement- Throws:
SQLException
-
setNull
- Specified by:
setNullin interfacePreparedStatement- Throws:
SQLException
-
setObject
- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
setObject
- Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
setObject
public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException - Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
setRef
- Specified by:
setRefin interfacePreparedStatement- Throws:
SQLException
-
setRowId
- Specified by:
setRowIdin interfacePreparedStatement- Throws:
SQLException
-
setShort
- Specified by:
setShortin interfacePreparedStatement- Throws:
SQLException
-
setSQLXML
- Specified by:
setSQLXMLin interfacePreparedStatement- Throws:
SQLException
-
setString
- Specified by:
setStringin interfacePreparedStatement- Throws:
SQLException
-
setTime
- Specified by:
setTimein interfacePreparedStatement- Throws:
SQLException
-
setTime
- Specified by:
setTimein interfacePreparedStatement- Throws:
SQLException
-
setTimestamp
- Specified by:
setTimestampin interfacePreparedStatement- Throws:
SQLException
-
setTimestamp
- Specified by:
setTimestampin interfacePreparedStatement- Throws:
SQLException
-
setUnicodeStream
- Specified by:
setUnicodeStreamin interfacePreparedStatement- Throws:
SQLException
-
setURL
- Specified by:
setURLin interfacePreparedStatement- Throws:
SQLException
-