Quadcap Embeddable Database

com.quadcap.sql.HavingCursor Class Reference

Inheritance diagram for com.quadcap.sql.HavingCursor:

com.quadcap.sql.FilterCursor com.quadcap.sql.CursorImpl com.quadcap.sql.TupleImpl com.quadcap.sql.Cursor com.quadcap.sql.Tuple Externalizable com.quadcap.sql.Tuple List of all members.

Detailed Description

Cursor to support HAVING clause.

XXX Optimize this by use of a 'HavingRow' class which would perform less copying.

Author:
Stan Bailes

Definition at line 58 of file HavingCursor.java.

Public Member Functions

 HavingCursor (Session session, Cursor cursor) throws SQLException
Row getRow () throws SQLException
 Derived class implements this function to return the current cursor row.

void updateRow (Row row) throws SQLException
 Replace the current cursor row with the specified row.

int getColumnCount () throws SQLException
 Return the number of columns in this tuple.

boolean next () throws SQLException
 Advance the cursor and return true if we advanced to a valid row.


Package Attributes

Row row = null


Constructor & Destructor Documentation

com.quadcap.sql.HavingCursor.HavingCursor Session  session,
Cursor  cursor
throws SQLException
 

Definition at line 61 of file HavingCursor.java.


Member Function Documentation

int com.quadcap.sql.HavingCursor.getColumnCount  )  throws SQLException
 

Return the number of columns in this tuple.

Reimplemented from com.quadcap.sql.TupleImpl.

Definition at line 78 of file HavingCursor.java.

References com.quadcap.sql.Tuple.getColumnCount().

Row com.quadcap.sql.HavingCursor.getRow  )  throws SQLException [virtual]
 

Derived class implements this function to return the current cursor row.

Implementation required.

Reimplemented from com.quadcap.sql.FilterCursor.

Definition at line 65 of file HavingCursor.java.

References com.quadcap.sql.HavingCursor.row.

boolean com.quadcap.sql.HavingCursor.next  )  throws SQLException [virtual]
 

Advance the cursor and return true if we advanced to a valid row.

Reimplemented from com.quadcap.sql.FilterCursor.

Definition at line 82 of file HavingCursor.java.

References com.quadcap.sql.Tuple.getColumnCount(), com.quadcap.sql.Cursor.getRow(), com.quadcap.sql.types.Value.isTrue(), com.quadcap.sql.Row.item(), com.quadcap.sql.Cursor.next(), com.quadcap.sql.HavingCursor.row, and com.quadcap.sql.Row.set().

void com.quadcap.sql.HavingCursor.updateRow Row  row  )  throws SQLException [virtual]
 

Replace the current cursor row with the specified row.

Reimplemented from com.quadcap.sql.FilterCursor.

Definition at line 69 of file HavingCursor.java.

References com.quadcap.sql.Row.item(), com.quadcap.sql.HavingCursor.row, com.quadcap.sql.Row.set(), com.quadcap.sql.Row.size(), com.quadcap.sql.Cursor.updateRow(), and com.quadcap.sql.HavingCursor.updateRow().

Referenced by com.quadcap.sql.HavingCursor.updateRow().


Member Data Documentation

Row com.quadcap.sql.HavingCursor.row = null [package]
 

Definition at line 59 of file HavingCursor.java.

Referenced by com.quadcap.sql.HavingCursor.getRow(), com.quadcap.sql.HavingCursor.next(), and com.quadcap.sql.HavingCursor.updateRow().