com.caucho.db.sql
Class SelectResultSetImpl

java.lang.Object
  extended by com.caucho.db.sql.ResultSetImpl
      extended by com.caucho.db.sql.SelectResultSetImpl

public class SelectResultSetImpl
extends ResultSetImpl


Method Summary
 void close()
           
static SelectResultSetImpl create(Expr[] exprs)
           
 int findColumnIndex(java.lang.String name)
          Returns the column index with the given name.
 long getDate(int index)
           
 double getDouble(int index)
          Returns a double value from this column.
 int getInt(int index)
           
 long getLong(int index)
           
 java.lang.String getString(int index)
          Returns the string value of the given index.
 boolean next()
           
 boolean wasNull()
          Returns true if the last column read was null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static SelectResultSetImpl create(Expr[] exprs)

next

public boolean next()
             throws java.sql.SQLException
Specified by:
next in class ResultSetImpl
Throws:
java.sql.SQLException

findColumnIndex

public int findColumnIndex(java.lang.String name)
                    throws java.sql.SQLException
Returns the column index with the given name.

Specified by:
findColumnIndex in class ResultSetImpl
Throws:
java.sql.SQLException

getString

public java.lang.String getString(int index)
                           throws java.sql.SQLException
Returns the string value of the given index.

Specified by:
getString in class ResultSetImpl
Throws:
java.sql.SQLException

getInt

public int getInt(int index)
           throws java.sql.SQLException
Specified by:
getInt in class ResultSetImpl
Throws:
java.sql.SQLException

getLong

public long getLong(int index)
             throws java.sql.SQLException
Specified by:
getLong in class ResultSetImpl
Throws:
java.sql.SQLException

getDouble

public double getDouble(int index)
                 throws java.sql.SQLException
Returns a double value from this column.

Specified by:
getDouble in class ResultSetImpl
Throws:
java.sql.SQLException

getDate

public long getDate(int index)
             throws java.sql.SQLException
Specified by:
getDate in class ResultSetImpl
Throws:
java.sql.SQLException

wasNull

public boolean wasNull()
Returns true if the last column read was null.

Specified by:
wasNull in class ResultSetImpl

close

public void close()
Specified by:
close in class ResultSetImpl