com.caucho.db.sql
Class SelectCursor

java.lang.Object
  extended by com.caucho.db.sql.SelectCursor

public class SelectCursor
extends java.lang.Object


Constructor Summary
SelectCursor(Expr[] exprs, SelectQuery query, QueryContext context)
           
 
Method Summary
 void close()
           
 int findColumnIndex(java.lang.String name)
          Returns the column index with the given name.
 byte[] getBytes(int i)
           
 double getDouble(int i)
           
 Expr[] getExprs()
          Returns the expressions.
 int getInt(int i)
           
 long getLong(int i)
           
 java.lang.String getString(int i)
           
 boolean next()
           
 void updateDouble(int i, double value)
           
 void updateInt(int i, int value)
           
 void updateLong(int i, long value)
           
 void updateRow()
           
 void updateString(int i, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectCursor

public SelectCursor(Expr[] exprs,
                    SelectQuery query,
                    QueryContext context)
Method Detail

getExprs

public Expr[] getExprs()
Returns the expressions.


findColumnIndex

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

Throws:
java.sql.SQLException

next

public boolean next()
             throws java.sql.SQLException
Throws:
java.sql.SQLException

getString

public java.lang.String getString(int i)
                           throws java.sql.SQLException
Throws:
java.sql.SQLException

updateString

public void updateString(int i,
                         java.lang.String value)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

getInt

public int getInt(int i)
           throws java.sql.SQLException
Throws:
java.sql.SQLException

updateInt

public void updateInt(int i,
                      int value)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

getLong

public long getLong(int i)
             throws java.sql.SQLException
Throws:
java.sql.SQLException

updateLong

public void updateLong(int i,
                       long value)
                throws java.sql.SQLException
Throws:
java.sql.SQLException

getDouble

public double getDouble(int i)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

updateDouble

public void updateDouble(int i,
                         double value)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

getBytes

public byte[] getBytes(int i)
                throws java.sql.SQLException
Throws:
java.sql.SQLException

updateRow

public void updateRow()

close

public void close()