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)
-
clearParameters()
-
-
execute()
-
-
executeQuery()
-
-
executeUpdate()
-
-
run()
-
-
setAsciiStream(int, InputStream, int)
-
-
setBigDecimal(int, BigDecimal)
-
-
setBinaryStream(int, InputStream, int)
-
-
setBoolean(int, boolean)
-
-
setByte(int, byte)
-
-
setBytes(int, byte[])
-
-
setDate(int, Date)
-
-
setDouble(int, double)
-
-
setFloat(int, float)
-
-
setInt(int, int)
-
-
setLong(int, long)
-
-
setNull(int, int)
-
-
setObject(int, Object)
-
-
setObject(int, Object, int)
-
-
setObject(int, Object, int, int)
-
-
setShort(int, short)
-
-
setString(int, String)
-
-
setTime(int, Time)
-
-
setTimestamp(int, Timestamp)
-
-
setUnicodeStream(int, InputStream, int)
-
clearParameters
public synchronized void clearParameters() throws SQLException
execute
public synchronized boolean execute() throws SQLException
executeQuery
public synchronized ResultSet executeQuery() throws SQLException
executeUpdate
public synchronized int executeUpdate() throws SQLException
run
public void run()
setAsciiStream
public synchronized void setAsciiStream(int ind,
InputStream in,
int len) throws SQLException
setBigDecimal
public synchronized void setBigDecimal(int ind,
BigDecimal bd) throws SQLException
setBinaryStream
public synchronized void setBinaryStream(int ind,
InputStream in,
int len) throws SQLException
setBoolean
public synchronized void setBoolean(int ind,
boolean b) throws SQLException
setByte
public synchronized void setByte(int ind,
byte b) throws SQLException
setBytes
public synchronized void setBytes(int ind,
byte b[]) throws SQLException
setDate
public synchronized void setDate(int ind,
Date d) throws SQLException
setDouble
public synchronized void setDouble(int ind,
double d) throws SQLException
setFloat
public synchronized void setFloat(int ind,
float f) throws SQLException
setInt
public synchronized void setInt(int ind,
int x) throws SQLException
setLong
public synchronized void setLong(int ind,
long l) throws SQLException
setNull
public synchronized void setNull(int ind,
int type) throws SQLException
setObject
public synchronized void setObject(int ind,
Object ob) throws SQLException
setObject
public synchronized void setObject(int ind,
Object ob,
int type) throws SQLException
setObject
public synchronized void setObject(int ind,
Object ob,
int type,
int scale) throws SQLException
setShort
public synchronized void setShort(int ind,
short s) throws SQLException
setString
public synchronized void setString(int ind,
String str) throws SQLException
setTime
public synchronized void setTime(int ind,
Time t) throws SQLException
setTimestamp
public synchronized void setTimestamp(int ind,
Timestamp t) throws SQLException
setUnicodeStream
public synchronized void setUnicodeStream(int ind,
InputStream in,
int len) throws SQLException
All Packages Class Hierarchy This Package Previous Next Index