Class CallableStatement
java.lang.Object
com.mysql.jdbc.StatementImpl
com.mysql.jdbc.PreparedStatement
com.mysql.jdbc.CallableStatement
- All Implemented Interfaces:
Statement, Wrapper, AutoCloseable, CallableStatement, PreparedStatement, Statement, Wrapper
- Direct Known Subclasses:
JDBC4CallableStatement
Representation of stored procedures for JDBC
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected classNested classes/interfaces inherited from class PreparedStatement
PreparedStatement.AppendingBatchVisitor, PreparedStatement.BatchParams, PreparedStatement.BatchVisitor, PreparedStatement.EmulatedPreparedStatementBindings, PreparedStatement.EndPoint, PreparedStatement.ParseInfoNested classes/interfaces inherited from class StatementImpl
StatementImpl.CancelTask -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected static final Constructor<?> protected static final Constructor<?> protected booleanFields inherited from class PreparedStatement
batchCommandIndex, batchedValuesClause, batchHasPlainStatements, firstCharOfStmt, isLoadDataQuery, isNull, numberOfExecutions, originalSql, parameterCount, parameterMetaData, parameterTypes, parseInfo, rewrittenBatchSize, serverSupportsFracSecs, useTrueBoolean, usingAnsiModeFields inherited from class StatementImpl
batchedArgs, batchedGeneratedKeys, cancelTimeoutMutex, charConverter, charEncoding, clearWarningsCalled, connection, continueBatchOnError, currentCatalog, doEscapeProcessing, generatedKeysResults, holdResultsOpenOverClose, isClosed, lastInsertId, lastQueryIsOnDupKeyUpdate, maxFieldSize, maxRows, ON_DUPLICATE_KEY_UPDATE_CLAUSE, openResults, pedantic, physicalConnection, PING_MARKER, pingTarget, profileSQL, results, resultSetConcurrency, resultSetType, retrieveGeneratedKeys, sendFractionalSeconds, statementCounter, statementExecuting, statementId, timeoutInMillis, updateCount, useLegacyDatetimeCode, USES_VARIABLES_FALSE, USES_VARIABLES_TRUE, USES_VARIABLES_UNKNOWN, useUsageAdvisor, version5013OrNewer, warningChain, wasCancelled, wasCancelledByTimeoutFields inherited from interface Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO -
Constructor Summary
ConstructorsConstructorDescriptionCallableStatement(MySQLConnection conn, CallableStatement.CallableStatementParamInfo paramInfo) Creates a new CallableStatementCallableStatement(MySQLConnection conn, String sql, String catalog, boolean isFunctionCall) Creates a new CallableStatement -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBatch()JDBC 2.0 Add a set of parameters to the batch.protected booleanCheck to see if the statement is safe for read-only slaves after failover.voidIn general, parameter values remain in force for repeated used of a Statement.booleanexecute()Some prepared statements return multiple results; the execute method handles these complex statements as well as the simpler form of statements handled by executeQuery and executeUpdateint[]JDBC 2.0 Submit a batch of commands to the database for execution.long[]JDBC 4.2 Same asStatementImpl.executeBatch()but returns long[] instead of int[].longJDBC 4.2A Prepared SQL query is executed and its ResultSet is returnedintExecute a SQL INSERT, UPDATE or DELETE statement.protected StringfixParameterName(String paramNameIn) Adds 'at' symbol to beginning of parameter names if needed.getArray(int i) getBigDecimal(int parameterIndex) getBigDecimal(int parameterIndex, int scale) Deprecated.getBigDecimal(String parameterName) getBlob(int parameterIndex) booleangetBoolean(int parameterIndex) booleangetBoolean(String parameterName) bytegetByte(int parameterIndex) bytebyte[]getBytes(int parameterIndex) byte[]getClob(int parameterIndex) getDate(int parameterIndex) doublegetDouble(int parameterIndex) doublefloatgetFloat(int parameterIndex) floatprotected static CallableStatementgetInstance(MySQLConnection conn, CallableStatement.CallableStatementParamInfo paramInfo) Creates a callable statement instance -- We need to provide factory-style methods so we can support both JDBC3 (and older) and JDBC4 runtimes, otherwise the class verifier complains when it tries to load JDBC4-only interface classes that are present in JDBC4 method signatures.protected static CallableStatementgetInstance(MySQLConnection conn, String sql, String catalog, boolean isFunctionCall) Creates a callable statement instance -- We need to provide factory-style methods so we can support both JDBC3 (and older) and JDBC4 runtimes, otherwise the class verifier complains when it tries to load JDBC4-only interface classes that are present in JDBC4 method signatures.intgetInt(int parameterIndex) intlonggetLong(int parameterIndex) longprotected intgetNamedParamIndex(String paramName, boolean forOut) getObject(int parameterIndex) <T> T<T> Tprotected ResultSetInternalMethodsgetOutputParameters(int paramIndex) Returns the ResultSet that holds the output parameters, or throws an appropriate exception if none exist, or they weren't returned.protected intFor calling stored functions, this will be -1 as we don't really count the first '?'protected ResultSetgetParamTypes(String catalog, String routineName) getRef(int parameterIndex) shortgetShort(int parameterIndex) shortgetString(int parameterIndex) getTime(int parameterIndex) getTimestamp(int parameterIndex) getTimestamp(int parameterIndex, Calendar cal) getTimestamp(String parameterName) getTimestamp(String parameterName, Calendar cal) getURL(int parameterIndex) protected intmapOutputParameterIndexToRsIndex(int paramIndex) voidregisterOutParameter(int parameterIndex, int sqlType) voidregisterOutParameter(int parameterIndex, int sqlType, int scale) voidregisterOutParameter(int parameterIndex, int sqlType, String typeName) voidregisterOutParameter(String parameterName, int sqlType) voidregisterOutParameter(String parameterName, int sqlType, int scale) voidregisterOutParameter(String parameterName, int sqlType, String typeName) voidsetAsciiStream(String parameterName, InputStream x) voidsetAsciiStream(String parameterName, InputStream x, int length) voidsetAsciiStream(String parameterName, InputStream x, long length) voidsetBigDecimal(String parameterName, BigDecimal x) voidsetBinaryStream(String parameterName, InputStream x) voidsetBinaryStream(String parameterName, InputStream x, int length) voidsetBinaryStream(String parameterName, InputStream x, long length) voidsetBlob(String parameterName, InputStream inputStream) voidsetBlob(String parameterName, InputStream inputStream, long length) voidvoidsetBoolean(String parameterName, boolean x) voidvoidvoidsetCharacterStream(String parameterName, Reader reader) voidsetCharacterStream(String parameterName, Reader reader, int length) voidsetCharacterStream(String parameterName, Reader reader, long length) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidsetNCharacterStream(String parameterName, Reader value) voidsetNCharacterStream(String parameterName, Reader value, long length) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidsetTimestamp(String parameterName, Timestamp x) voidsetTimestamp(String parameterName, Timestamp x, Calendar cal) voidbooleanwasNull()Methods inherited from class PreparedStatement
addBatch, asSql, asSql, canRewrite, canRewriteAsMultiValueInsertAtSqlLevel, checkBounds, clearBatch, computeBatchSize, computeMaxParameterSetSizeAndBatchSize, containsOnDuplicateKeyUpdateInSQL, detectFractionalSecondsSupport, executeBatchedInserts, executeBatchInternal, executeBatchSerially, executeInternal, executePreparedBatchAsMultiStatement, executeUpdateInternal, executeUpdateInternal, fillSendPacket, fillSendPacket, getBytesRepresentation, getBytesRepresentationForBatch, getDateTime, getInstance, getInstance, getInstance, getLocationOfOnDuplicateKeyUpdate, getMetaData, getNonRewrittenSql, getParameterBindings, getParseInfo, getPreparedSql, getRewrittenBatchSize, getUpdateCount, getValuesClause, isNull, isSelectQuery, prepareBatchedInsertSQL, readFully, realClose, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setBytes, setBytesNoEscape, setBytesNoEscapeNoQuotes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setInternal, setInternal, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setOneBatchedParameterSet, setRef, setRetrieveGeneratedKeys, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setTimestampInternal, setUnicodeStream, setURL, toStringMethods inherited from class StatementImpl
cancel, checkClosed, checkForDml, checkNullOrEmptyQuery, clearWarnings, close, closeAllOpenResults, closeOnCompletion, containsOnDuplicateKeyInString, createStreamingResultSet, disableStreamingResults, doPingInstead, enableStreamingResults, execute, execute, execute, execute, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeSimpleNonQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdateInternal, findStartOfStatement, generatePingResultSet, getBatchedArgs, getBatchedGeneratedKeys, getBatchedGeneratedKeys, getCalendarInstanceForSessionOrNew, getConnection, getExceptionInterceptor, getFetchDirection, getFetchSize, getGeneratedKeys, getGeneratedKeysInternal, getGeneratedKeysInternal, getId, getLargeMaxRows, getLargeUpdateCount, getLastInsertID, getLocalInfileInputStream, getLongUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getOnDuplicateKeyLocation, getOpenResultSetCount, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetInternal, getResultSetType, getWarnings, handleExceptionForBatch, hasDeadlockOrTimeoutRolledBackTx, implicitlyCloseAllOpenResults, isClosed, isCloseOnCompletion, isCursorRequired, isPoolable, isWrapperFor, processMultiCountsAndKeys, removeOpenResultSet, resetCancelledState, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setHoldResultsOpenOverClose, setLargeMaxRows, setLocalInfileInputStream, setMaxFieldSize, setMaxRows, setPingTarget, setPoolable, setQueryTimeout, setResultSetConcurrency, setResultSetType, setupStreamingTimeout, statementBegins, unwrapMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface CallableStatement
getCharacterStream, getCharacterStream, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getRowId, getRowId, getSQLXML, getSQLXML, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, setNClob, setNClob, setNClob, setNString, setObject, setObject, setRowId, setSQLXMLMethods inherited from interface PreparedStatement
getMetaData, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURLMethods inherited from interface Statement
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, execute, execute, execute, execute, 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 Wrapper
isWrapperFor, unwrap
-
Field Details
-
JDBC_4_CSTMT_2_ARGS_CTOR
-
JDBC_4_CSTMT_4_ARGS_CTOR
-
callingStoredFunction
protected boolean callingStoredFunction -
outputParamWasNull
protected boolean outputParamWasNull -
paramInfo
-
-
Constructor Details
-
CallableStatement
public CallableStatement(MySQLConnection conn, CallableStatement.CallableStatementParamInfo paramInfo) throws SQLException Creates a new CallableStatement- Parameters:
conn- the connection creating this statementparamInfo- the SQL to prepare- Throws:
SQLException- if an error occurs
-
CallableStatement
public CallableStatement(MySQLConnection conn, String sql, String catalog, boolean isFunctionCall) throws SQLException Creates a new CallableStatement- Parameters:
conn- the connection creating this statementsql- the SQL to preparecatalog- the current catalog- Throws:
SQLException- if an error occurs
-
-
Method Details
-
getInstance
protected static CallableStatement getInstance(MySQLConnection conn, String sql, String catalog, boolean isFunctionCall) throws SQLException Creates a callable statement instance -- We need to provide factory-style methods so we can support both JDBC3 (and older) and JDBC4 runtimes, otherwise the class verifier complains when it tries to load JDBC4-only interface classes that are present in JDBC4 method signatures.- Throws:
SQLException
-
getInstance
protected static CallableStatement getInstance(MySQLConnection conn, CallableStatement.CallableStatementParamInfo paramInfo) throws SQLException Creates a callable statement instance -- We need to provide factory-style methods so we can support both JDBC3 (and older) and JDBC4 runtimes, otherwise the class verifier complains when it tries to load JDBC4-only interface classes that are present in JDBC4 method signatures.- Throws:
SQLException
-
addBatch
Description copied from class:PreparedStatementJDBC 2.0 Add a set of parameters to the batch.- Specified by:
addBatchin interfacePreparedStatement- Overrides:
addBatchin classPreparedStatement- Throws:
SQLException- if a database-access error occurs.- See Also:
-
clearParameters
Description copied from class:PreparedStatementIn general, parameter values remain in force for repeated used of a Statement. Setting a parameter value automatically clears its previous value. However, in some cases, it is useful to immediately release the resources used by the current parameter values; this can be done by calling clearParameters- Specified by:
clearParametersin interfacePreparedStatement- Overrides:
clearParametersin classPreparedStatement- Throws:
SQLException- if a database access error occurs
-
getParamTypes
- Throws:
SQLException
-
execute
Description copied from class:PreparedStatementSome prepared statements return multiple results; the execute method handles these complex statements as well as the simpler form of statements handled by executeQuery and executeUpdate- Specified by:
executein interfacePreparedStatement- Overrides:
executein classPreparedStatement- Returns:
- true if the next result is a ResultSet; false if it is an update count or there are no more results
- Throws:
SQLException- if a database access error occurs
-
executeQuery
Description copied from class:PreparedStatementA Prepared SQL query is executed and its ResultSet is returned- Specified by:
executeQueryin interfacePreparedStatement- Overrides:
executeQueryin classPreparedStatement- Returns:
- a ResultSet that contains the data produced by the query - never null
- Throws:
SQLException- if a database access error occurs
-
executeUpdate
Description copied from class:PreparedStatementExecute a SQL INSERT, UPDATE or DELETE statement. In addition, SQL statements that return nothing such as SQL DDL statements can be executed.- Specified by:
executeUpdatein interfacePreparedStatement- Overrides:
executeUpdatein classPreparedStatement- Returns:
- either the row count for INSERT, UPDATE or DELETE; or 0 for SQL statements that return nothing.
- Throws:
SQLException- if a database access error occurs
-
fixParameterName
Adds 'at' symbol to beginning of parameter names if needed.- Parameters:
paramNameIn- the parameter name to 'fix'- Returns:
- the parameter name with an 'a' prepended, if needed
- Throws:
SQLException- if the parameter name is null or empty.
-
getArray
- Specified by:
getArrayin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getArray
- Specified by:
getArrayin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getBigDecimal
- Specified by:
getBigDecimalin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getBigDecimal
Deprecated.- Specified by:
getBigDecimalin interfaceCallableStatement- Parameters:
parameterIndex-scale-- Throws:
SQLException- See Also:
-
getBigDecimal
- Specified by:
getBigDecimalin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getBlob
- Specified by:
getBlobin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getBlob
- Specified by:
getBlobin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getBoolean
- Specified by:
getBooleanin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getBoolean
- Specified by:
getBooleanin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getByte
- Specified by:
getBytein interfaceCallableStatement- Throws:
SQLException- See Also:
-
getByte
- Specified by:
getBytein interfaceCallableStatement- Throws:
SQLException- See Also:
-
getBytes
- Specified by:
getBytesin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getBytes
- Specified by:
getBytesin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getClob
- Specified by:
getClobin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getClob
- Specified by:
getClobin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getDate
- Specified by:
getDatein interfaceCallableStatement- Throws:
SQLException- See Also:
-
getDate
- Specified by:
getDatein interfaceCallableStatement- Throws:
SQLException- See Also:
-
getDate
- Specified by:
getDatein interfaceCallableStatement- Throws:
SQLException- See Also:
-
getDate
- Specified by:
getDatein interfaceCallableStatement- Throws:
SQLException- See Also:
-
getDouble
- Specified by:
getDoublein interfaceCallableStatement- Throws:
SQLException- See Also:
-
getDouble
- Specified by:
getDoublein interfaceCallableStatement- Throws:
SQLException- See Also:
-
getFloat
- Specified by:
getFloatin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getFloat
- Specified by:
getFloatin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getInt
- Specified by:
getIntin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getInt
- Specified by:
getIntin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getLong
- Specified by:
getLongin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getLong
- Specified by:
getLongin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getNamedParamIndex
- Throws:
SQLException
-
getObject
- Specified by:
getObjectin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getObject
- Specified by:
getObjectin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getObject
- Specified by:
getObjectin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getObject
- Specified by:
getObjectin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getObject
- Specified by:
getObjectin interfaceCallableStatement- Throws:
SQLException
-
getObject
- Specified by:
getObjectin interfaceCallableStatement- Throws:
SQLException
-
getOutputParameters
Returns the ResultSet that holds the output parameters, or throws an appropriate exception if none exist, or they weren't returned.- Returns:
- the ResultSet that holds the output parameters
- Throws:
SQLException- if no output parameters were defined, or if no output parameters were returned.
-
getParameterMetaData
- Specified by:
getParameterMetaDatain interfacePreparedStatement- Overrides:
getParameterMetaDatain classPreparedStatement- Throws:
SQLException- See Also:
-
getRef
- Specified by:
getRefin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getRef
- Specified by:
getRefin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getShort
- Specified by:
getShortin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getShort
- Specified by:
getShortin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getString
- Specified by:
getStringin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getString
- Specified by:
getStringin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getTime
- Specified by:
getTimein interfaceCallableStatement- Throws:
SQLException- See Also:
-
getTime
- Specified by:
getTimein interfaceCallableStatement- Throws:
SQLException- See Also:
-
getTime
- Specified by:
getTimein interfaceCallableStatement- Throws:
SQLException- See Also:
-
getTime
- Specified by:
getTimein interfaceCallableStatement- Throws:
SQLException- See Also:
-
getTimestamp
- Specified by:
getTimestampin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getTimestamp
- Specified by:
getTimestampin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getTimestamp
- Specified by:
getTimestampin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getTimestamp
- Specified by:
getTimestampin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getURL
- Specified by:
getURLin interfaceCallableStatement- Throws:
SQLException- See Also:
-
getURL
- Specified by:
getURLin interfaceCallableStatement- Throws:
SQLException- See Also:
-
mapOutputParameterIndexToRsIndex
- Throws:
SQLException
-
registerOutParameter
- Specified by:
registerOutParameterin interfaceCallableStatement- Throws:
SQLException- See Also:
-
registerOutParameter
- Specified by:
registerOutParameterin interfaceCallableStatement- Throws:
SQLException- See Also:
-
registerOutParameter
public void registerOutParameter(int parameterIndex, int sqlType, String typeName) throws SQLException - Specified by:
registerOutParameterin interfaceCallableStatement- Throws:
SQLException- See Also:
-
registerOutParameter
- Specified by:
registerOutParameterin interfaceCallableStatement- Throws:
SQLException- See Also:
-
registerOutParameter
- Specified by:
registerOutParameterin interfaceCallableStatement- Throws:
SQLException- See Also:
-
registerOutParameter
public void registerOutParameter(String parameterName, int sqlType, String typeName) throws SQLException - Specified by:
registerOutParameterin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setAsciiStream
- Specified by:
setAsciiStreamin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setBigDecimal
- Specified by:
setBigDecimalin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setBinaryStream
- Specified by:
setBinaryStreamin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setBoolean
- Specified by:
setBooleanin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setByte
- Specified by:
setBytein interfaceCallableStatement- Throws:
SQLException- See Also:
-
setBytes
- Specified by:
setBytesin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setCharacterStream
- Specified by:
setCharacterStreamin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setDate
- Specified by:
setDatein interfaceCallableStatement- Throws:
SQLException- See Also:
-
setDate
- Specified by:
setDatein interfaceCallableStatement- Throws:
SQLException- See Also:
-
setDouble
- Specified by:
setDoublein interfaceCallableStatement- Throws:
SQLException- See Also:
-
setFloat
- Specified by:
setFloatin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setInt
- Specified by:
setIntin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setLong
- Specified by:
setLongin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setNull
- Specified by:
setNullin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setNull
- Specified by:
setNullin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setObject
- Specified by:
setObjectin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setObject
- Specified by:
setObjectin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setObject
public void setObject(String parameterName, Object x, int targetSqlType, int scale) throws SQLException - Specified by:
setObjectin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setShort
- Specified by:
setShortin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setString
- Specified by:
setStringin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setTime
- Specified by:
setTimein interfaceCallableStatement- Throws:
SQLException- See Also:
-
setTime
- Specified by:
setTimein interfaceCallableStatement- Throws:
SQLException- See Also:
-
setTimestamp
- Specified by:
setTimestampin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setTimestamp
- Specified by:
setTimestampin interfaceCallableStatement- Throws:
SQLException- See Also:
-
setURL
- Specified by:
setURLin interfaceCallableStatement- Throws:
SQLException- See Also:
-
wasNull
- Specified by:
wasNullin interfaceCallableStatement- Throws:
SQLException- See Also:
-
executeBatch
Description copied from class:StatementImplJDBC 2.0 Submit a batch of commands to the database for execution. This method is optional.- Specified by:
executeBatchin interfaceStatement- Overrides:
executeBatchin classStatementImpl- Returns:
- an array of update counts containing one element for each command in the batch. The array is ordered according to the order in which commands were inserted into the batch
- Throws:
SQLException- if a database-access error occurs, or the driver does not support batch statements
-
getParameterIndexOffset
protected int getParameterIndexOffset()Description copied from class:PreparedStatementFor calling stored functions, this will be -1 as we don't really count the first '?' parameter marker, it's only syntax, but JDBC counts it as #1, otherwise it will return 0- Overrides:
getParameterIndexOffsetin classPreparedStatement
-
setAsciiStream
- Specified by:
setAsciiStreamin interfaceCallableStatement- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStreamin interfaceCallableStatement- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfaceCallableStatement- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStreamin interfaceCallableStatement- Throws:
SQLException
-
setBlob
- Specified by:
setBlobin interfaceCallableStatement- Throws:
SQLException
-
setBlob
- Specified by:
setBlobin interfaceCallableStatement- Throws:
SQLException
-
setBlob
- Specified by:
setBlobin interfaceCallableStatement- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStreamin interfaceCallableStatement- Throws:
SQLException
-
setCharacterStream
public void setCharacterStream(String parameterName, Reader reader, long length) throws SQLException - Specified by:
setCharacterStreamin interfaceCallableStatement- Throws:
SQLException
-
setClob
- Specified by:
setClobin interfaceCallableStatement- Throws:
SQLException
-
setClob
- Specified by:
setClobin interfaceCallableStatement- Throws:
SQLException
-
setClob
- Specified by:
setClobin interfaceCallableStatement- Throws:
SQLException
-
setNCharacterStream
- Specified by:
setNCharacterStreamin interfaceCallableStatement- Throws:
SQLException
-
setNCharacterStream
public void setNCharacterStream(String parameterName, Reader value, long length) throws SQLException - Specified by:
setNCharacterStreamin interfaceCallableStatement- Throws:
SQLException
-
checkReadOnlySafeStatement
Description copied from class:PreparedStatementCheck to see if the statement is safe for read-only slaves after failover.- Overrides:
checkReadOnlySafeStatementin classPreparedStatement- Returns:
- true if safe for read-only.
- Throws:
SQLException
-
executeLargeUpdate
JDBC 4.2- Specified by:
executeLargeUpdatein interfacePreparedStatement- Overrides:
executeLargeUpdatein classPreparedStatement- Throws:
SQLException
-
executeLargeBatch
Description copied from class:StatementImplJDBC 4.2 Same asStatementImpl.executeBatch()but returns long[] instead of int[].- Specified by:
executeLargeBatchin interfaceStatement- Overrides:
executeLargeBatchin classStatementImpl- Throws:
SQLException
-