Class RDBMSQueryResult

java.lang.Object
net.ontopia.persistence.query.sql.RDBMSQueryResult
All Implemented Interfaces:
QueryResultIF

public class RDBMSQueryResult extends Object implements QueryResultIF
INTERNAL: QueryResultIF implementation that wraps a ResultSet.
  • Field Details

    • stm

      protected SQLStatementIF stm
    • ticket

      protected TicketIF ticket
    • rs

      protected ResultSet rs
    • lookup_identities

      protected boolean lookup_identities
  • Constructor Details

  • Method Details

    • getWidth

      public int getWidth()
      Description copied from interface: QueryResultIF
      INTERNAL: Returns the number of fields that each row in the query result set have.
      Specified by:
      getWidth in interface QueryResultIF
    • getColumnNames

      public String[] getColumnNames()
      Description copied from interface: QueryResultIF
      PUBLIC: Returns the names of the columns.
      Specified by:
      getColumnNames in interface QueryResultIF
    • getColumnName

      public String getColumnName(int ix)
      Description copied from interface: QueryResultIF
      PUBLIC: Returns the name of the given column. The column index is zero-based.
      Specified by:
      getColumnName in interface QueryResultIF
    • getValue

      public Object getValue(int index)
      Description copied from interface: QueryResultIF
      INTERNAL: Get the value of the field with the specified index from the current result row. The index is zero-based.
      Specified by:
      getValue in interface QueryResultIF
    • getValues

      public Object[] getValues()
      Description copied from interface: QueryResultIF
      INTERNAL: Get the values of all fields from the current result row.
      Specified by:
      getValues in interface QueryResultIF
    • getValues

      public Object[] getValues(Object[] values)
      Description copied from interface: QueryResultIF
      INTERNAL: Reads the values of all fields from the current result row into the specified array.
      Specified by:
      getValues in interface QueryResultIF
    • next

      public boolean next()
      Description copied from interface: QueryResultIF
      INTERNAL: Skip to the next row in the query result set. The method returns false if the skip was not valid, i.e. we're at the end of the result set.
      Specified by:
      next in interface QueryResultIF
    • close

      public void close()
      Description copied from interface: QueryResultIF
      INTERNAL: Closes the query result, which allows it to free its resources.
      Specified by:
      close in interface QueryResultIF
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable