com.agimatec.sql.meta.oracle
Class SequenceDescriptionBuilder
java.lang.Object
com.agimatec.sql.meta.oracle.SequenceDescriptionBuilder
- All Implemented Interfaces:
- JdbcResultBuilder
public class SequenceDescriptionBuilder
- extends Object
- implements JdbcResultBuilder
|
Method Summary |
void |
afterExecute(ResultSetMetaData data,
Object queryObject,
List resultList)
The init() method is called once after the SQL statement has been
executed and the result set is known. |
void |
close(boolean isComplete)
The close() method is invoked, just BEFORE all associated resources (e.g. resultSet)
are closed by the caller. |
void |
fetch(ResultSet row)
This method is invoked each time the cursor in the resultset is moved
to the next row, as long as the resultList contains less objects than the client
expects. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceDescriptionBuilder
public SequenceDescriptionBuilder()
afterExecute
public void afterExecute(ResultSetMetaData data,
Object queryObject,
List resultList)
throws SQLException
- Description copied from interface:
JdbcResultBuilder
- The init() method is called once after the SQL statement has been
executed and the result set is known.
- Specified by:
afterExecute in interface JdbcResultBuilder
- Parameters:
data - JDBC result set meta data.resultList - The List where the result objects are added to.
- Throws:
SQLException
fetch
public void fetch(ResultSet row)
throws SQLException
- Description copied from interface:
JdbcResultBuilder
- This method is invoked each time the cursor in the resultset is moved
to the next row, as long as the resultList contains less objects than the client
expects.
This method is expected to the following:
- use the values of the row to create some object
- might put the object to the resultList
DO NOT: invoke next() or any method that moves the resultSet cursor or
closes the resultSet.
- Specified by:
fetch in interface JdbcResultBuilder
- Parameters:
row - the ResultSet where the cursor is located on the current row
- Throws:
SQLException
close
public void close(boolean isComplete)
throws SQLException
- Description copied from interface:
JdbcResultBuilder
- The close() method is invoked, just BEFORE all associated resources (e.g. resultSet)
are closed by the caller. The close() method is the last callback to the visitor
that allows to add pending results to the result list and to close own resources.
- Specified by:
close in interface JdbcResultBuilder
- Throws:
SQLException
Copyright © 2008-2012. All Rights Reserved.