| Modifier and Type | Class and Description |
|---|---|
| protected static class | |
| public class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private ResultSetInternalMethods | |
| private boolean | |
| private boolean | |
| private static final int | |
| private ResultSetInternalMethods | |
| protected boolean | |
| private static final String | |
| private int[] | |
| protected CallableStatement. | |
| private CallableStatement. |
| Access | Constructor and Description |
|---|---|
| public | CallableStatement(JdbcConnection
the connection creating this statement conn, CallableStatement.the SQL to prepare paramInfoCreates a new CallableStatement |
| public | CallableStatement(JdbcConnection
the connection creating this statement conn, String the SQL to prepare sql, String the current database db, boolean is it a function call or a procedure call? isFunctionCall)Creates a new CallableStatement |
| Modifier and Type | Method and Description |
|---|---|
| public void | addBatch()
Overrides com. Implements java. Adds a set of parameters to this |
| private CallableStatement. | |
| private void | |
| private boolean | Returns: true if procedure does not alter dataCheck whether the stored procedure alters any data or is safe for read-only usage. |
| protected boolean | checkReadOnlySafeStatement()
Overrides com. Check to see if the statement is safe for read-only replicas after failover. |
| private void | checkStreamability()
Checks whether or not this statement is supposed to be providing streamable result sets...If output parameters are registered, the driver can not stream the results. |
| public void | clearParameters()
Overrides com. Implements java. Clears the current parameter values immediately. |
| private void | |
| private void | |
| public boolean | execute()
Overrides com. Implements java. Executes the SQL statement in this |
| public int[] | executeBatch()
Overrides com. Implements java. Submits a batch of commands to the database for execution and if all commands execute successfully, returns an array of update counts. |
| public long[] | executeLargeBatch()
Overrides com. Overrides default java. Submits a batch of commands to the database for execution and if all commands execute successfully, returns an array of update counts. |
| public long | executeLargeUpdate()
Overrides com. Overrides default java. Executes the SQL statement in this |
| public ResultSet | executeQuery()
Overrides com. Implements java. Executes the SQL query in this |
| public int | executeUpdate()
Overrides com. Implements java. Executes the SQL statement in this |
| private String | |
| private void | fakeParameterTypes(boolean
is it a procedure or function isReallyProcedure)Used to fake up some metadata when we don't have access to SHOW CREATE PROCEDURE or mysql.proc. |
| protected String | Returns: the parameter name with an '(at)' prepended, if neededthe parameter name to 'fix' paramNameIn)Adds '(at)' symbol to beginning of parameter names if needed. |
| private void | |
| public Array | getArray(int
the first parameter is 1, the second is 2, and
so on i)Implements java. Retrieves the value of the designated JDBC |
| public Array | getArray(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| public BigDecimal | getBigDecimal(int
the first parameter is 1, the second is 2,
and so on parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public BigDecimal | getBigDecimal(int
the first parameter is 1, the second is 2,
and so on parameterIndex, int the number of digits to the right of the decimal point scale)Implements java.
Deprecated
Retrieves the value of the designated JDBC |
| public BigDecimal | getBigDecimal(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| public Blob | getBlob(int
the first parameter is 1, the second is 2, and so on parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public Blob | getBlob(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| public boolean | getBoolean(int
the first parameter is 1, the second is 2,
and so on parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public boolean | getBoolean(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| public byte | getByte(int
the first parameter is 1, the second is 2,
and so on parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public byte | getByte(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| public byte[] | getBytes(int
the first parameter is 1, the second is 2,
and so on parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public byte[] | getBytes(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| public Reader | getCharacterStream(int
the first parameter is 1, the second is 2, ... parameterIndex)Implements java. Retrieves the value of the designated parameter as a
|
| public Reader | getCharacterStream(String
the name of the parameter parameterName)Implements java. Retrieves the value of the designated parameter as a
|
| public Clob | getClob(int
the first parameter is 1, the second is 2, and
so on parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public Clob | getClob(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| public Date | getDate(int
the first parameter is 1, the second is 2,
and so on parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public Date | getDate(int
the first parameter is 1, the second is 2,
and so on parameterIndex, Calendar the cal)Calendar object the driver will use
to construct the dateImplements java. Retrieves the value of the designated JDBC |
| public Date | getDate(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| public Date | getDate(String
the name of the parameter parameterName, Calendar the cal)Calendar object the driver will use
to construct the dateImplements java. Retrieves the value of a JDBC |
| public double | getDouble(int
the first parameter is 1, the second is 2,
and so on parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public double | getDouble(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| public float | getFloat(int
the first parameter is 1, the second is 2,
and so on parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public float | getFloat(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| protected static CallableStatement | Returns: CallableStatementthe connection creating this statement conn, String the SQL to prepare sql, String the current database db, boolean is it a function call or a procedure call? isFunctionCall)Creates a callable statement instance |
| protected static CallableStatement | Returns: CallableStatementthe connection creating this statement conn, CallableStatement.the SQL to prepare paramInfoCreates a callable statement instance |
| public int | getInt(int
the first parameter is 1, the second is 2,
and so on parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public int | getInt(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| public long | getLong(int
the first parameter is 1, the second is 2,
and so on parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public long | getLong(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| protected int | |
| public Reader | getNCharacterStream(int
the first parameter is 1, the second is 2, ... parameterIndex)Implements java. Retrieves the value of the designated parameter as a
|
| public Reader | getNCharacterStream(String
the name of the parameter parameterName)Implements java. Retrieves the value of the designated parameter as a
|
| public NClob | getNClob(int
the first parameter is 1, the second is 2, and
so on parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public NClob | getNClob(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| public String | getNString(int
index of the first parameter is 1, the second is 2, ... parameterIndex)Implements java. Retrieves the value of the designated |
| public String | getNString(String
the name of the parameter parameterName)Implements java. Retrieves the value of the designated |
| public Object | getObject(int
the first parameter is 1, the second is 2,
and so on parameterIndex)Implements java. Retrieves the value of the designated parameter as an |
| public Object | getObject(int
the first parameter is 1, the second is 2, and so on parameterIndex, Map<String, Class<?>> the mapping from SQL type names to Java classes map)Implements java. Returns an object representing the value of OUT parameter
|
| public Object | getObject(String
the name of the parameter parameterName)Implements java. Retrieves the value of a parameter as an |
| public Object | getObject(String
the name of the parameter parameterName, Map<String, Class<?>> the mapping from SQL type names to Java classes map)Implements java. Returns an object representing the value of OUT parameter
|
| public <T> T | getObject(int
the first parameter is 1, the second is 2, and so on parameterIndex, Class<T> Class representing the Java data type to convert the
designated parameter to. type)Implements java. Returns an object representing the value of OUT parameter
|
| public <T> T | getObject(String
the name of the parameter parameterName, Class<T> Class representing the Java data type to convert
the designated parameter to. type)Implements java. Returns an object representing the value of OUT parameter
|
| protected ResultSetInternalMethods | Returns: the ResultSet that holds the output parametersparameter index paramIndex)Returns the ResultSet that holds the output parameters, or throws an appropriate exception if none exist, or they weren't returned. |
| protected int | getParameterIndexOffset()
Overrides com. For calling stored functions, this will be -1 as Connector/J does not count the first '?' parameter marker, but JDBC counts it * as 1, otherwise it will return 0 |
| public ParameterMetaData | getParameterMetaData()
Overrides com. Implements java. Retrieves the number, types and properties of this
|
| public Ref | getRef(int
the first parameter is 1, the second is 2,
and so on parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public Ref | getRef(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| public RowId | getRowId(int
the first parameter is 1, the second is 2,... parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public RowId | getRowId(String
the name of the parameter parameterName)Implements java. Retrieves the value of the designated JDBC |
| public short | getShort(int
the first parameter is 1, the second is 2,
and so on parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public short | getShort(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| public SQLXML | getSQLXML(int
index of the first parameter is 1, the second is 2, ... parameterIndex)Implements java. Retrieves the value of the designated |
| public SQLXML | getSQLXML(String
the name of the parameter parameterName)Implements java. Retrieves the value of the designated |
| public String | getString(int
the first parameter is 1, the second is 2,
and so on parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public String | getString(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| public Time | getTime(int
the first parameter is 1, the second is 2,
and so on parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public Time | getTime(int
the first parameter is 1, the second is 2,
and so on parameterIndex, Calendar the cal)Calendar object the driver will use
to construct the timeImplements java. Retrieves the value of the designated JDBC |
| public Time | getTime(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| public Time | getTime(String
the name of the parameter parameterName, Calendar the cal)Calendar object the driver will use
to construct the timeImplements java. Retrieves the value of a JDBC |
| public Timestamp | getTimestamp(int
the first parameter is 1, the second is 2,
and so on parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public Timestamp | getTimestamp(int
the first parameter is 1, the second is 2,
and so on parameterIndex, Calendar the cal)Calendar object the driver will use
to construct the timestampImplements java. Retrieves the value of the designated JDBC |
| public Timestamp | getTimestamp(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| public Timestamp | getTimestamp(String
the name of the parameter parameterName, Calendar the cal)Calendar object the driver will use
to construct the timestampImplements java. Retrieves the value of a JDBC |
| public URL | getURL(int
the first parameter is 1, the second is 2,... parameterIndex)Implements java. Retrieves the value of the designated JDBC |
| public URL | getURL(String
the name of the parameter parameterName)Implements java. Retrieves the value of a JDBC |
| private static String | |
| protected int | |
| protected void | |
| public void | registerOutParameter(int
the first parameter is 1, the second is 2,
and so on parameterIndex, int the JDBC type code defined by sqlType)java.sql.Types.
If the parameter is of JDBC type NUMERIC
or DECIMAL, the version of
registerOutParameter that accepts a scale value
should be used.Implements java. Registers the OUT parameter in ordinal position
|
| public void | registerOutParameter(int
the first parameter is 1, the second is 2,
and so on parameterIndex, SQLType the JDBC type code defined by sqlType)SQLType to use to
register the OUT Parameter.
If the parameter is of JDBC type JDBCType.NUMERIC
or JDBCType.DECIMAL, the version of
registerOutParameter that accepts a scale value
should be used.Overrides default java. Registers the OUT parameter in ordinal position
|
| protected void | |
| public void | registerOutParameter(int
the first parameter is 1, the second is 2,
and so on parameterIndex, int the SQL type code defined by sqlType, int java.sql.Types.the desired number of digits to the right of the
decimal point. It must be greater than or equal to zero. scale)Implements java. Registers the parameter in ordinal position
|
| public void | registerOutParameter(int
the first parameter is 1, the second is 2,
and so on parameterIndex, SQLType the JDBC type code defined by sqlType, int SQLType to use to
register the OUT Parameter.the desired number of digits to the right of the
decimal point. It must be greater than or equal to zero. scale)Overrides default java. Registers the parameter in ordinal position
|
| protected void | |
| public void | registerOutParameter(int
the first parameter is 1, the second is 2,... parameterIndex, int a value from sqlType, String java.the fully-qualified name of an SQL structured type typeName)Implements java. Registers the designated output parameter. |
| public void | registerOutParameter(int
the first parameter is 1, the second is 2,... parameterIndex, SQLType the JDBC type code defined by sqlType, String SQLType to use to
register the OUT Parameter.the fully-qualified name of an SQL structured type typeName)Overrides default java. Registers the designated output parameter. |
| public void | registerOutParameter(String
the name of the parameter parameterName, int the JDBC type code defined by sqlType)java.sql.Types.
If the parameter is of JDBC type NUMERIC
or DECIMAL, the version of
registerOutParameter that accepts a scale value
should be used.Implements java. Registers the OUT parameter named
|
| public void | registerOutParameter(String
the name of the parameter parameterName, SQLType the JDBC type code defined by sqlType)SQLType to use to
register the OUT Parameter.
If the parameter is of JDBC type JDBCType.NUMERIC
or JDBCType.DECIMAL, the version of
registerOutParameter that accepts a scale value
should be used.Overrides default java. Registers the OUT parameter named
|
| public void | registerOutParameter(String
the name of the parameter parameterName, int SQL type code defined by sqlType, int java.sql.Types.the desired number of digits to the right of the
decimal point. It must be greater than or equal to zero. scale)Implements java. Registers the parameter named
|
| public void | registerOutParameter(String
the name of the parameter parameterName, SQLType the JDBC type code defined by sqlType, int SQLType to use to
register the OUT Parameter.the desired number of digits to the right of the
decimal point. It must be greater than or equal to zero. scale)Overrides default java. Registers the parameter named
|
| public void | registerOutParameter(String
the name of the parameter parameterName, int a value from sqlType, String java.the fully-qualified name of an SQL structured type typeName)Implements java. Registers the designated output parameter. |
| public void | registerOutParameter(String
the name of the parameter parameterName, SQLType the JDBC type code defined by sqlType, String SQLType to use to
register the OUT Parameter.the fully-qualified name of an SQL structured type typeName)Overrides default java. Registers the designated output parameter. |
| private void | |
| protected byte[] | |
| public void | setAsciiStream(String
the name of the parameter parameterName, InputStream the Java input stream that contains the ASCII parameter value x, int the number of bytes in the stream length)Implements java. Sets the designated parameter to the given input stream, which will have the specified number of bytes. |
| public void | setAsciiStream(String
the name of the parameter parameterName, InputStream the Java input stream that contains the ASCII parameter value x)Implements java. Sets the designated parameter to the given input stream. |
| public void | setAsciiStream(String
the name of the parameter parameterName, InputStream the Java input stream that contains the ASCII parameter value x, long the number of bytes in the stream length)Implements java. Sets the designated parameter to the given input stream, which will have the specified number of bytes. |
| public void | setBigDecimal(String
the name of the parameter parameterName, BigDecimal the parameter value x)Implements java. Sets the designated parameter to the given
|
| public void | setBinaryStream(String
the name of the parameter parameterName, InputStream the java input stream which contains the binary parameter value x, int the number of bytes in the stream length)Implements java. Sets the designated parameter to the given input stream, which will have the specified number of bytes. |
| public void | setBinaryStream(String
the name of the parameter parameterName, InputStream the java input stream which contains the binary parameter value x)Implements java. Sets the designated parameter to the given input stream. |
| public void | setBinaryStream(String
the name of the parameter parameterName, InputStream the java input stream which contains the binary parameter value x, long the number of bytes in the stream length)Implements java. Sets the designated parameter to the given input stream, which will have the specified number of bytes. |
| public void | setBlob(String
the name of the parameter parameterName, Blob a x)Blob object that maps an SQL BLOB valueImplements java. Sets the designated parameter to the given |
| public void | setBlob(String
the name of the parameter parameterName, InputStream An object that contains the data to set the parameter
value to. inputStream)Implements java. Sets the designated parameter to an |
| public void | setBlob(String
the name of the parameter to be set
the second is 2, ... parameterName, InputStream An object that contains the data to set the parameter
value to. inputStream, long the number of bytes in the parameter data. length)Implements java. Sets the designated parameter to an |
| public void | setBoolean(String
the name of the parameter parameterName, boolean the parameter value x)Implements java. Sets the designated parameter to the given Java |
| public void | setByte(String
the name of the parameter parameterName, byte the parameter value x)Implements java. Sets the designated parameter to the given Java |
| public void | setBytes(String
the name of the parameter parameterName, byte[] the parameter value x)Implements java. Sets the designated parameter to the given Java array of bytes. |
| public void | setCharacterStream(String
the name of the parameter parameterName, Reader the reader, int java.io.Reader object that
contains the UNICODE data used as the designated parameterthe number of characters in the stream length)Implements java. Sets the designated parameter to the given |
| public void | setCharacterStream(String
the name of the parameter parameterName, Reader the reader)java.io.Reader object that contains the
Unicode dataImplements java. Sets the designated parameter to the given |
| public void | setCharacterStream(String
the name of the parameter parameterName, Reader the reader, long java.io.Reader object that
contains the UNICODE data used as the designated parameterthe number of characters in the stream length)Implements java. Sets the designated parameter to the given |
| public void | setClob(String
the name of the parameter parameterName, Clob a x)Clob object that maps an SQL CLOB valueImplements java. Sets the designated parameter to the given |
| public void | setClob(String
the name of the parameter parameterName, Reader An object that contains the data to set the parameter value to. reader)Implements java. Sets the designated parameter to a |
| public void | setClob(String
the name of the parameter to be set parameterName, Reader An object that contains the data to set the parameter value to. reader, long the number of characters in the parameter data. length)Implements java. Sets the designated parameter to a |
| public void | setDate(String
the name of the parameter parameterName, Date the parameter value x)Implements java. Sets the designated parameter to the given |
| public void | setDate(String
the name of the parameter parameterName, Date the parameter value x, Calendar the cal)Calendar object the driver will use
to construct the dateImplements java. Sets the designated parameter to the given |
| public void | setDouble(String
the name of the parameter parameterName, double the parameter value x)Implements java. Sets the designated parameter to the given Java |
| public void | setFloat(String
the name of the parameter parameterName, float the parameter value x)Implements java. Sets the designated parameter to the given Java |
| private void | |
| public void | setInt(String
the name of the parameter parameterName, int the parameter value x)Implements java. Sets the designated parameter to the given Java |
| public void | setLong(String
the name of the parameter parameterName, long the parameter value x)Implements java. Sets the designated parameter to the given Java |
| public void | setNCharacterStream(String
the name of the parameter parameterName, Reader the parameter value value)Implements java. Sets the designated parameter to a |
| public void | setNCharacterStream(String
the name of the parameter to be set parameterName, Reader the parameter value value, long the number of characters in the parameter data. length)Implements java. Sets the designated parameter to a |
| public void | setNClob(String
the name of the parameter to be set parameterName, NClob the parameter value value)Implements java. Sets the designated parameter to a |
| public void | setNClob(String
the name of the parameter parameterName, Reader An object that contains the data to set the parameter value to. reader)Implements java. Sets the designated parameter to a |
| public void | setNClob(String
the name of the parameter to be set parameterName, Reader An object that contains the data to set the parameter value to. reader, long the number of characters in the parameter data. length)Implements java. Sets the designated parameter to a |
| public void | setNString(String
the name of the parameter to be set parameterName, String the parameter value value)Implements java. Sets the designated parameter to the given |
| public void | setNull(String
the name of the parameter parameterName, int the SQL type code defined in sqlType)java.sql.TypesImplements java. Sets the designated parameter to SQL |
| public void | setNull(String
the name of the parameter parameterName, int a value from sqlType, String java.sql.Typesthe fully-qualified name of an SQL user-defined type;
ignored if the parameter is not a user-defined type or
SQL typeName)REF valueImplements java. Sets the designated parameter to SQL |
| public void | setObject(String
the name of the parameter parameterName, Object the object containing the input parameter value x)Implements java. Sets the value of the designated parameter with the given object. |
| public void | setObject(String
the name of the parameter parameterName, Object the object containing the input parameter value x, int the SQL type (as defined in java.sql.Types) to be
sent to the database targetSqlType)Implements java. Sets the value of the designated parameter with the given object. |
| public void | setObject(String
the name of the parameter parameterName, Object the object containing the input parameter value x, SQLType the SQL type to be sent to the database targetSqlType)Overrides default java. Sets the value of the designated parameter with the given object. |
| public void | setObject(String
the name of the parameter parameterName, Object the object containing the input parameter value x, int the SQL type (as defined in java.sql.Types) to be
sent to the database. The scale argument may further qualify this type. targetSqlType, int for java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types,
this is the number of digits after the decimal point. For all other
types, this value will be ignored. scale)Implements java. Sets the value of the designated parameter with the given object. |
| public void | setObject(String
the name of the parameter parameterName, Object the object containing the input parameter value x, SQLType the SQL type to be
sent to the database. The scale argument may further qualify this type. targetSqlType, int for scaleOrLength)java.sql.JDBCType.DECIMAL
or java.sql.JDBCType.NUMERIC types,
this is the number of digits after the decimal point. For
Java Object types InputStream and Reader,
this is the length
of the data in the stream or reader. For all other types,
this value will be ignored.Overrides default java. Sets the value of the designated parameter with the given object. |
| private void | |
| public void | setRowId(String
the name of the parameter parameterName, RowId the parameter value x)Implements java. Sets the designated parameter to the given |
| public void | setShort(String
the name of the parameter parameterName, short the parameter value x)Implements java. Sets the designated parameter to the given Java |
| public void | setSQLXML(String
the name of the parameter parameterName, SQLXML a xmlObject)SQLXML object that maps an SQL XML valueImplements java. Sets the designated parameter to the given |
| public void | setString(String
the name of the parameter parameterName, String the parameter value x)Implements java. Sets the designated parameter to the given Java |
| public void | setTime(String
the name of the parameter parameterName, Time the parameter value x)Implements java. Sets the designated parameter to the given |
| public void | setTime(String
the name of the parameter parameterName, Time the parameter value x, Calendar the cal)Calendar object the driver will use
to construct the timeImplements java. Sets the designated parameter to the given |
| public void | setTimestamp(String
the name of the parameter parameterName, Timestamp the parameter value x)Implements java. Sets the designated parameter to the given |
| public void | setTimestamp(String
the name of the parameter parameterName, Timestamp the parameter value x, Calendar the cal)Calendar object the driver will use
to construct the timestampImplements java. Sets the designated parameter to the given |
| public void | setURL(String
the name of the parameter parameterName, URL the parameter value val)Implements java. Sets the designated parameter to the given |
| public boolean | wasNull()
Implements java. Retrieves whether the last OUT parameter read had the value of
SQL |