Logo Search packages:      
Sourcecode: mysql-connector-java version File versions

com::mysql::jdbc::CallableStatement Class Reference

Inheritance diagram for com::mysql::jdbc::CallableStatement:

com::mysql::jdbc::PreparedStatement com::mysql::jdbc::Statement

List of all members.


Detailed Description

Representation of stored procedures for JDBC

Author:
Mark Matthews
Version:
Id
CallableStatement.java,v 1.1.2.24 2005/02/07 21:07:31 mmatthew Exp

Definition at line 59 of file CallableStatement.java.


Public Member Functions

synchronized void addBatch (String sql) throws SQLException
void addBatch () throws SQLException
 CallableStatement (Connection conn, String catalog) throws SQLException
 CallableStatement (Connection conn, CallableStatementParamInfo paramInfo) throws SQLException
 CallableStatement (Connection conn, String sql, String catalog) throws SQLException
void cancel () throws SQLException
synchronized void clearBatch () throws SQLException
void clearParameters () throws SQLException
synchronized void clearWarnings () throws SQLException
void close () throws SQLException
void enableStreamingResults () throws SQLException
boolean execute (String sql, String[] generatedKeyNames) throws SQLException
boolean execute (String sql, int[] generatedKeyIndices) throws SQLException
boolean execute (String sql, int returnGeneratedKeys) throws SQLException
synchronized boolean execute (String sql) throws SQLException
boolean execute () throws SQLException
int[] executeBatch () throws SQLException
synchronized java.sql.ResultSet executeQuery (String sql) throws SQLException
synchronized java.sql.ResultSet executeQuery () throws SQLException
int executeUpdate (String sql, String[] generatedKeyNames) throws SQLException
int executeUpdate (String sql, int[] generatedKeyIndices) throws SQLException
int executeUpdate (String sql, int returnGeneratedKeys) throws SQLException
synchronized int executeUpdate (String sql) throws SQLException
synchronized int executeUpdate () throws SQLException
Array getArray (String parameterName) throws SQLException
Array getArray (int i) throws SQLException
BigDecimal getBigDecimal (String parameterName) throws SQLException
BigDecimal getBigDecimal (int parameterIndex) throws SQLException
BigDecimal getBigDecimal (int parameterIndex, int scale) throws SQLException
Blob getBlob (String parameterName) throws SQLException
Blob getBlob (int parameterIndex) throws SQLException
boolean getBoolean (String parameterName) throws SQLException
boolean getBoolean (int parameterIndex) throws SQLException
byte getByte (String parameterName) throws SQLException
byte getByte (int parameterIndex) throws SQLException
byte[] getBytes (int parameterIndex) throws SQLException
byte[] getBytes (String parameterName) throws SQLException
byte[] getBytesRepresentation (int parameterIndex) throws SQLException
Clob getClob (String parameterName) throws SQLException
Clob getClob (int parameterIndex) throws SQLException
synchronized java.sql.Connection getConnection () throws SQLException
Date getDate (String parameterName) throws SQLException
Date getDate (String parameterName, Calendar cal) throws SQLException
Date getDate (int parameterIndex) throws SQLException
Date getDate (int parameterIndex, Calendar cal) throws SQLException
double getDouble (String parameterName) throws SQLException
double getDouble (int parameterIndex) throws SQLException
int getFetchDirection () throws SQLException
synchronized int getFetchSize () throws SQLException
float getFloat (String parameterName) throws SQLException
float getFloat (int parameterIndex) throws SQLException
synchronized java.sql.ResultSet getGeneratedKeys () throws SQLException
int getInt (String parameterName) throws SQLException
int getInt (int parameterIndex) throws SQLException
synchronized long getLastInsertID ()
long getLong (String parameterName) throws SQLException
long getLong (int parameterIndex) throws SQLException
synchronized long getLongUpdateCount ()
synchronized int getMaxFieldSize () throws SQLException
synchronized int getMaxRows () throws SQLException
synchronized
java.sql.ResultSetMetaData 
getMetaData () throws SQLException
synchronized boolean getMoreResults (int current) throws SQLException
boolean getMoreResults () throws SQLException
Object getObject (String parameterName) throws SQLException
Object getObject (String parameterName, Map map) throws SQLException
Object getObject (int parameterIndex) throws SQLException
Object getObject (int parameterIndex, Map map) throws SQLException
ParameterMetaData getParameterMetaData () throws SQLException
int getQueryTimeout () throws SQLException
Ref getRef (String parameterName) throws SQLException
Ref getRef (int parameterIndex) throws SQLException
synchronized java.sql.ResultSet getResultSet () throws SQLException
synchronized int getResultSetConcurrency () throws SQLException
int getResultSetHoldability () throws SQLException
synchronized int getResultSetType () throws SQLException
short getShort (String parameterName) throws SQLException
short getShort (int parameterIndex) throws SQLException
String getString (String parameterName) throws SQLException
String getString (int parameterIndex) throws SQLException
Time getTime (String parameterName) throws SQLException
Time getTime (String parameterName, Calendar cal) throws SQLException
Time getTime (int parameterIndex) throws SQLException
Time getTime (int parameterIndex, Calendar cal) throws SQLException
Timestamp getTimestamp (String parameterName) throws SQLException
Timestamp getTimestamp (String parameterName, Calendar cal) throws SQLException
Timestamp getTimestamp (int parameterIndex) throws SQLException
Timestamp getTimestamp (int parameterIndex, Calendar cal) throws SQLException
synchronized int getUpdateCount () throws SQLException
URL getURL (String parameterName) throws SQLException
URL getURL (int parameterIndex) throws SQLException
synchronized java.sql.SQLWarning getWarnings () throws SQLException
synchronized void registerOutParameter (String parameterName, int sqlType) throws SQLException
void registerOutParameter (String parameterName, int sqlType, String typeName) throws SQLException
void registerOutParameter (String parameterName, int sqlType, int scale) throws SQLException
void registerOutParameter (int parameterIndex, int sqlType) throws SQLException
void registerOutParameter (int parameterIndex, int sqlType, String typeName) throws SQLException
void registerOutParameter (int parameterIndex, int sqlType, int scale) throws SQLException
void setArray (int i, Array x) throws SQLException
synchronized void setAsciiStream (int parameterIndex, InputStream x, int length) throws SQLException
void setAsciiStream (String parameterName, InputStream x, int length) throws SQLException
void setBigDecimal (int parameterIndex, BigDecimal x) throws SQLException
void setBigDecimal (String parameterName, BigDecimal x) throws SQLException
void setBinaryStream (int parameterIndex, InputStream x, int length) throws SQLException
void setBinaryStream (String parameterName, InputStream x, int length) throws SQLException
void setBlob (int i, java.sql.Blob x) throws SQLException
void setBoolean (int parameterIndex, boolean x) throws SQLException
void setBoolean (String parameterName, boolean x) throws SQLException
void setByte (int parameterIndex, byte x) throws SQLException
void setByte (String parameterName, byte x) throws SQLException
void setBytes (int parameterIndex, byte[] x) throws SQLException
void setBytes (String parameterName, byte[] x) throws SQLException
void setCharacterStream (int parameterIndex, java.io.Reader reader, int length) throws SQLException
void setCharacterStream (String parameterName, Reader reader, int length) throws SQLException
void setClob (int i, Clob x) throws SQLException
void setCursorName (String name) throws SQLException
void setDate (int parameterIndex, java.sql.Date x, Calendar cal) throws SQLException
void setDate (int parameterIndex, java.sql.Date x) throws java.sql.SQLException
void setDate (String parameterName, Date x) throws SQLException
void setDate (String parameterName, Date x, Calendar cal) throws SQLException
void setDouble (int parameterIndex, double x) throws SQLException
void setDouble (String parameterName, double x) throws SQLException
synchronized void setEscapeProcessing (boolean enable) throws SQLException
void setFetchDirection (int direction) throws SQLException
synchronized void setFetchSize (int rows) throws SQLException
void setFloat (int parameterIndex, float x) throws SQLException
void setFloat (String parameterName, float x) throws SQLException
void setInt (int parameterIndex, int x) throws SQLException
void setInt (String parameterName, int x) throws SQLException
void setLong (int parameterIndex, long x) throws SQLException
void setLong (String parameterName, long x) throws SQLException
synchronized void setMaxFieldSize (int max) throws SQLException
synchronized void setMaxRows (int max) throws SQLException
void setNull (int parameterIndex, int sqlType, String arg) throws SQLException
void setNull (int parameterIndex, int sqlType) throws SQLException
void setNull (String parameterName, int sqlType) throws SQLException
void setNull (String parameterName, int sqlType, String typeName) throws SQLException
void setObject (int parameterIndex, Object parameterObj) throws SQLException
void setObject (int parameterIndex, Object parameterObj, int targetSqlType) throws SQLException
void setObject (int parameterIndex, Object parameterObj, int targetSqlType, int scale) throws SQLException
void setObject (String parameterName, Object x) throws SQLException
void setObject (String parameterName, Object x, int targetSqlType) throws SQLException
void setObject (String parameterName, Object x, int targetSqlType, int scale) throws SQLException
void setQueryTimeout (int seconds) throws SQLException
void setRef (int i, Ref x) throws SQLException
void setShort (int parameterIndex, short x) throws SQLException
void setShort (String parameterName, short x) throws SQLException
void setString (int parameterIndex, String x) throws SQLException
void setString (String parameterName, String x) throws SQLException
void setTime (int parameterIndex, java.sql.Time x, Calendar cal) throws SQLException
void setTime (int parameterIndex, Time x) throws java.sql.SQLException
void setTime (String parameterName, Time x) throws SQLException
void setTime (String parameterName, Time x, Calendar cal) throws SQLException
void setTimestamp (int parameterIndex, Timestamp x) throws java.sql.SQLException
void setTimestamp (int parameterIndex, java.sql.Timestamp x, Calendar cal) throws SQLException
void setTimestamp (String parameterName, Timestamp x) throws SQLException
void setTimestamp (String parameterName, Timestamp x, Calendar cal) throws SQLException
void setUnicodeStream (int parameterIndex, InputStream x, int length) throws SQLException
void setURL (int parameterIndex, URL arg) throws SQLException
void setURL (String parameterName, URL val) throws SQLException
String toString ()
boolean wasNull () throws SQLException

Static Public Attributes

static final byte USES_VARIABLES_FALSE = 0
static final byte USES_VARIABLES_TRUE = 1
static final byte USES_VARIABLES_UNKNOWN = -1

Protected Member Functions

String asSql ()
void checkClosed () throws SQLException
void checkForDml (String sql, char firstStatementChar) throws SQLException
void checkNullOrEmptyQuery (String sql) throws SQLException
void closeAllOpenResults ()
boolean createStreamingResultSet ()
ResultSet executeInternal (int maxRowsToRetrieve, Buffer sendPacket, boolean createStreamingResultSet, boolean queryIsSelectOnly, boolean unpackFields) throws SQLException
synchronized int executeUpdate (byte[][] batchedParameterStrings, InputStream[] batchedParameterStreams, boolean[] batchedIsStream, int[] batchedStreamLengths, boolean[] batchedIsNull) throws SQLException
synchronized int executeUpdate (boolean clearBatchedGeneratedKeysAndWarnings) throws SQLException
Buffer fillSendPacket (byte[][] batchedParameterStrings, InputStream[] batchedParameterStreams, boolean[] batchedIsStream, int[] batchedStreamLengths) throws SQLException
Buffer fillSendPacket () throws SQLException
CachedResultSetMetaData getCachedMetaData (String sql)
synchronized java.sql.ResultSet getGeneratedKeysInternal () throws SQLException
int getId ()
void initializeResultsMetadataFromCache (String sql, CachedResultSetMetaData cachedMetaData, ResultSet resultSet) throws SQLException
void realClose (boolean calledExplicitly) throws SQLException
void setBytes (int parameterIndex, byte[] x, boolean checkForIntroducer, boolean escapeForMBChars) throws SQLException
void setBytesNoEscape (int parameterIndex, byte[] parameterAsBytes) throws SQLException
void setBytesNoEscapeNoQuotes (int parameterIndex, byte[] parameterAsBytes) throws SQLException
void setRetrieveGeneratedKeys (boolean retrieveGeneratedKeys)

Protected Attributes

List batchedArgs
ArrayList batchedGeneratedKeys = null
SingleByteCharsetConverter charConverter = null
String charEncoding = null
Connection connection = null
String currentCatalog = null
boolean doEscapeProcessing = true
ProfileEventSink eventSink = null
char firstCharOfStmt = 0
boolean hasLimitClause = false
boolean isClosed = false
boolean isLoadDataQuery = false
long lastInsertId = -1
int maxFieldSize = MysqlIO.getMaxBuf()
int maxRows = -1
boolean maxRowsChanged = false
int numberOfExecutions = 0
List openResults = new ArrayList()
String originalSql = null
int parameterCount
CallableStatementParamInfo paramInfo
boolean pedantic = false
Throwable pointOfOrigin
boolean profileSQL = false
ResultSet results = null
int resultSetConcurrency = 0
LRUCache resultSetMetadataCache
int resultSetType = 0
boolean retrieveGeneratedKeys = false
int statementId
int timeout = 0
long updateCount = -1
boolean useTrueBoolean = false
boolean useUsageAdvisor = false
SQLWarning warningChain = null

Static Protected Attributes

static int statementCounter = 1

Package Functions

ParseInfo getParseInfo ()
boolean isNull (int paramIndex)
void setResultSetConcurrency (int concurrencyFlag)
void setResultSetType (int typeFlag)

Private Member Functions

CallableStatementParam checkIsOutputParam (int paramIndex) throws SQLException
void checkParameterIndexBounds (int paramIndex) throws SQLException
void checkStreamability () throws SQLException
void determineParameterTypes () throws SQLException
String extractProcedureName () throws SQLException
String fixParameterName (String paramNameIn) throws SQLException
int getNamedParamIndex (String paramName, boolean forOut) throws SQLException
ResultSet getOutputParameters () throws SQLException
int mapOutputParameterIndexToRsIndex (int paramIndex) throws SQLException
void retrieveOutParams () throws SQLException
void setInOutParamsOnServer () throws SQLException
void setOutParams () throws SQLException

Static Private Member Functions

static String mangleParameterName (String origParameterName)

Private Attributes

boolean hasOutputParams = false
ResultSet outputParameterResults
int[] parameterIndexToRsIndex

Static Private Attributes

static final int NOT_OUTPUT_PARAMETER_INDICATOR = Integer.MIN_VALUE
static final String PARAMETER_NAMESPACE_PREFIX = "@com_mysql_jdbc_outparam_"

Classes

class  CallableStatementParam
class  CallableStatementParamInfo

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index