|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jdbcexporter.engine.BasicEngine
The BasicEngine class implements the ExportEngine interface to provide basic export capability. The BasicEngine exports rows from a database via a select statement. The following SQL Types are supported:
Field Summary | |
protected ExportColumnDef[] |
columnDefs
The current entity definition's columns that is being exported. |
protected java.sql.Connection |
connection
The JDBC connection. |
protected ExportEntityDef |
entityDef
The current entity definition that is being exported. |
protected JDBCParameterHelper |
exportEngineHelper
The helper class for retrieving parameters from result sets. |
protected java.sql.ResultSet |
resultSet
The result set. |
protected java.sql.Statement |
statement
The statement. |
Constructor Summary | |
BasicEngine()
|
Method Summary | |
void |
cleanup()
Cleans up any resources that the export engine used to export data for the current entity definition. |
ColumnValue[] |
exportRow()
Export a row as a set of values from the database |
java.sql.Connection |
getConnection()
Returns the database connection to use for exporting the row. |
void |
init()
Initializes the export engine with the current entity definition. |
void |
setConnection(java.sql.Connection con)
Sets the database connection to use for exporting the row. |
void |
setEntityDef(ExportEntityDef entityDef)
Sets the entity definition to use for exporting the row |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected JDBCParameterHelper exportEngineHelper
protected java.sql.Connection connection
protected ExportEntityDef entityDef
protected ExportColumnDef[] columnDefs
protected java.sql.Statement statement
protected java.sql.ResultSet resultSet
Constructor Detail |
public BasicEngine()
Method Detail |
public void setConnection(java.sql.Connection con)
ExportEngine
setConnection
in interface ExportEngine
con
- database connectionExportEngine.setConnection(java.sql.Connection)
public java.sql.Connection getConnection()
ExportEngine
getConnection
in interface ExportEngine
ExportEngine.getConnection()
public void setEntityDef(ExportEntityDef entityDef)
ExportEngine
setEntityDef
in interface ExportEngine
entityDef
- entity definitionExportEngine.setEntityDef(net.sourceforge.jdbcexporter.ExportEntityDef)
public void init() throws java.sql.SQLException
ExportEngine
init
in interface ExportEngine
java.sql.SQLException
- if a database error occurs during initializationExportEngine.init()
public void cleanup() throws java.sql.SQLException
ExportEngine
cleanup
in interface ExportEngine
java.sql.SQLException
- if a database error occurs during cleanupExportEngine.cleanup()
public ColumnValue[] exportRow() throws java.sql.SQLException
ExportEngine
exportRow
in interface ExportEngine
java.sql.SQLException
- if a database error occurs during the exportExportEngine.exportRow()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |