Package net.ontopia.topicmaps.db2tm
Class JDBCDataSource
java.lang.Object
net.ontopia.topicmaps.db2tm.JDBCDataSource
- All Implemented Interfaces:
DataSourceIF
INTERNAL: Data source that reads tables via JDBC.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Connectionprotected final RelationMappingprotected Stringprotected Stringprotected String -
Constructor Summary
ConstructorsConstructorDescriptionJDBCDataSource(RelationMapping mapping) JDBCDataSource(RelationMapping mapping, Connection conn) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()INTERNAL: Closes the data source so that it can release any open resources.getChangelogReader(Changelog changelog, String startOrder) INTERNAL: Returns a changelog reader.protected ConnectiongetMaxOrderValue(Changelog changelog) INTERNAL: Returns the maximum value of the order column for the specified changelog.INTERNAL: Returns a tuple reader for the given relation.INTERNAL: Returns the relations that the data source knows of.protected voidsetPropertyFile(String propfile) toString()
-
Field Details
-
mapping
-
propfile
-
catalog
-
schemaPattern
-
tableNamePattern
-
conn
-
-
Constructor Details
-
JDBCDataSource
-
JDBCDataSource
-
-
Method Details
-
setPropertyFile
-
getConnection
-
close
public void close()Description copied from interface:DataSourceIFINTERNAL: Closes the data source so that it can release any open resources.- Specified by:
closein interfaceDataSourceIF
-
getRelations
Description copied from interface:DataSourceIFINTERNAL: Returns the relations that the data source knows of. The collection return contains Relation instances.- Specified by:
getRelationsin interfaceDataSourceIF
-
getReader
Description copied from interface:DataSourceIFINTERNAL: Returns a tuple reader for the given relation.- Specified by:
getReaderin interfaceDataSourceIF
-
getChangelogReader
Description copied from interface:DataSourceIFINTERNAL: Returns a changelog reader.- Specified by:
getChangelogReaderin interfaceDataSourceIF
-
getMaxOrderValue
Description copied from interface:DataSourceIFINTERNAL: Returns the maximum value of the order column for the specified changelog.- Specified by:
getMaxOrderValuein interfaceDataSourceIF
-
toString
-