All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class twz1.jdbc.mysql.jdbcMysqlStmt

java.lang.Object
   |
   +----twz1.jdbc.mysql.jdbcMysqlStmt

public class jdbcMysqlStmt
extends Object
implements Statement

Variable Index

 o apis
 o C_CANCEL
 o C_CLEARPARAMETERS
 o C_CLEARWARNINGS
 o C_CLOSE
 o C_GETMAXFIELDSIZE
 o C_GETMAXROWS
 o C_GETMORERESULTS
 o C_GETQUERYTIMEOUT
 o C_GETUPDATECOUNT
 o C_GETWARNINGS
 o C_SETASCIISTREAM
 o C_SETBIGDECIMAL
 o C_SETBINARYSTREAM
 o C_SETBOOLEAN
 o C_SETBYTE
 o C_SETBYTES
 o C_SETCURSORNAME
 o C_SETDATE
 o C_SETDOUBLE
 o C_SETESCAPEPROCESSING
 o C_SETFLOAT
 o C_SETINT
 o C_SETLONG
 o C_SETMAXFIELDSIZE
 o C_SETMAXROWS
 o C_SETNULL
 o C_SETOBJECT
 o C_SETQUERYTIMEOUT
 o C_SETSHORT
 o C_SETSTRING
 o C_SETTIME
 o C_SETTIMESTAMP
 o C_SETUNICODESTREAM
 o commandValue
Command value
 o commandWord
Command word
 o cx
Point back to connection.
 o errs
 o guard
Practice safe threading.
 o inBag
Input bag from connex
 o lastExecuted
executed string.
 o lastInsertID
last insert id on an insert
 o lTimeout
timeout on mutex
 o maxFieldSize
Maximum field size
 o maxRows
Maximum number of rows in result
 o myOID
My object
 o open
Statement is available
 o outBag
Output bag from connex
 o qResult
Query result
 o QTYPE_EQ
 o QTYPE_EU
 o QTYPE_EX
 o rsLock
Do we lock for ResultSet retrievals ?
 o rsmdXcept
should rsmd queries throw type exceptions ?
 o status
Statement status

Constructor Index

 o jdbcMysqlStmt(jdbcMysqlConnex)

Method Index

 o cancel()
See API.
 o clearWarnings()
Does nothing now, in the future it will clear the warning chain.
 o close()
The API is a little vague about this.
 o errHandlerE(int, Exception)
 o errHandlerE2(int, String, Exception)
 o errHandlerM(int, String)
 o execute(String)
 o executeQuery(String)
 o executeUpdate(String)
 o getCommandValue(String)
 o getMaxFieldSize()
See the API.
 o getMaxRows()
See API.
 o getMoreResults()
See the API.
 o getQueryTimeout()
Varies somewhat from the API as the timeout value in this implementation refers to the time the mutex lock on the referent statement times out, rather than total duration of execution.
 o getResultSet()
See API.
 o getUpdateCount()
See the API.
 o getWarnings()
Returns null.
 o iGetMaxFieldSize()
 o lock(boolean, int, int)
Invoke a mutex to protect access to the statement.
 o mExecQuery(byte[])
 o mExecUpdate(byte[])
 o mxEQ(byte[])
 o mxEU(byte[])
 o pseudoResult(Vector, RSMd)
 o sAction(int, int, String)
 o setCursorName(String)
See API: this throws an exception as cursors are not supported in MySQL.
 o setEscapeProcessing(boolean)
See API.
 o setMaxFieldSize(int)
See the API.
 o setMaxRows(int)
See API
 o setQueryTimeout(int)
Varies somewhat from the API as the timeout value in this implementation refers to the time the mutex lock on the referent statement times out, rather than total duration of execution.

Variables

 o cx
 jdbcMysqlConnex cx
Point back to connection.

 o myOID
 int myOID
My object

 o lastExecuted
 byte lastExecuted[]
executed string.

 o commandWord
 String commandWord
Command word

 o commandValue
 int commandValue
Command value

 o maxRows
 int maxRows
Maximum number of rows in result

 o maxFieldSize
 int maxFieldSize
Maximum field size

 o inBag
 jdbcMysqlBag inBag
Input bag from connex

 o outBag
 jdbcMysqlBag outBag
Output bag from connex

 o open
 boolean open
Statement is available

 o status
 int status
Statement status

 o guard
 jdbcMysqlMutex guard
Practice safe threading.

 o lTimeout
 int lTimeout
timeout on mutex

 o lastInsertID
 long lastInsertID
last insert id on an insert

 o qResult
 jdbcMysqlResult qResult
Query result

 o rsmdXcept
 boolean rsmdXcept
should rsmd queries throw type exceptions ?

 o rsLock
 boolean rsLock
Do we lock for ResultSet retrievals ?

 o QTYPE_EU
 static final int QTYPE_EU
 o QTYPE_EQ
 static final int QTYPE_EQ
 o QTYPE_EX
 static final int QTYPE_EX
 o C_CLOSE
 static final int C_CLOSE
 o C_GETMAXFIELDSIZE
 static final int C_GETMAXFIELDSIZE
 o C_SETMAXFIELDSIZE
 static final int C_SETMAXFIELDSIZE
 o C_GETMAXROWS
 static final int C_GETMAXROWS
 o C_SETMAXROWS
 static final int C_SETMAXROWS
 o C_SETESCAPEPROCESSING
 static final int C_SETESCAPEPROCESSING
 o C_GETQUERYTIMEOUT
 static final int C_GETQUERYTIMEOUT
 o C_SETQUERYTIMEOUT
 static final int C_SETQUERYTIMEOUT
 o C_CANCEL
 static final int C_CANCEL
 o C_GETWARNINGS
 static final int C_GETWARNINGS
 o C_CLEARWARNINGS
 static final int C_CLEARWARNINGS
 o C_SETCURSORNAME
 static final int C_SETCURSORNAME
 o C_GETUPDATECOUNT
 static final int C_GETUPDATECOUNT
 o C_GETMORERESULTS
 static final int C_GETMORERESULTS
 o C_SETNULL
 static final int C_SETNULL
 o C_SETBOOLEAN
 static final int C_SETBOOLEAN
 o C_SETBYTE
 static final int C_SETBYTE
 o C_SETSHORT
 static final int C_SETSHORT
 o C_SETINT
 static final int C_SETINT
 o C_SETLONG
 static final int C_SETLONG
 o C_SETFLOAT
 static final int C_SETFLOAT
 o C_SETDOUBLE
 static final int C_SETDOUBLE
 o C_SETSTRING
 static final int C_SETSTRING
 o C_SETBYTES
 static final int C_SETBYTES
 o C_SETDATE
 static final int C_SETDATE
 o C_SETTIME
 static final int C_SETTIME
 o C_SETTIMESTAMP
 static final int C_SETTIMESTAMP
 o C_SETASCIISTREAM
 static final int C_SETASCIISTREAM
 o C_SETBINARYSTREAM
 static final int C_SETBINARYSTREAM
 o C_SETUNICODESTREAM
 static final int C_SETUNICODESTREAM
 o C_SETBIGDECIMAL
 static final int C_SETBIGDECIMAL
 o C_SETOBJECT
 static final int C_SETOBJECT
 o C_CLEARPARAMETERS
 static final int C_CLEARPARAMETERS
 o apis
 static final String apis[]
 o errs
 static final String errs[]

Constructors

 o jdbcMysqlStmt
 jdbcMysqlStmt(jdbcMysqlConnex connection) throws SQLException

Methods

 o executeUpdate
 public int executeUpdate(String sql) throws SQLException
 o mExecUpdate
 void mExecUpdate(byte sql[]) throws SQLException
 o mxEU
 private void mxEU(byte sql[]) throws SQLException
 o executeQuery
 public ResultSet executeQuery(String sql) throws SQLException
 o mExecQuery
 ResultSet mExecQuery(byte sql[]) throws SQLException
 o mxEQ
 private jdbcMysqlRSet mxEQ(byte sql[]) throws SQLException
 o execute
 public boolean execute(String sql) throws SQLException
 o pseudoResult
 ResultSet pseudoResult(Vector data,
                        RSMd rsmd) throws SQLException
 o close
 public void close() throws SQLException
The API is a little vague about this. As implemented in invalidates results from any previous inquiries and renders the statement unusable for future inquiries. From a technical standpoint there is no reason why the statement should not be reusable, but I'll let it stand as is unless shown to be wrong.

 o getMaxFieldSize
 public int getMaxFieldSize() throws SQLException
See the API. While showing maximum field size returnable to the caller, there are dependencies on the communication protocol and its packages for an upper bound which may not be reflected here.

 o setMaxFieldSize
 public void setMaxFieldSize(int s) throws SQLException
See the API. While setting the maximum field size returnable to the caller, there are dependencies on the communication protocol and its packages for an upper bound which may not be reflected here.

 o getMaxRows
 public int getMaxRows() throws SQLException
See API.

 o setMaxRows
 public void setMaxRows(int s) throws SQLException
See API

 o setEscapeProcessing
 public void setEscapeProcessing(boolean t) throws SQLException
See API. Throws an exception as MySQL's escape processing is implicit and invariant. At some future time (if there is demand) this driver may be modified to do some escpae processing, but as of now it does not.

 o getQueryTimeout
 public int getQueryTimeout() throws SQLException
Varies somewhat from the API as the timeout value in this implementation refers to the time the mutex lock on the referent statement times out, rather than total duration of execution. IE the time before a "waiting" request times out: the reqirement that a query to the connection be completed mandates this variation.

 o setQueryTimeout
 public void setQueryTimeout(int t) throws SQLException
Varies somewhat from the API as the timeout value in this implementation refers to the time the mutex lock on the referent statement times out, rather than total duration of execution. IE the time before a "waiting" request times out: the reqirement that a query to the connection be completed mandates this variation.

 o cancel
 public void cancel() throws SQLException
See API. In actuality this varies from the API because MySQL does not support multiple queries on a single connection. If another thread is executing this statement, cancel() will be blocked until that request clears, at which time the statement will be effectively closed.

 o getWarnings
 public SQLWarning getWarnings() throws SQLException
Returns null. In the near future it will return the top of the error stack.

 o clearWarnings
 public void clearWarnings() throws SQLException
Does nothing now, in the future it will clear the warning chain.

 o setCursorName
 public void setCursorName(String s) throws SQLException
See API: this throws an exception as cursors are not supported in MySQL.

 o getUpdateCount
 public int getUpdateCount() throws SQLException
See the API. There may be exceptions to the API use of this method following the execution of private SQL methods.

 o getMoreResults
 public boolean getMoreResults() throws SQLException
See the API. This will return true only if a query has been executed by an execute() and the RS not yet retrieved.

 o getResultSet
 public ResultSet getResultSet() throws SQLException
See API. For MySQL there should be only one RS generated per query.

 o sAction
 private int sAction(int option,
                     int vi,
                     String vs) throws SQLException
 o getCommandValue
 void getCommandValue(String sql) throws SQLException
 o lock
 boolean lock(boolean lockOnOff,
              int oid,
              int timeout) throws SQLException
Invoke a mutex to protect access to the statement.

Parameters:
lockOnOff - set or clear the mutex.
oid - Object setting the lock.
timeout - time (seconds) to wait before tossing cookies.
 o errHandlerM
 void errHandlerM(int n,
                  String m) throws SQLException
 o errHandlerE
 void errHandlerE(int n,
                  Exception e) throws SQLException
 o errHandlerE2
 void errHandlerE2(int n,
                   String s,
                   Exception e) throws SQLException
 o iGetMaxFieldSize
 int iGetMaxFieldSize()

All Packages  Class Hierarchy  This Package  Previous  Next  Index