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

com::mysql::jdbc::ServerPreparedStatement Class Reference

Inheritance diagram for com::mysql::jdbc::ServerPreparedStatement:

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

List of all members.


Detailed Description

JDBC Interface for MySQL-4.1 and newer server-side PreparedStatements.

Author:
Mark Matthews
Version:
Id
ServerPreparedStatement.java,v 1.1.2.68 2005/02/17 21:42:27 mmatthews Exp

Definition at line 62 of file ServerPreparedStatement.java.


Public Member Functions

synchronized void addBatch (String sql) throws SQLException
synchronized void addBatch () 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
synchronized 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
byte[] getBytesRepresentation (int parameterIndex) throws SQLException
synchronized java.sql.Connection getConnection () throws SQLException
int getFetchDirection () throws SQLException
synchronized int getFetchSize () throws SQLException
synchronized java.sql.ResultSet getGeneratedKeys () throws SQLException
synchronized long getLastInsertID ()
synchronized long getLongUpdateCount ()
synchronized int getMaxFieldSize () throws SQLException
synchronized int getMaxRows () throws SQLException
java.sql.ResultSetMetaData getMetaData () throws SQLException
synchronized boolean getMoreResults (int current) throws SQLException
boolean getMoreResults () throws SQLException
ParameterMetaData getParameterMetaData () throws SQLException
int getQueryTimeout () throws SQLException
synchronized java.sql.ResultSet getResultSet () throws SQLException
synchronized int getResultSetConcurrency () throws SQLException
int getResultSetHoldability () throws SQLException
synchronized int getResultSetType () throws SQLException
synchronized int getUpdateCount () throws SQLException
synchronized java.sql.SQLWarning getWarnings () throws SQLException
 ServerPreparedStatement (Connection conn, String sql, String catalog) throws SQLException
void setArray (int i, Array x) throws SQLException
void setAsciiStream (int parameterIndex, InputStream x, int length) throws SQLException
void setBigDecimal (int parameterIndex, BigDecimal x) throws SQLException
void setBinaryStream (int parameterIndex, InputStream x, int length) throws SQLException
void setBlob (int i, java.sql.Blob x) throws SQLException
void setBlob (int parameterIndex, Blob x) throws SQLException
void setBoolean (int parameterIndex, boolean x) throws SQLException
void setByte (int parameterIndex, byte x) throws SQLException
void setBytes (int parameterIndex, byte[] x) throws SQLException
void setCharacterStream (int parameterIndex, java.io.Reader reader, int length) throws SQLException
void setCharacterStream (int parameterIndex, Reader reader, int length) throws SQLException
void setClob (int parameterIndex, 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 (int parameterIndex, Date x) throws SQLException
void setDate (int parameterIndex, Date x, Calendar cal) throws SQLException
void setDouble (int parameterIndex, 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 setInt (int parameterIndex, int x) throws SQLException
void setLong (int parameterIndex, long x) throws SQLException
synchronized void setMaxFieldSize (int max) throws SQLException
synchronized void setMaxRows (int max) throws SQLException
void setNull (int parameterIndex, int sqlType) throws SQLException
void setNull (int parameterIndex, 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 setQueryTimeout (int seconds) throws SQLException
void setRef (int i, Ref x) throws SQLException
void setShort (int parameterIndex, short x) throws SQLException
void setString (int parameterIndex, String x) throws SQLException
void setTime (int parameterIndex, Time x) throws java.sql.SQLException
void setTime (int parameterIndex, java.sql.Time x) throws SQLException
void setTime (int parameterIndex, java.sql.Time x, Calendar cal) throws SQLException
void setTimeInternal (int parameterIndex, java.sql.Time x, TimeZone tz, boolean rollForward) 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 (int parameterIndex, java.sql.Timestamp x) throws SQLException
void setUnicodeStream (int parameterIndex, InputStream x, int length) throws SQLException
void setURL (int parameterIndex, URL x) throws SQLException
String toString ()

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 ()
com.mysql.jdbc.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 rePrepare () 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)
void setTimestampInternal (int parameterIndex, java.sql.Timestamp x, TimeZone tz, boolean rollForward) throws SQLException

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
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

synchronized byte[] getBytes (int parameterIndex) throws SQLException
ParseInfo getParseInfo ()
boolean isNull (int paramIndex)
void setResultSetConcurrency (int concurrencyFlag)
void setResultSetType (int typeFlag)

Private Member Functions

void clearParametersInternal (boolean clearServerParameters) throws SQLException
BindValue getBinding (int parameterIndex, boolean forLongData) throws SQLException
com.mysql.jdbc.ResultSet serverExecute (int maxRowsToRetrieve, boolean createStreamingResultSet) throws SQLException
void serverLongData (int parameterIndex, BindValue longData) throws SQLException
void serverPrepare (String sql) throws SQLException
void serverResetStatement () throws SQLException
void setType (BindValue oldValue, int bufferType)
void storeBinding (Buffer packet, BindValue bindValue, MysqlIO mysql) throws SQLException
void storeDataTime412AndOlder (Buffer intoBuf, java.util.Date dt) throws SQLException
void storeDateTime (Buffer intoBuf, java.util.Date dt, MysqlIO mysql) throws SQLException
void storeDateTime413AndNewer (Buffer intoBuf, java.util.Date dt) throws SQLException
void storeReader (Buffer packet, Reader inStream) throws SQLException
void storeStream (Buffer packet, InputStream inStream) throws SQLException

Static Private Member Functions

static void storeTime (Buffer intoBuf, Time tm) throws SQLException

Private Attributes

Calendar dateTimeBindingCal = null
boolean detectedLongParameterSwitch = false
int fieldCount
boolean invalid = false
SQLException invalidationException
boolean isSelectQuery
Buffer outByteBuffer
BindValue[] parameterBindings
Field[] parameterFields
Field[] resultFields
boolean sendTypesToServer = false
long serverStatementId
int stringTypeCode = MysqlDefs.FIELD_TYPE_STRING

Static Private Attributes

static final byte MAX_DATE_REP_LENGTH = (byte) 5
static final byte MAX_DATETIME_REP_LENGTH = 12
static final byte MAX_TIME_REP_LENGTH = 13

Classes

class  BatchedBindValues
class  BindValue

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

Generated by  Doxygen 1.6.0   Back to index