Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.imaginary.sql.msql.MsqlStatement | +--com.imaginary.sql.msql.MsqlPreparedStatement
Fields inherited from class com.imaginary.sql.msql.MsqlStatement | |
log |
Method Summary | |
void | addBatch()
Adds the current parameter values to the batch list and then clears the parameters for the next set of parameters. |
void | clearParameters()
Clears the current parameters. |
boolean | execute()
Executes the stored procedure with its current values. |
java.sql.ResultSet | executeQuery()
Executes the stored query with its current values. |
int | executeUpdate()
Executes the stored update with its current values. |
java.sql.ResultSetMetaData | getMetaData()
This errors out because I have not yet figured out a good way to implement this for mSQL. |
void | setArray(int ind,
java.sql.Array arr)
This is not really supported, but it tries. |
void | setAsciiStream(int ind,
java.io.InputStream in,
int len)
Sets the parameter to the data in the specified stream. |
void | setBigDecimal(int ind,
java.math.BigDecimal bd)
Sets the specified parameter to a BigDecimal value. |
void | setBinaryStream(int ind,
java.io.InputStream in,
int len)
Sets the parameter to the data in the specified stream. |
void | setBlob(int ind,
java.sql.Blob b)
Sets the specified parameter to a Blob value. |
void | setBoolean(int ind,
boolean b)
Sets the specified parameter to a boolean value. |
void | setByte(int ind,
byte b)
Sets the specified parameter to the specified byte value. |
void | setBytes(int ind,
byte[] data)
Sets the specified parameter to the specified byte value. |
void | setCharacterStream(int ind,
java.io.Reader in,
int len)
Sets the parameter to the data in the specified stream. |
void | setClob(int ind,
java.sql.Clob c)
Sets the specified parameter to a Clob value. |
void | setDate(int ind,
java.sql.Date d)
Sets the specified parameter to a date value stored in the mSQL database as a string in the form dd-MMM-yyyy. |
void | setDate(int ind,
java.sql.Date d,
java.util.Calendar cal)
Sets the specified parameter to a date value stored in the mSQL database as a string in the form dd-MMM-yyyy. |
void | setDouble(int ind,
double d)
Sets the specified parameter to a double value. |
void | setFloat(int ind,
float f)
Sets the specified parameter to a float value. |
void | setInt(int ind,
int x)
Sets the specified parameter to an int value. |
void | setLong(int ind,
long l)
Sets the specified parameter to a long value. |
void | setNull(int ind,
int type)
Sets the specified parameter to a null value. |
void | setNull(int ind,
int type,
java.lang.String tname)
Sets the specified parameter to a null value. |
void | setObject(int ind,
java.lang.Object ob)
Sets the specified parameter to a Java object value by calling ob.toString(). |
void | setObject(int ind,
java.lang.Object ob,
int type)
Sets the specified parameter to a Java object value according to the SQL type specified. |
void | setObject(int ind,
java.lang.Object ob,
int type,
int scale)
Sets the specified parameter to a Java object value according to the SQL type specified. |
void | setRef(int ind,
java.sql.Ref r)
Sets the specified parameter to a Ref value. |
void | setShort(int ind,
short s)
Sets the specified parameter to a short value. |
void | setString(int ind,
java.lang.String str)
Sets the specified parameter to a String value. |
void | setTime(int ind,
java.sql.Time t)
Sets the specified parameter to a Time value. |
void | setTime(int ind,
java.sql.Time t,
java.util.Calendar cal)
Sets the specified parameter to a Time value. |
void | setTimestamp(int ind,
java.sql.Timestamp t)
Sets the specified parameter to a Timestamp value. |
void | setTimestamp(int ind,
java.sql.Timestamp t,
java.util.Calendar cal)
Sets the specified parameter to a Timestamp value. |
void | setUnicodeStream(int ind,
java.io.InputStream in,
int len)
Deprecated. Sets the specified parameter to the data contained in the specified unicode stream. |
Methods inherited from class com.imaginary.sql.msql.MsqlStatement | |
addBatch, cancel, clearBatch, clearWarnings, close, executeBatch, execute, executeQuery, executeUpdate, getConnection, getEncoding, getFetchDirection, getFetchSize, getMaxFieldSize, getMaxRows, getMoreResults, getQueryTimeout, getResultSetConcurrency, getResultSet, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Method Detail |
public void addBatch() throws java.sql.SQLException
public void clearParameters() throws java.sql.SQLException
public boolean execute() throws java.sql.SQLException
public java.sql.ResultSet executeQuery() throws java.sql.SQLException
public int executeUpdate() throws java.sql.SQLException
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
public void setArray(int ind, java.sql.Array arr) throws java.sql.SQLException
ind
- the parameter to be set
arr
- the array valuepublic void setAsciiStream(int ind, java.io.InputStream in, int len) throws java.sql.SQLException
ind
- the parameter to set
in
- the stream containing the data
len
- the number of bytes in the streampublic void setBigDecimal(int ind, java.math.BigDecimal bd) throws java.sql.SQLException
ind
- the parameter to be set
db
- the BigDecimal valuepublic void setBinaryStream(int ind, java.io.InputStream in, int len) throws java.sql.SQLException
ind
- the parameter to set
in
- the stream containing the data
len
- the number of bytes in the streampublic void setBlob(int ind, java.sql.Blob b) throws java.sql.SQLException
ind
- the parameter to be set
db
- the Blob valuepublic void setBoolean(int ind, boolean b) throws java.sql.SQLException
ind
- the parameter to set
b
- the value to setpublic void setByte(int ind, byte b) throws java.sql.SQLException
ind
- the paramter to be set
b
- the byte valuepublic void setBytes(int ind, byte[] data) throws java.sql.SQLException
ind
- the paramter to be set
data
- the byte array valuepublic void setCharacterStream(int ind, java.io.Reader in, int len) throws java.sql.SQLException
ind
- the parameter to set
in
- the stream containing the data
len
- the number of bytes in the streampublic void setClob(int ind, java.sql.Clob c) throws java.sql.SQLException
ind
- the parameter to be set
c
- the Clob valuepublic void setDate(int ind, java.sql.Date d) throws java.sql.SQLException
ind
- the parameter to be set
d
- the Date value to setpublic void setDate(int ind, java.sql.Date d, java.util.Calendar cal) throws java.sql.SQLException
ind
- the parameter to be set
d
- the Date value to set
cal
- the Calendar to usepublic void setDouble(int ind, double d) throws java.sql.SQLException
ind
- the parameter to be set
d
- the value to setpublic void setFloat(int ind, float f) throws java.sql.SQLException
ind
- the parameter to be set
f
- the value to setpublic void setInt(int ind, int x) throws java.sql.SQLException
ind
- the parameter to be set
x
- the value to setpublic void setLong(int ind, long l) throws java.sql.SQLException
ind
- the parameter to be set
l
- the value to setpublic void setNull(int ind, int type) throws java.sql.SQLException
ind
- the parameter to be set
type
- the SQL type of the value to be setpublic void setNull(int ind, int type, java.lang.String tname) throws java.sql.SQLException
ind
- the parameter to be set
type
- the SQL type of the value to be set
tname
- the name of the UDTpublic void setObject(int ind, java.lang.Object ob) throws java.sql.SQLException
ind
- the parameter to be set
ob
- the object to be setpublic void setObject(int ind, java.lang.Object ob, int type) throws java.sql.SQLException
ind
- the parameter to be set
ob
- the object to be set
type
- the target SQL typepublic void setObject(int ind, java.lang.Object ob, int type, int scale) throws java.sql.SQLException
ind
- the parameter to be set
ob
- the object to be set
type
- the target SQL type
scale
- this is ignoredpublic void setRef(int ind, java.sql.Ref r) throws java.sql.SQLException
ind
- the parameter to be set
r
- the Ref valuepublic void setShort(int ind, short s) throws java.sql.SQLException
ind
- the parameter to be set
s
- the value to setpublic void setString(int ind, java.lang.String str) throws java.sql.SQLException
ind
- the parameter to be set
str
- the value to setpublic void setTime(int ind, java.sql.Time t) throws java.sql.SQLException
ind
- the parameter to be set
t
- the value to setpublic void setTime(int ind, java.sql.Time t, java.util.Calendar cal) throws java.sql.SQLException
ind
- the parameter to be set
t
- the value to set
cal
- the Calendar to usepublic void setTimestamp(int ind, java.sql.Timestamp t) throws java.sql.SQLException
ind
- the parameter to be set
t
- the value to setpublic void setTimestamp(int ind, java.sql.Timestamp t, java.util.Calendar cal) throws java.sql.SQLException
ind
- the parameter to be set
t
- the value to set
cal
- the Calendar to usepublic void setUnicodeStream(int ind, java.io.InputStream in, int len) throws java.sql.SQLException
ind
- the parameter being set
in
- the stream with the data
len
- the number of bytes to be readOverview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |