Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class com.imaginary.sql.msql.MsqlResultSet

java.lang.Object
  |
  +--com.imaginary.sql.msql.MsqlResultSet
Subclasses:
MsqlEmptyResultSet, MsqlQueryData

public abstract class MsqlResultSet
extends java.lang.Object
implements java.sql.ResultSet
As of mSQL-JDBC 2.0, MsqlResultSet is an abstract base class for all of the different kinds of result sets supported by mSQL-JDBC.
Last modified $Date: 1999/07/06 05:56:11 $

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

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

log

protected MsqlLog log
Method Detail

afterLast

public void afterLast()
              throws java.sql.SQLException
Moves the result set to after the last row.
Specified by:
afterLast() in interface java.sql.ResultSet
Throws:
java.sql.SQLException - a database error occurred or the result set is TYPE_FORWARD_ONLY

beforeFirst

public void beforeFirst()
                throws java.sql.SQLException
Moves the result set to before the first row.
Specified by:
beforeFirst() in interface java.sql.ResultSet
Throws:
java.sql.SQLException - a database error occurred or the result set is TYPE_FORWARD_ONLY

cancelRowUpdates

public void cancelRowUpdates()
                     throws java.sql.SQLException
This feature is not currently supported.
Specified by:
cancelRowUpdates() in interface java.sql.ResultSet
Throws:
java.sql.SQLException - this is never thrown

clearWarnings

public void clearWarnings()
                  throws java.sql.SQLException
mSQL does not generate warnings, so this method is a NO-OP
Specified by:
clearWarnings() in interface java.sql.ResultSet
Throws:
java.sql.SQLException - this is never thrown

close

public void close()
          throws java.sql.SQLException
A NO-OP for this base class.
Specified by:
close() in interface java.sql.ResultSet
Throws:
java.sql.SQLException - this is never thrown

complete

public void complete()
This method is called to mark a result set as complete.

deleteRow

public void deleteRow()
              throws java.sql.SQLException
The default implementation throws an exception.
Specified by:
deleteRow() in interface java.sql.ResultSet
Throws:
java.sql.SQLException - result set is not updatable

first

public boolean first()
             throws java.sql.SQLException
Moves the result set to the first row.
Specified by:
first() in interface java.sql.ResultSet
Throws:
java.sql.SQLException - a database error occurred or the result set TYPE_FORWARD_ONLY

getArray

public java.sql.Array getArray(java.lang.String cname)
                       throws java.sql.SQLException
mSQL does not support array columns.
Specified by:
getArray(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as an Array
Throws:
java.sql.SQLException - this is always thrown

getArray

public java.sql.Array getArray(int column)
                       throws java.sql.SQLException
mSQL does not support array columns.
Specified by:
getArray(int) in interface java.sql.ResultSet
Parameters:
column - the number of the desired column
Returns:
the column as an Array
Throws:
java.sql.SQLException - this is always thrown

getAsciiStream

public java.io.InputStream getAsciiStream(java.lang.String cname)
                                  throws java.sql.SQLException
For performance reasons, you should get values by column number when at all possible.
Specified by:
getAsciiStream(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
an ASCII input stream for the column
Throws:
java.sql.SQLException - thrown when the column cannot be read

getBigDecimal

public java.math.BigDecimal getBigDecimal(java.lang.String cname)
                                  throws java.sql.SQLException
Avoid getting columns by name whenever possible.
Specified by:
getBigDecimal(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the column being sought
Returns:
the specified column as a BigDecimal
Throws:
java.sql.SQLException - thrown when the column cannot be read

getBigDecimal

public java.math.BigDecimal getBigDecimal(int column)
                                  throws java.sql.SQLException
Description copied from interface:
 
Specified by:
getBigDecimal(int) in interface java.sql.ResultSet
Parameters:
column - the column number of the desired column
Returns:
the specified column as a BigDecimal
Throws:
java.sql.SQLException - thrown when the column cannot be read

getBigDecimal

public java.math.BigDecimal getBigDecimal(java.lang.String cname,
                                int scale)
                                  throws java.sql.SQLException
Deprecated.  
Avoid getting columns by name whenever possible.
Specified by:
getBigDecimal(java.lang.String, int) in interface java.sql.ResultSet
Parameters:
cname - the name of the column being sought
scale - the scale with which the BigDecimal should be constructed
Returns:
the specified column as a BigDecimal
Throws:
java.sql.SQLException - thrown when the column cannot be read

getBigDecimal

public java.math.BigDecimal getBigDecimal(int column,
                                int scale)
                                  throws java.sql.SQLException
Deprecated.  
Description copied from interface:
 
Specified by:
getBigDecimal(int, int) in interface java.sql.ResultSet
Parameters:
column - the column number of the desired column
scale - the scale with which the BigDecimal should be constructed
Returns:
the specified column as a BigDecimal
Throws:
java.sql.SQLException - thrown when the column cannot be read

getBinaryStream

public java.io.InputStream getBinaryStream(java.lang.String cname)
                                   throws java.sql.SQLException
Avoid getting columns by name whenever possible.
Specified by:
getBinaryStream(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as an InputStream
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getBlob

public java.sql.Blob getBlob(java.lang.String cname)
                     throws java.sql.SQLException
mSQL does not support BLOBs.
Specified by:
getBlob(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as a Blob
Throws:
java.sql.SQLException - this is always thrown

getBlob

public java.sql.Blob getBlob(int column)
                     throws java.sql.SQLException
mSQL does not support BLOBs.
Specified by:
getBlob(int) in interface java.sql.ResultSet
Parameters:
column - the number of the desired column
Returns:
the column as a Blob
Throws:
java.sql.SQLException - this is always thrown

getBoolean

public boolean getBoolean(java.lang.String cname)
                  throws java.sql.SQLException
Avoid getting columns by name whenever possible.
Specified by:
getBoolean(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as a boolean
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getByte

public byte getByte(java.lang.String cname)
            throws java.sql.SQLException
Avoid getting columns by name whenever possible.
Specified by:
getByte(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as a byte
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getBytes

public byte[] getBytes(java.lang.String cname)
               throws java.sql.SQLException
Avoid getting columns by name whenever possible.
Specified by:
getBytes(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as a byte array
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getCharacterStream

public java.io.Reader getCharacterStream(java.lang.String cname)
                                 throws java.sql.SQLException
Avoid getting columns by name whenever possible.
Specified by:
getCharacterStream(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as a Reader
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getCharacterStream

public java.io.Reader getCharacterStream(int column)
                                 throws java.sql.SQLException
Description copied from interface:
 
Specified by:
getCharacterStream(int) in interface java.sql.ResultSet
Parameters:
column - the number of the desired column
Returns:
the column as a Reader
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getClob

public java.sql.Clob getClob(java.lang.String cname)
                     throws java.sql.SQLException
mSQL does not support Character large objects.
Specified by:
getClob(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as a clob
Throws:
java.sql.SQLException - this is always thrown

getClob

public java.sql.Clob getClob(int column)
                     throws java.sql.SQLException
mSQL does not support Character large objects
Specified by:
getClob(int) in interface java.sql.ResultSet
Parameters:
column - the number of the desired column
Returns:
the column as a Clob
Throws:
java.sql.SQLException - this is always thrown

getConcurrency

public int getConcurrency()
                  throws java.sql.SQLException
Description copied from interface:
 
Specified by:
getConcurrency() in interface java.sql.ResultSet
Returns:
the result set concurrency
Throws:
java.sql.SQLException - this is never thrown

getCursorName

public java.lang.String getCursorName()
                              throws java.sql.SQLException
Description copied from interface:
 
Specified by:
getCursorName() in interface java.sql.ResultSet
Returns:
the cursor name
Throws:
java.sql.SQLException - this is always thrown as mSQL does not support named cursors

getDate

public java.sql.Date getDate(java.lang.String cname)
                     throws java.sql.SQLException
Avoid getting columns by name whenever possible.
Specified by:
getDate(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as a Date
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getDate

public java.sql.Date getDate(int column)
                     throws java.sql.SQLException
mSQL 1.0 does not support a date type, but 2.0 does. This method allows any version of mSQL to store dates as a CHAR type. It also allows mSQL 2.0 to store them as TEXT or DATE types. If you choose to store your date as a CHAR or TEXT type for any reason, you must store the date as a long converted into a CHAR or in DD-Mon-YYYY.
Specified by:
getDate(int) in interface java.sql.ResultSet
Parameters:
column - the number of desired column
Returns:
a Date representation of the specified column
Throws:
java.sql.SQLException - a database error occurred

getDate

public java.sql.Date getDate(java.lang.String cname,
                    java.util.Calendar cal)
                     throws java.sql.SQLException
Avoid getting columns by name whenever possible.
Specified by:
getDate(java.lang.String, java.util.Calendar) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
cal - the Calendar to use in constructing the Date
Returns:
the column as a Date
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getDate

public java.sql.Date getDate(int column,
                    java.util.Calendar cal)
                     throws java.sql.SQLException
mSQL 1.0 does not support a date type, but 2.0 does. This method allows any version of mSQL to store dates as a CHAR type. It also allows mSQL 2.0 to store them as TEXT or DATE types. If you choose to store your date as a CHAR or TEXT type for any reason, you must store the date as a long converted into a CHAR or in DD-Mon-YYYY.
Specified by:
getDate(int, java.util.Calendar) in interface java.sql.ResultSet
Parameters:
column - the number of desired column
cal - the Calendar to use in constructing the date
Returns:
a Date representation of the specified column
Throws:
java.sql.SQLException - a database error occurred

getDouble

public double getDouble(java.lang.String cname)
                throws java.sql.SQLException
Avoid getting columns by name whenever possible.
Specified by:
getDouble(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as a double
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getDouble

public double getDouble(int column)
                throws java.sql.SQLException
Description copied from interface:
 
Specified by:
getDouble(int) in interface java.sql.ResultSet
Parameters:
column - the number of the desired column
Returns:
the column as a double
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getEncoding

public java.lang.String getEncoding()

getFetchDirection

public int getFetchDirection()
                     throws java.sql.SQLException
Description copied from interface:
 
Specified by:
getFetchDirection() in interface java.sql.ResultSet
Returns:
the direction in which results might be fetched
Throws:
java.sql.SQLException - this is never thrown

getFetchSize

public int getFetchSize()
                throws java.sql.SQLException
mSQL-JDBC always fetches all rows. This is required by the mSQL network protocol and cannot be modified.
Specified by:
getFetchSize() in interface java.sql.ResultSet
Returns:
0
Throws:
java.sql.SQLException - this is never thrown

getFloat

public float getFloat(java.lang.String cname)
              throws java.sql.SQLException
Avoid getting columns by name whenever possible.
Specified by:
getFloat(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as a float
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getFloat

public float getFloat(int column)
              throws java.sql.SQLException
Description copied from interface:
 
Specified by:
getFloat(int) in interface java.sql.ResultSet
Parameters:
column - the number of the desired column
Returns:
the column as a float
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getInt

public int getInt(java.lang.String cname)
          throws java.sql.SQLException
Avoid getting columns by name whenever possible.
Specified by:
getInt(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as an int
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getInt

public int getInt(int column)
          throws java.sql.SQLException
Description copied from interface:
 
Specified by:
getInt(int) in interface java.sql.ResultSet
Parameters:
column - the number of the desired column
Returns:
the column as an int
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getLong

public long getLong(java.lang.String cname)
            throws java.sql.SQLException
Avoid getting columns by name whenever possible.
Specified by:
getLong(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as a long
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getLong

public long getLong(int column)
            throws java.sql.SQLException
Description copied from interface:
 
Specified by:
getLong(int) in interface java.sql.ResultSet
Parameters:
column - the number of the desired column
Returns:
the column as a long
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getObject

public java.lang.Object getObject(java.lang.String cname)
                          throws java.sql.SQLException
Avoid getting columns by name whenever possible.
Specified by:
getObject(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as a Java object based on the standard SQL -> Java mapping unless the SQL type is a custom SQL type, in which case the getTypeMap() value in the MsqlConnection will be used
Throws:
java.sql.SQLException - thrown in the event of an error reading the column
See Also:
getTypeMap

getObject

public java.lang.Object getObject(int column)
                          throws java.sql.SQLException
Description copied from interface:
 
Specified by:
getObject(int) in interface java.sql.ResultSet
Parameters:
column - the number of the desired column
Returns:
the column as a Java object based on the standard SQL -> Java mapping unless the SQL type is a custom SQL type, in which case the getTypeMap() value in the MsqlConnection will be used
Throws:
java.sql.SQLException - thrown in the event of an error reading the column
See Also:
getTypeMap

getObject

public java.lang.Object getObject(java.lang.String cname,
                        java.util.Map types)
                          throws java.sql.SQLException
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.
Specified by:
getObject(java.lang.String, java.util.Map) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as a Java object based on the standard SQL -> Java mapping unless the SQL type is a custom SQL type, in which case the getTypeMap() value in the MsqlConnection will be used
Throws:
java.sql.SQLException - thrown in the event of an error reading the column
See Also:
getTypeMap

getObject

public java.lang.Object getObject(int column,
                        java.util.Map types)
                          throws java.sql.SQLException
This method exists for the sake of compliance with JDBC 2.0 and possible future UDTs in mSQL.
Specified by:
getObject(int, java.util.Map) in interface java.sql.ResultSet
Parameters:
column - the number of the desired column
Returns:
the column as a Java object based on the standard SQL -> Java mapping unless the SQL type is a custom SQL type, in which case the getTypeMap() value in the MsqlConnection will be used
Throws:
java.sql.SQLException - thrown in the event of an error reading the column
See Also:
getTypeMap

getRef

public java.sql.Ref getRef(java.lang.String cname)
                   throws java.sql.SQLException
mSQL-JDBC does not currently support references
Specified by:
getRef(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
a ref for the specified column
Throws:
java.sql.SQLException - this is always thrown

getRef

public java.sql.Ref getRef(int column)
                   throws java.sql.SQLException
mSQL-JDBC does not currently support references
Specified by:
getRef(int) in interface java.sql.ResultSet
Parameters:
column - the desired column number
Returns:
a ref for the specified column
Throws:
java.sql.SQLException - this is always thrown

getShort

public short getShort(java.lang.String cname)
              throws java.sql.SQLException
Avoid getting columns by name whenever possible.
Specified by:
getShort(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as a short
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getShort

public short getShort(int column)
              throws java.sql.SQLException
Description copied from interface:
 
Specified by:
getShort(int) in interface java.sql.ResultSet
Parameters:
column - the number of the desired column
Returns:
the column as a short
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getStatement

public java.sql.Statement getStatement()
                               throws java.sql.SQLException
Description copied from interface:
 
Specified by:
getStatement() in interface java.sql.ResultSet
Returns:
the Statement that generated this result set
Throws:
java.sql.SQLException - this is never thrown

getString

public java.lang.String getString(java.lang.String cname)
                          throws java.sql.SQLException
Avoid getting columns by name whenever possible.
Specified by:
getString(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as a Java String
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getTime

public java.sql.Time getTime(java.lang.String cname)
                     throws java.sql.SQLException
Avoid getting columns by name whenever possible.
Specified by:
getTime(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as a Time object
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getTime

public java.sql.Time getTime(int column)
                     throws java.sql.SQLException
Description copied from interface:
 
Specified by:
getTime(int) in interface java.sql.ResultSet
Parameters:
column - the number of the desired column
Returns:
the column as a Java String
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getTime

public java.sql.Time getTime(java.lang.String cname,
                    java.util.Calendar cal)
                     throws java.sql.SQLException
Avoid getting columns by name whenever possible.
Specified by:
getTime(java.lang.String, java.util.Calendar) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
cal - the Calendar to use in creating the Time object
Returns:
the column as a Time object
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getTime

public java.sql.Time getTime(int column,
                    java.util.Calendar cal)
                     throws java.sql.SQLException
Description copied from interface:
 
Specified by:
getTime(int, java.util.Calendar) in interface java.sql.ResultSet
Parameters:
column - the number of the desired column
cal - the Calendar to use in creating the Time object
Returns:
the column as a Java String
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getTimestamp

public 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.

Specified by:
getTimestamp(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as a Timestamp
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getTimestamp

public 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.

Specified by:
getTimestamp(int) in interface java.sql.ResultSet
Parameters:
column - the number of the desired column
Returns:
the column as a Timestamp
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getTimestamp

public 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.

Specified by:
getTimestamp(java.lang.String, java.util.Calendar) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
cal - this is currently ignored
Returns:
the column as a Timestamp
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getTimestamp

public 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.

Specified by:
getTimestamp(int, java.util.Calendar) in interface java.sql.ResultSet
Parameters:
column - the number of the desired column
c - this is currently ignored
Returns:
the column as a Timestamp
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getType

public int getType()
           throws java.sql.SQLException
Description copied from interface:
 
Specified by:
getType() in interface java.sql.ResultSet
Returns:
the result set type
Throws:
java.sql.SQLException - this is never thrown

getUnicodeStream

public java.io.InputStream getUnicodeStream(java.lang.String cname)
                                    throws java.sql.SQLException
Deprecated. use the getCharacterStream()
Avoid getting columns by name whenever possible.
Specified by:
getUnicodeStream(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the desired column
Returns:
the column as an InputStream
Throws:
java.sql.SQLException - thrown in the event of an error reading the column

getUpdate

protected java.lang.String getUpdate(int col)
                             throws java.sql.SQLException
This method does nothing. Subclasses should extend this method.
Parameters:
col - the desired column
Returns:
the value (unescaped for strings) to be updated
Throws:
java.sql.SQLException - a database error occurred

getWarnings

public java.sql.SQLWarning getWarnings()
                               throws java.sql.SQLException
mSQL does not generate warnings, so this method always returns null.
Specified by:
getWarnings() in interface java.sql.ResultSet
Returns:
null
Throws:
java.sql.SQLException - this is never thrown

insertRow

public void insertRow()
              throws java.sql.SQLException
This is a NO-OP. Implementing classes should extend this method.
Specified by:
insertRow() in interface java.sql.ResultSet
Throws:
java.sql.SQLException - this is never thrown

isAfterLast

public boolean isAfterLast()
                   throws java.sql.SQLException
Determines if the driver is positioned after the last row.
Specified by:
isAfterLast() in interface java.sql.ResultSet
Returns:
true if the result set is positioned after the last row
Throws:
java.sql.SQLException - this is never thrown

isBeforeFirst

public boolean isBeforeFirst()
                     throws java.sql.SQLException
Because of the way the driver works, isAfterLast() == isBeforeFirst().
Specified by:
isBeforeFirst() in interface java.sql.ResultSet
Returns:
true if the result set is positioned before the first row
Throws:
java.sql.SQLException - this is never thrown

isFirst

public boolean isFirst()
               throws java.sql.SQLException
Description copied from interface:
 
Specified by:
isFirst() in interface java.sql.ResultSet
Returns:
true if the current row is the first row
Throws:
java.sql.SQLException - this is never thrown

last

public boolean last()
            throws java.sql.SQLException
Moves the result set to the last row.
Specified by:
last() in interface java.sql.ResultSet
Throws:
java.sql.SQLException - a database error occurred or the result set TYPE_FORWARD_ONLY

moveToCurrentRow

public void moveToCurrentRow()
                     throws java.sql.SQLException
Moves the cursor to the current row. This is a NO-OP since result set inserts are not yet supported.
Specified by:
moveToCurrentRow() in interface java.sql.ResultSet
Throws:
java.sql.SQLException - this is never thrown

moveToInsertRow

public void moveToInsertRow()
                    throws java.sql.SQLException
This is a NO-OP. Implementing classes should extend this.
Specified by:
moveToInsertRow() in interface java.sql.ResultSet
Throws:
java.sql.SQLException - this is never thrown

refreshRow

public void refreshRow()
               throws java.sql.SQLException
This method is a NO-OP. Implementing classes should extend this.
Specified by:
refreshRow() in interface java.sql.ResultSet
Throws:
java.sql.SQLException - result set is not updatable

rowDeleted

public boolean rowDeleted()
                  throws java.sql.SQLException
The default implementation here returns false. Subclasses that supported updatable cursors will provide a meaningful answer.
Specified by:
rowDeleted() in interface java.sql.ResultSet
Returns:
false
Throws:
java.sql.SQLException - this is never thrown

rowInserted

public boolean rowInserted()
                   throws java.sql.SQLException
The default implementation here returns false. Subclasses that supported updatable cursors will provide a meaningful answer.
Specified by:
rowInserted() in interface java.sql.ResultSet
Returns:
false
Throws:
java.sql.SQLException - this is never thrown

rowUpdated

public boolean rowUpdated()
                  throws java.sql.SQLException
The default implementation here returns false. Subclasses that supported updatable cursors will provide a meaningful answer.
Specified by:
rowUpdated() in interface java.sql.ResultSet
Returns:
false
Throws:
java.sql.SQLException - not thrown by this class

setColumn

protected void setColumn(int col,
                         java.lang.String val)
                 throws java.sql.SQLException
This method checks only that the result set is updatable. Implementing classes should extend this to provide behavior.
Parameters:
col - the column number to set
val - the value to set the column to
Throws:
java.sql.SQLException - this result set is not updatable

setFetchDirection

public void setFetchDirection(int dir)
                      throws java.sql.SQLException
Provide a hint to mSQL-JDBC as to which direction results should be fetched in. It is really never used since mSQL cannot be optimized for a fetch direction.
Specified by:
setFetchDirection(int) in interface java.sql.ResultSet
Parameters:
dir - the direction
Throws:
java.sql.SQLException - this is never thrown

setFetchSize

public void setFetchSize(int unused)
                 throws java.sql.SQLException
This is a NO-OP since no matter what you suggest, mSQL-JDBC is forced by the mSQL network protocol to download all rows.
Specified by:
setFetchSize(int) in interface java.sql.ResultSet
Parameters:
unused - the suggested fetch size
Throws:
java.sql.SQLException - this is never thrown

setType

public void setType(int t)
Sets the result set type.
Parameters:
t - the type

updateAsciiStream

public void updateAsciiStream(int col,
                              java.io.InputStream is,
                              int len)
                      throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateAsciiStream(int, java.io.InputStream, int) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
is - the stream to update the column with
len - the length of the stream
Throws:
java.sql.SQLException - an error occurred reading the stream or an invalid column number

updateAsciiStream

public void updateAsciiStream(java.lang.String cname,
                              java.io.InputStream is,
                              int len)
                      throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateAsciiStream(java.lang.String, java.io.InputStream, int) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
is - the stream to update the column with
len - the length of the stream
Throws:
java.sql.SQLException - a database error occurred

updateBigDecimal

public void updateBigDecimal(int column,
                             java.math.BigDecimal d)
                     throws java.sql.SQLException
Does an in-place update of the specified column in the current row.
Specified by:
updateBigDecimal(int, java.math.BigDecimal) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
d - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateBigDecimal

public void updateBigDecimal(java.lang.String cname,
                             java.math.BigDecimal d)
                     throws java.sql.SQLException
Does an in-place update of the specified column in the current row.
Specified by:
updateBigDecimal(java.lang.String, java.math.BigDecimal) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
d - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateBinaryStream

public void updateBinaryStream(int column,
                               java.io.InputStream is,
                               int len)
                       throws java.sql.SQLException
Does an in-place update of the specified column in the current row.
Specified by:
updateBinaryStream(int, java.io.InputStream, int) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
is - the stream to update the column with
len - the length of the stream
Throws:
java.sql.SQLException - a database error occurred

updateBinaryStream

public void updateBinaryStream(java.lang.String cname,
                               java.io.InputStream is,
                               int len)
                       throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateBinaryStream(java.lang.String, java.io.InputStream, int) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
is - the stream to update the column with
len - the length of the stream
Throws:
java.sql.SQLException - a database error occurred

updateBlob

public void updateBlob(int column,
                       java.sql.Blob b)
               throws java.sql.SQLException
Performs an in-place modification of a Blob column.
Parameters:
column - the name of the column to update
b - the Blob value
Throws:
java.sql.SQLException - a database error occurred

updateBoolean

public void updateBoolean(int column,
                          boolean b)
                  throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateBoolean(int, boolean) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
b - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateBoolean

public void updateBoolean(java.lang.String cname,
                          boolean b)
                  throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateBoolean(java.lang.String, boolean) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
b - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateByte

public void updateByte(int column,
                       byte b)
               throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateByte(int, byte) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
b - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateByte

public void updateByte(java.lang.String cname,
                       byte b)
               throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateByte(java.lang.String, byte) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
b - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateBytes

public void updateBytes(int column,
                        byte[] data)
                throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateBytes(int, byte[]) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
data - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateBytes

public void updateBytes(java.lang.String cname,
                        byte[] b)
                throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateBytes(java.lang.String, byte[]) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
b - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateCharacterStream

public void updateCharacterStream(int column,
                                  java.io.Reader in,
                                  int len)
                          throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateCharacterStream(int, java.io.Reader, int) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
in - the reader to use for the update
len - the length of the stream
Throws:
java.sql.SQLException - a database error occurred

updateCharacterStream

public void updateCharacterStream(java.lang.String cname,
                                  java.io.Reader r,
                                  int len)
                          throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateCharacterStream(java.lang.String, java.io.Reader, int) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
r - the reader to use for the update
len - the length of the stream
Throws:
java.sql.SQLException - a database error occurred

updateDate

public void updateDate(int column,
                       java.sql.Date d)
               throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateDate(int, java.sql.Date) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
d - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateDate

public void updateDate(java.lang.String cname,
                       java.sql.Date d)
               throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateDate(java.lang.String, java.sql.Date) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
d - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateDouble

public void updateDouble(int column,
                         double d)
                 throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateDouble(int, double) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
d - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateDouble

public void updateDouble(java.lang.String cname,
                         double d)
                 throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateDouble(java.lang.String, double) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
d - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateFloat

public void updateFloat(int column,
                        float f)
                throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateFloat(int, float) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
f - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateFloat

public void updateFloat(java.lang.String cname,
                        float f)
                throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateFloat(java.lang.String, float) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
f - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateInt

public void updateInt(int column,
                      int x)
              throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateInt(int, int) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
x - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateInt

public void updateInt(java.lang.String cname,
                      int x)
              throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateInt(java.lang.String, int) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
x - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateLong

public void updateLong(int column,
                       long l)
               throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateLong(int, long) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
l - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateLong

public void updateLong(java.lang.String cname,
                       long l)
               throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateLong(java.lang.String, long) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
l - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateNull

public void updateNull(int column)
               throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateNull(int) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
Throws:
java.sql.SQLException - a database error occurred

updateNull

public void updateNull(java.lang.String cname)
               throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateNull(java.lang.String) in interface java.sql.ResultSet
Parameters:
cname - the name of the column to be updated
Throws:
java.sql.SQLException - a database error occurred

updateObject

public void updateObject(int column,
                         java.lang.Object ob)
                 throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateObject(int, java.lang.Object) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
ob - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateObject

public void updateObject(int column,
                         java.lang.Object ob,
                         int scale)
                 throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateObject(int, java.lang.Object, int) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
ob - the value to use in the update
scale - the scale to use for numeric types
Throws:
java.sql.SQLException - a database error occurred

updateObject

public void updateObject(java.lang.String cname,
                         java.lang.Object ob)
                 throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateObject(java.lang.String, java.lang.Object) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
ob - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateObject

public void updateObject(java.lang.String cname,
                         java.lang.Object ob,
                         int scale)
                 throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateObject(java.lang.String, java.lang.Object, int) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
ob - the value to use in the update
scale - the scale for numeric types
Throws:
java.sql.SQLException - a database error occurred

updateRow

public void updateRow()
              throws java.sql.SQLException
Sends changes to the current row to the database. The changes will not be committed without an explicit commit unless the connection is auto-commit.
Specified by:
updateRow() in interface java.sql.ResultSet
Throws:
java.sql.SQLException - a database error occurred

updateShort

public void updateShort(int column,
                        short s)
                throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateShort(int, short) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
s - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateShort

public void updateShort(java.lang.String cname,
                        short s)
                throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateShort(java.lang.String, short) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
s - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateString

public void updateString(int column,
                         java.lang.String str)
                 throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateString(int, java.lang.String) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
str - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateString

public void updateString(java.lang.String cname,
                         java.lang.String str)
                 throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateString(java.lang.String, java.lang.String) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
str - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateTime

public void updateTime(int column,
                       java.sql.Time t)
               throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateTime(int, java.sql.Time) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
t - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateTime

public void updateTime(java.lang.String cname,
                       java.sql.Time t)
               throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateTime(java.lang.String, java.sql.Time) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
t - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateTimestamp

public void updateTimestamp(int column,
                            java.sql.Timestamp ts)
                    throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateTimestamp(int, java.sql.Timestamp) in interface java.sql.ResultSet
Parameters:
column - the column number for the update
ts - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

updateTimestamp

public void updateTimestamp(java.lang.String cname,
                            java.sql.Timestamp ts)
                    throws java.sql.SQLException
Performs an in-place modification of the specified column.
Specified by:
updateTimestamp(java.lang.String, java.sql.Timestamp) in interface java.sql.ResultSet
Parameters:
column - the name of the column to update
ts - the value to use in the update
Throws:
java.sql.SQLException - a database error occurred

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD