Class Session.AbstractResultSetReader
java.lang.Object
net.sf.jailer.database.Session.AbstractResultSetReader
- All Implemented Interfaces:
Session.ResultSetReader
- Direct Known Subclasses:
DeletionTransformer,DMLTransformer,FlatXMLTransformer,LiquibaseXMLTransformer,UpdateTransformer,XmlExportTransformer
- Enclosing class:
Session
public abstract static class Session.AbstractResultSetReader
extends Object
implements Session.ResultSetReader
Reads a JDBC-result-set.
Caches a
ResultSetMetaData.- Author:
- Ralf Wisser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Does nothing.protected CellContentConvertergetCellContentConverter(ResultSet resultSet, Session session, DBMS targetDBMSConfiguration) Gets and caches theCellContentConverterfor the result set.protected ResultSetMetaDatagetMetaData(ResultSet resultSet) Gets and caches the meta data of a result set.voidInitializes the reader.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jailer.database.Session.ResultSetReader
readCurrentRow
-
Constructor Details
-
AbstractResultSetReader
public AbstractResultSetReader()
-
-
Method Details
-
getMetaData
Gets and caches the meta data of a result set.- Parameters:
resultSet- the result set- Returns:
- meta data of the result set
- Throws:
SQLException- if a database access error occurs
-
getCellContentConverter
protected CellContentConverter getCellContentConverter(ResultSet resultSet, Session session, DBMS targetDBMSConfiguration) throws SQLException Gets and caches theCellContentConverterfor the result set.- Parameters:
resultSet- the result setsession- the current sessiontargetDBMSConfiguration- configuration of the target DBMS- Returns:
- the
CellContentConverterfor the result set - Throws:
SQLException- if a database access error occurs
-
close
Does nothing.- Specified by:
closein interfaceSession.ResultSetReader- Throws:
SQLException- if a database access error occurs
-
init
Initializes the reader.- Parameters:
resultSet- the result set to read- Throws:
SQLException- if a database access error occurs
-