All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.imaginary.sql.msql.MsqlPreparedStatement

java.lang.Object
   |
   +----com.imaginary.sql.msql.MsqlStatement
           |
           +----com.imaginary.sql.msql.MsqlPreparedStatement

public class MsqlPreparedStatement
extends MsqlStatement
implements PreparedStatement, Runnable
The MsqlPreparedStatement is an mSQL implementation of the JDBC PreparedStatement interface. Specifically, it enables an application to execute the same SQL over and over again without repeatedly writing logic to build the SQL statements. Instead, the application just passes new inputs. Because mSQL is completely unaware of the concept of a PreparedStatement, the mSQL driver basically hacks it by doing its own parsing and management. There is still a huge advantage to using the PreparedStatement over a regular statement in that you never have to worry about date or String formatting.
Last modified $Date: 1998/11/06 05:53:25 $

Version:
$Revision: 2.2.2.1 $
Author:
George Reese (borg@imaginary.com)

Method Index

 o clearParameters()
 o execute()
 o executeQuery()
 o executeUpdate()
 o run()
 o setAsciiStream(int, InputStream, int)
 o setBigDecimal(int, BigDecimal)
 o setBinaryStream(int, InputStream, int)
 o setBoolean(int, boolean)
 o setByte(int, byte)
 o setBytes(int, byte[])
 o setDate(int, Date)
 o setDouble(int, double)
 o setFloat(int, float)
 o setInt(int, int)
 o setLong(int, long)
 o setNull(int, int)
 o setObject(int, Object)
 o setObject(int, Object, int)
 o setObject(int, Object, int, int)
 o setShort(int, short)
 o setString(int, String)
 o setTime(int, Time)
 o setTimestamp(int, Timestamp)
 o setUnicodeStream(int, InputStream, int)

Methods

 o clearParameters
 public synchronized void clearParameters() throws SQLException
 o execute
 public synchronized boolean execute() throws SQLException
 o executeQuery
 public synchronized ResultSet executeQuery() throws SQLException
 o executeUpdate
 public synchronized int executeUpdate() throws SQLException
 o run
 public void run()
 o setAsciiStream
 public synchronized void setAsciiStream(int ind,
                                         InputStream in,
                                         int len) throws SQLException
 o setBigDecimal
 public synchronized void setBigDecimal(int ind,
                                        BigDecimal bd) throws SQLException
 o setBinaryStream
 public synchronized void setBinaryStream(int ind,
                                          InputStream in,
                                          int len) throws SQLException
 o setBoolean
 public synchronized void setBoolean(int ind,
                                     boolean b) throws SQLException
 o setByte
 public synchronized void setByte(int ind,
                                  byte b) throws SQLException
 o setBytes
 public synchronized void setBytes(int ind,
                                   byte b[]) throws SQLException
 o setDate
 public synchronized void setDate(int ind,
                                  Date d) throws SQLException
 o setDouble
 public synchronized void setDouble(int ind,
                                    double d) throws SQLException
 o setFloat
 public synchronized void setFloat(int ind,
                                   float f) throws SQLException
 o setInt
 public synchronized void setInt(int ind,
                                 int x) throws SQLException
 o setLong
 public synchronized void setLong(int ind,
                                  long l) throws SQLException
 o setNull
 public synchronized void setNull(int ind,
                                  int type) throws SQLException
 o setObject
 public synchronized void setObject(int ind,
                                    Object ob) throws SQLException
 o setObject
 public synchronized void setObject(int ind,
                                    Object ob,
                                    int type) throws SQLException
 o setObject
 public synchronized void setObject(int ind,
                                    Object ob,
                                    int type,
                                    int scale) throws SQLException
 o setShort
 public synchronized void setShort(int ind,
                                   short s) throws SQLException
 o setString
 public synchronized void setString(int ind,
                                    String str) throws SQLException
 o setTime
 public synchronized void setTime(int ind,
                                  Time t) throws SQLException
 o setTimestamp
 public synchronized void setTimestamp(int ind,
                                       Timestamp t) throws SQLException
 o setUnicodeStream
 public synchronized void setUnicodeStream(int ind,
                                           InputStream in,
                                           int len) throws SQLException

All Packages  Class Hierarchy  This Package  Previous  Next  Index