Package com.onenetwork.platform.data.sql
Class AbstractSqlResultHandler
java.lang.Object
com.onenetwork.platform.data.sql.AbstractSqlResultHandler
- All Implemented Interfaces:
SqlResultHandler
public abstract class AbstractSqlResultHandler extends java.lang.Object implements SqlResultHandler
Convenient base class for implementing
SqlResultHandler
. All methods
implemented in this class are no-ops.-
Constructor Summary
Constructors Constructor Description AbstractSqlResultHandler()
-
Method Summary
Modifier and Type Method Description void
beginSqlResult(SqlResultMeta sqlResultMeta)
This event is fired just after the metadata has been fetched for the query result, but before any rows are processedvoid
endSqlResult()
This event is fired after all SqlRows have been processed to to allow implementers to perform cleanup operationsvoid
processSqlRow(SqlRow sqlRow)
This event is fired as each SqlRow is fetched; interested parties can listen to this method to process each row
-
Constructor Details
-
AbstractSqlResultHandler
public AbstractSqlResultHandler()
-
-
Method Details
-
beginSqlResult
Description copied from interface:SqlResultHandler
This event is fired just after the metadata has been fetched for the query result, but before any rows are processed- Specified by:
beginSqlResult
in interfaceSqlResultHandler
- Parameters:
sqlResultMeta
- describes the query result metadata- Throws:
SqlResultHandlerException
- - processing will abort when this exception is thrown.
-
endSqlResult
Description copied from interface:SqlResultHandler
This event is fired after all SqlRows have been processed to to allow implementers to perform cleanup operations- Specified by:
endSqlResult
in interfaceSqlResultHandler
- Throws:
SqlResultHandlerException
- - processing will abort when this exception is thrown.
-
processSqlRow
Description copied from interface:SqlResultHandler
This event is fired as each SqlRow is fetched; interested parties can listen to this method to process each row- Specified by:
processSqlRow
in interfaceSqlResultHandler
- Parameters:
sqlRow
- next SqlRow fetched- Throws:
SqlResultHandlerException
- - processing will abort when this exception is thrown.
-