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.MsqlResultSet
Field Summary | |
MsqlLog | log
|
Method Summary | |
void | afterLast()
Moves the result set to after the last row. |
void | beforeFirst()
Moves the result set to before the first row. |
void | cancelRowUpdates()
This feature is not currently supported. |
void | clearWarnings()
mSQL does not generate warnings, so this method is a NO-OP |
void | close()
A NO-OP for this base class. |
void | complete()
This method is called to mark a result set as complete. |
void | deleteRow()
The default implementation throws an exception. |
boolean | first()
Moves the result set to the first row. |
java.sql.Array | getArray(java.lang.String cname)
mSQL does not support array columns. |
java.sql.Array | getArray(int column)
mSQL does not support array columns. |
java.io.InputStream | getAsciiStream(java.lang.String cname)
For performance reasons, you should get values by column number when at all possible. |
java.math.BigDecimal | getBigDecimal(java.lang.String cname)
Avoid getting columns by name whenever possible. |
java.math.BigDecimal | getBigDecimal(int column)
|
java.math.BigDecimal | getBigDecimal(java.lang.String cname,
int scale)
Deprecated. Avoid getting columns by name whenever possible. |
java.math.BigDecimal | getBigDecimal(int column,
int scale)
Deprecated. |
java.io.InputStream | getBinaryStream(java.lang.String cname)
Avoid getting columns by name whenever possible. |
java.sql.Blob | getBlob(java.lang.String cname)
mSQL does not support BLOBs. |
java.sql.Blob | getBlob(int column)
mSQL does not support BLOBs. |
boolean | getBoolean(java.lang.String cname)
Avoid getting columns by name whenever possible. |
byte | getByte(java.lang.String cname)
Avoid getting columns by name whenever possible. |
byte[] | getBytes(java.lang.String cname)
Avoid getting columns by name whenever possible. |
java.io.Reader | getCharacterStream(java.lang.String cname)
Avoid getting columns by name whenever possible. |
java.io.Reader | getCharacterStream(int column)
|
java.sql.Clob | getClob(java.lang.String cname)
mSQL does not support Character large objects. |
java.sql.Clob | getClob(int column)
mSQL does not support Character large objects |
int | getConcurrency()
|
java.lang.String | getCursorName()
|
java.sql.Date | getDate(java.lang.String cname)
Avoid getting columns by name whenever possible. |
java.sql.Date | getDate(int column)
mSQL 1.0 does not support a date type, but 2.0 does. |
java.sql.Date | getDate(java.lang.String cname,
java.util.Calendar cal)
Avoid getting columns by name whenever possible. |
java.sql.Date | getDate(int column,
java.util.Calendar cal)
mSQL 1.0 does not support a date type, but 2.0 does. |
double | getDouble(java.lang.String cname)
Avoid getting columns by name whenever possible. |
double | getDouble(int column)
|
java.lang.String | getEncoding()
|
int | getFetchDirection()
|
int | getFetchSize()
mSQL-JDBC always fetches all rows. |
float | getFloat(java.lang.String cname)
Avoid getting columns by name whenever possible. |
float | getFloat(int column)
|
int | getInt(java.lang.String cname)
Avoid getting columns by name whenever possible. |
int | getInt(int column)
|
long | getLong(java.lang.String cname)
Avoid getting columns by name whenever possible. |
long | getLong(int column)
|
java.lang.Object | getObject(java.lang.String cname)
Avoid getting columns by name whenever possible. |
java.lang.Object | getObject(int column)
|
java.lang.Object | getObject(java.lang.String cname,
java.util.Map types)
This method exists for the sake of compliance with JDBC 2.0 and possible future UDTs in mSQL. Try to avoid getting columns by name whenever possible. |
java.lang.Object | getObject(int column,
java.util.Map types)
This method exists for the sake of compliance with JDBC 2.0 and possible future UDTs in mSQL. |
java.sql.Ref | getRef(java.lang.String cname)
mSQL-JDBC does not currently support references |
java.sql.Ref | getRef(int column)
mSQL-JDBC does not currently support references |
short | getShort(java.lang.String cname)
Avoid getting columns by name whenever possible. |
short | getShort(int column)
|
java.sql.Statement | getStatement()
|
java.lang.String | getString(java.lang.String cname)
Avoid getting columns by name whenever possible. |
java.sql.Time | getTime(java.lang.String cname)
Avoid getting columns by name whenever possible. |
java.sql.Time | getTime(int column)
|
java.sql.Time | getTime(java.lang.String cname,
java.util.Calendar cal)
Avoid getting columns by name whenever possible. |
java.sql.Time | getTime(int column,
java.util.Calendar cal)
|
java.sql.Timestamp | getTimestamp(java.lang.String cname)
Timestamps are not really supported in mSQL. To make use of them, store timestamps in char fields. |
java.sql.Timestamp | getTimestamp(int column)
Timestamps are not really supported in mSQL. To make use of them, store timestamps in char fields. |
java.sql.Timestamp | getTimestamp(java.lang.String cname,
java.util.Calendar cal)
Timestamps are not really supported in mSQL. To make use of them, store timestamps in char fields. |
java.sql.Timestamp | getTimestamp(int column,
java.util.Calendar c)
Timestamps are not really supported in mSQL. To make use of them, store timestamps in char fields. |
int | getType()
|
java.io.InputStream | getUnicodeStream(java.lang.String cname)
Deprecated. Avoid getting columns by name whenever possible. |
java.lang.String | getUpdate(int col)
This method does nothing. |
java.sql.SQLWarning | getWarnings()
mSQL does not generate warnings, so this method always returns null. |
void | insertRow()
This is a NO-OP. Implementing classes should extend this method. |
boolean | isAfterLast()
Determines if the driver is positioned after the last row. |
boolean | isBeforeFirst()
Because of the way the driver works, isAfterLast() == isBeforeFirst(). |
boolean | isFirst()
|
boolean | last()
Moves the result set to the last row. |
void | moveToCurrentRow()
Moves the cursor to the current row. |
void | moveToInsertRow()
This is a NO-OP. Implementing classes should extend this. |
void | refreshRow()
This method is a NO-OP. Implementing classes should extend this. |
boolean | rowDeleted()
The default implementation here returns false. |
boolean | rowInserted()
The default implementation here returns false. |
boolean | rowUpdated()
The default implementation here returns false. |
void | setColumn(int col,
java.lang.String val)
This method checks only that the result set is updatable. |
void | setFetchDirection(int dir)
Provide a hint to mSQL-JDBC as to which direction results should be fetched in. |
void | setFetchSize(int unused)
This is a NO-OP since no matter what you suggest, mSQL-JDBC is forced by the mSQL network protocol to download all rows. |
void | setType(int t)
Sets the result set type. |
void | updateAsciiStream(int col,
java.io.InputStream is,
int len)
Performs an in-place modification of the specified column. |
void | updateAsciiStream(java.lang.String cname,
java.io.InputStream is,
int len)
Performs an in-place modification of the specified column. |
void | updateBigDecimal(int column,
java.math.BigDecimal d)
Does an in-place update of the specified column in the current row. |
void | updateBigDecimal(java.lang.String cname,
java.math.BigDecimal d)
Does an in-place update of the specified column in the current row. |
void | updateBinaryStream(int column,
java.io.InputStream is,
int len)
Does an in-place update of the specified column in the current row. |
void | updateBinaryStream(java.lang.String cname,
java.io.InputStream is,
int len)
Performs an in-place modification of the specified column. |
void | updateBlob(int column,
java.sql.Blob b)
Performs an in-place modification of a Blob column. |
void | updateBoolean(int column,
boolean b)
Performs an in-place modification of the specified column. |
void | updateBoolean(java.lang.String cname,
boolean b)
Performs an in-place modification of the specified column. |
void | updateByte(int column,
byte b)
Performs an in-place modification of the specified column. |
void | updateByte(java.lang.String cname,
byte b)
Performs an in-place modification of the specified column. |
void | updateBytes(int column,
byte[] data)
Performs an in-place modification of the specified column. |
void | updateBytes(java.lang.String cname,
byte[] b)
Performs an in-place modification of the specified column. |
void | updateCharacterStream(int column,
java.io.Reader in,
int len)
Performs an in-place modification of the specified column. |
void | updateCharacterStream(java.lang.String cname,
java.io.Reader r,
int len)
Performs an in-place modification of the specified column. |
void | updateDate(int column,
java.sql.Date d)
Performs an in-place modification of the specified column. |
void | updateDate(java.lang.String cname,
java.sql.Date d)
Performs an in-place modification of the specified column. |
void | updateDouble(int column,
double d)
Performs an in-place modification of the specified column. |
void | updateDouble(java.lang.String cname,
double d)
Performs an in-place modification of the specified column. |
void | updateFloat(int column,
float f)
Performs an in-place modification of the specified column. |
void | updateFloat(java.lang.String cname,
float f)
Performs an in-place modification of the specified column. |
void | updateInt(int column,
int x)
Performs an in-place modification of the specified column. |
void | updateInt(java.lang.String cname,
int x)
Performs an in-place modification of the specified column. |
void | updateLong(int column,
long l)
Performs an in-place modification of the specified column. |
void | updateLong(java.lang.String cname,
long l)
Performs an in-place modification of the specified column. |
void | updateNull(int column)
Performs an in-place modification of the specified column. |
void | updateNull(java.lang.String cname)
Performs an in-place modification of the specified column. |
void | updateObject(int column,
java.lang.Object ob)
Performs an in-place modification of the specified column. |
void | updateObject(int column,
java.lang.Object ob,
int scale)
Performs an in-place modification of the specified column. |
void | updateObject(java.lang.String cname,
java.lang.Object ob)
Performs an in-place modification of the specified column. |
void | updateObject(java.lang.String cname,
java.lang.Object ob,
int scale)
Performs an in-place modification of the specified column. |
void | updateRow()
Sends changes to the current row to the database. |
void | updateShort(int column,
short s)
Performs an in-place modification of the specified column. |
void | updateShort(java.lang.String cname,
short s)
Performs an in-place modification of the specified column. |
void | updateString(int column,
java.lang.String str)
Performs an in-place modification of the specified column. |
void | updateString(java.lang.String cname,
java.lang.String str)
Performs an in-place modification of the specified column. |
void | updateTime(int column,
java.sql.Time t)
Performs an in-place modification of the specified column. |
void | updateTime(java.lang.String cname,
java.sql.Time t)
Performs an in-place modification of the specified column. |
void | updateTimestamp(int column,
java.sql.Timestamp ts)
Performs an in-place modification of the specified column. |
void | updateTimestamp(java.lang.String cname,
java.sql.Timestamp ts)
Performs an in-place modification of the specified column. |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Field Detail |
protected MsqlLog log
Method Detail |
public void afterLast() throws java.sql.SQLException
public void beforeFirst() throws java.sql.SQLException
public void cancelRowUpdates() throws java.sql.SQLException
public void clearWarnings() throws java.sql.SQLException
public void close() throws java.sql.SQLException
public void complete()
public void deleteRow() throws java.sql.SQLException
public boolean first() throws java.sql.SQLException
public java.sql.Array getArray(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.sql.Array getArray(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic java.io.InputStream getAsciiStream(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.math.BigDecimal getBigDecimal(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the column being soughtpublic java.math.BigDecimal getBigDecimal(int column) throws java.sql.SQLException
column
- the column number of the desired columnpublic java.math.BigDecimal getBigDecimal(java.lang.String cname, int scale) throws java.sql.SQLException
cname
- the name of the column being sought
scale
- the scale with which the BigDecimal should be constructedpublic java.math.BigDecimal getBigDecimal(int column, int scale) throws java.sql.SQLException
column
- the column number of the desired column
scale
- the scale with which the BigDecimal should be constructedpublic java.io.InputStream getBinaryStream(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.sql.Blob getBlob(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.sql.Blob getBlob(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic boolean getBoolean(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic byte getByte(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic byte[] getBytes(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.io.Reader getCharacterStream(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.io.Reader getCharacterStream(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic java.sql.Clob getClob(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.sql.Clob getClob(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic int getConcurrency() throws java.sql.SQLException
public java.lang.String getCursorName() throws java.sql.SQLException
public java.sql.Date getDate(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.sql.Date getDate(int column) throws java.sql.SQLException
column
- the number of desired columnpublic java.sql.Date getDate(java.lang.String cname, java.util.Calendar cal) throws java.sql.SQLException
cname
- the name of the desired column
cal
- the Calendar to use in constructing the Datepublic java.sql.Date getDate(int column, java.util.Calendar cal) throws java.sql.SQLException
column
- the number of desired column
cal
- the Calendar to use in constructing the datepublic double getDouble(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic double getDouble(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic java.lang.String getEncoding()
public int getFetchDirection() throws java.sql.SQLException
public int getFetchSize() throws java.sql.SQLException
public float getFloat(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic float getFloat(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic int getInt(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic int getInt(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic long getLong(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic long getLong(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic java.lang.Object getObject(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.lang.Object getObject(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic java.lang.Object getObject(java.lang.String cname, java.util.Map types) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.lang.Object getObject(int column, java.util.Map types) throws java.sql.SQLException
column
- the number of the desired columnpublic java.sql.Ref getRef(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.sql.Ref getRef(int column) throws java.sql.SQLException
column
- the desired column numberpublic short getShort(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic short getShort(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic java.sql.Statement getStatement() throws java.sql.SQLException
public java.lang.String getString(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.sql.Time getTime(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.sql.Time getTime(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic java.sql.Time getTime(java.lang.String cname, java.util.Calendar cal) throws java.sql.SQLException
cname
- the name of the desired column
cal
- the Calendar to use in creating the Time objectpublic java.sql.Time getTime(int column, java.util.Calendar cal) throws java.sql.SQLException
column
- the number of the desired column
cal
- the Calendar to use in creating the Time objectpublic java.sql.Timestamp getTimestamp(java.lang.String cname) throws java.sql.SQLException
Timestamps are not really supported in mSQL. To make use of them, store timestamps in char fields.
Avoid getting columns by name whenever possible.
cname
- the name of the desired columnpublic java.sql.Timestamp getTimestamp(int column) throws java.sql.SQLException
Timestamps are not really supported in mSQL. To make use of them, store timestamps in char fields.
column
- the number of the desired columnpublic java.sql.Timestamp getTimestamp(java.lang.String cname, java.util.Calendar cal) throws java.sql.SQLException
Timestamps are not really supported in mSQL. To make use of them, store timestamps in char fields.
Avoid getting columns by name whenever possible.
cname
- the name of the desired column
cal
- this is currently ignoredpublic java.sql.Timestamp getTimestamp(int column, java.util.Calendar c) throws java.sql.SQLException
Timestamps are not really supported in mSQL. To make use of them, store timestamps in char fields.
column
- the number of the desired column
c
- this is currently ignoredpublic int getType() throws java.sql.SQLException
public java.io.InputStream getUnicodeStream(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnprotected java.lang.String getUpdate(int col) throws java.sql.SQLException
col
- the desired columnpublic java.sql.SQLWarning getWarnings() throws java.sql.SQLException
public void insertRow() throws java.sql.SQLException
public boolean isAfterLast() throws java.sql.SQLException
public boolean isBeforeFirst() throws java.sql.SQLException
public boolean isFirst() throws java.sql.SQLException
public boolean last() throws java.sql.SQLException
public void moveToCurrentRow() throws java.sql.SQLException
public void moveToInsertRow() throws java.sql.SQLException
public void refreshRow() throws java.sql.SQLException
public boolean rowDeleted() throws java.sql.SQLException
public boolean rowInserted() throws java.sql.SQLException
public boolean rowUpdated() throws java.sql.SQLException
protected void setColumn(int col, java.lang.String val) throws java.sql.SQLException
col
- the column number to set
val
- the value to set the column topublic void setFetchDirection(int dir) throws java.sql.SQLException
dir
- the directionpublic void setFetchSize(int unused) throws java.sql.SQLException
unused
- the suggested fetch sizepublic void setType(int t)
t
- the typepublic void updateAsciiStream(int col, java.io.InputStream is, int len) throws java.sql.SQLException
column
- the column number for the update
is
- the stream to update the column with
len
- the length of the streampublic void updateAsciiStream(java.lang.String cname, java.io.InputStream is, int len) throws java.sql.SQLException
column
- the name of the column to update
is
- the stream to update the column with
len
- the length of the streampublic void updateBigDecimal(int column, java.math.BigDecimal d) throws java.sql.SQLException
column
- the column number for the update
d
- the value to use in the updatepublic void updateBigDecimal(java.lang.String cname, java.math.BigDecimal d) throws java.sql.SQLException
column
- the name of the column to update
d
- the value to use in the updatepublic void updateBinaryStream(int column, java.io.InputStream is, int len) throws java.sql.SQLException
column
- the column number for the update
is
- the stream to update the column with
len
- the length of the streampublic void updateBinaryStream(java.lang.String cname, java.io.InputStream is, int len) throws java.sql.SQLException
column
- the name of the column to update
is
- the stream to update the column with
len
- the length of the streampublic void updateBlob(int column, java.sql.Blob b) throws java.sql.SQLException
column
- the name of the column to update
b
- the Blob valuepublic void updateBoolean(int column, boolean b) throws java.sql.SQLException
column
- the column number for the update
b
- the value to use in the updatepublic void updateBoolean(java.lang.String cname, boolean b) throws java.sql.SQLException
column
- the name of the column to update
b
- the value to use in the updatepublic void updateByte(int column, byte b) throws java.sql.SQLException
column
- the column number for the update
b
- the value to use in the updatepublic void updateByte(java.lang.String cname, byte b) throws java.sql.SQLException
column
- the name of the column to update
b
- the value to use in the updatepublic void updateBytes(int column, byte[] data) throws java.sql.SQLException
column
- the column number for the update
data
- the value to use in the updatepublic void updateBytes(java.lang.String cname, byte[] b) throws java.sql.SQLException
column
- the name of the column to update
b
- the value to use in the updatepublic void updateCharacterStream(int column, java.io.Reader in, int len) throws java.sql.SQLException
column
- the column number for the update
in
- the reader to use for the update
len
- the length of the streampublic void updateCharacterStream(java.lang.String cname, java.io.Reader r, int len) throws java.sql.SQLException
column
- the name of the column to update
r
- the reader to use for the update
len
- the length of the streampublic void updateDate(int column, java.sql.Date d) throws java.sql.SQLException
column
- the column number for the update
d
- the value to use in the updatepublic void updateDate(java.lang.String cname, java.sql.Date d) throws java.sql.SQLException
column
- the name of the column to update
d
- the value to use in the updatepublic void updateDouble(int column, double d) throws java.sql.SQLException
column
- the column number for the update
d
- the value to use in the updatepublic void updateDouble(java.lang.String cname, double d) throws java.sql.SQLException
column
- the name of the column to update
d
- the value to use in the updatepublic void updateFloat(int column, float f) throws java.sql.SQLException
column
- the column number for the update
f
- the value to use in the updatepublic void updateFloat(java.lang.String cname, float f) throws java.sql.SQLException
column
- the name of the column to update
f
- the value to use in the updatepublic void updateInt(int column, int x) throws java.sql.SQLException
column
- the column number for the update
x
- the value to use in the updatepublic void updateInt(java.lang.String cname, int x) throws java.sql.SQLException
column
- the name of the column to update
x
- the value to use in the updatepublic void updateLong(int column, long l) throws java.sql.SQLException
column
- the column number for the update
l
- the value to use in the updatepublic void updateLong(java.lang.String cname, long l) throws java.sql.SQLException
column
- the name of the column to update
l
- the value to use in the updatepublic void updateNull(int column) throws java.sql.SQLException
column
- the column number for the updatepublic void updateNull(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the column to be updatedpublic void updateObject(int column, java.lang.Object ob) throws java.sql.SQLException
column
- the column number for the update
ob
- the value to use in the updatepublic void updateObject(int column, java.lang.Object ob, int scale) throws java.sql.SQLException
column
- the column number for the update
ob
- the value to use in the update
scale
- the scale to use for numeric typespublic void updateObject(java.lang.String cname, java.lang.Object ob) throws java.sql.SQLException
column
- the name of the column to update
ob
- the value to use in the updatepublic void updateObject(java.lang.String cname, java.lang.Object ob, int scale) throws java.sql.SQLException
column
- the name of the column to update
ob
- the value to use in the update
scale
- the scale for numeric typespublic void updateRow() throws java.sql.SQLException
public void updateShort(int column, short s) throws java.sql.SQLException
column
- the column number for the update
s
- the value to use in the updatepublic void updateShort(java.lang.String cname, short s) throws java.sql.SQLException
column
- the name of the column to update
s
- the value to use in the updatepublic void updateString(int column, java.lang.String str) throws java.sql.SQLException
column
- the column number for the update
str
- the value to use in the updatepublic void updateString(java.lang.String cname, java.lang.String str) throws java.sql.SQLException
column
- the name of the column to update
str
- the value to use in the updatepublic void updateTime(int column, java.sql.Time t) throws java.sql.SQLException
column
- the column number for the update
t
- the value to use in the updatepublic void updateTime(java.lang.String cname, java.sql.Time t) throws java.sql.SQLException
column
- the name of the column to update
t
- the value to use in the updatepublic void updateTimestamp(int column, java.sql.Timestamp ts) throws java.sql.SQLException
column
- the column number for the update
ts
- the value to use in the updatepublic void updateTimestamp(java.lang.String cname, java.sql.Timestamp ts) throws java.sql.SQLException
column
- the name of the column to update
ts
- the value to use in the updateOverview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |