org.experlog.openeas.api
Class DBDataSet

java.lang.Object
  extended by org.experlog.openeas.api.DBDataSet
All Implemented Interfaces:
DataSet

public class DBDataSet
extends java.lang.Object
implements DataSet


Constructor Summary
DBDataSet(Session s, java.lang.String sql)
           
DBDataSet(Session s, java.lang.String sql, java.lang.String datasource)
           
 
Method Summary
 void close()
          Close data set
 boolean dataAvailable()
           
 DataObject getTuple()
           
 boolean isTransient()
           
 boolean next()
           
 void open()
           
 void setBoundaries(int low, int high)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBDataSet

public DBDataSet(Session s,
                 java.lang.String sql,
                 java.lang.String datasource)
          throws java.sql.SQLException
Throws:
java.sql.SQLException

DBDataSet

public DBDataSet(Session s,
                 java.lang.String sql)
          throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

close

public void close()
           throws java.sql.SQLException
Close data set

Specified by:
close in interface DataSet
Throws:
java.sql.SQLException
See Also:
DataSet.close()

dataAvailable

public boolean dataAvailable()
                      throws java.sql.SQLException
Specified by:
dataAvailable in interface DataSet
Throws:
java.sql.SQLException
See Also:
DataSet.dataAvailable()

getTuple

public DataObject getTuple()
                    throws java.sql.SQLException
Specified by:
getTuple in interface DataSet
Throws:
java.sql.SQLException
See Also:
DataSet.getTuple()

isTransient

public boolean isTransient()
Specified by:
isTransient in interface DataSet
See Also:
DataSet.isTransient()

next

public boolean next()
             throws java.sql.SQLException
Specified by:
next in interface DataSet
Throws:
java.sql.SQLException
See Also:
DataSet.next()

open

public void open()
          throws java.sql.SQLException
Specified by:
open in interface DataSet
Throws:
java.sql.SQLException
See Also:
DataSet.open()

setBoundaries

public void setBoundaries(int low,
                          int high)
                   throws java.sql.SQLException
Specified by:
setBoundaries in interface DataSet
Throws:
java.sql.SQLException
See Also:
DataSet.setBoundaries(int, int)