public class JDBCDataSource extends Object implements DataSourceIF
| Modifier and Type | Field and Description |
|---|---|
protected String |
catalog |
protected Connection |
conn |
protected RelationMapping |
mapping |
protected String |
propfile |
protected String |
schemaPattern |
protected String |
tableNamePattern |
| Constructor and Description |
|---|
JDBCDataSource(RelationMapping mapping) |
JDBCDataSource(RelationMapping mapping,
Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
INTERNAL: Closes the data source so that it can release any open
resources.
|
ChangelogReaderIF |
getChangelogReader(Changelog changelog,
String startOrder)
INTERNAL: Returns a changelog reader.
|
protected Connection |
getConnection() |
String |
getMaxOrderValue(Changelog changelog)
INTERNAL: Returns the maximum value of the order column for the
specified changelog.
|
TupleReaderIF |
getReader(String relation)
INTERNAL: Returns a tuple reader for the given relation.
|
Collection<Relation> |
getRelations()
INTERNAL: Returns the relations that the data source knows
of.
|
protected void |
setPropertyFile(String propfile) |
String |
toString() |
protected final RelationMapping mapping
protected String propfile
protected String catalog
protected String schemaPattern
protected String tableNamePattern
protected Connection conn
public JDBCDataSource(RelationMapping mapping)
public JDBCDataSource(RelationMapping mapping, Connection conn)
protected void setPropertyFile(String propfile)
protected Connection getConnection()
public void close()
DataSourceIFclose in interface DataSourceIFpublic Collection<Relation> getRelations()
DataSourceIFgetRelations in interface DataSourceIFpublic TupleReaderIF getReader(String relation)
DataSourceIFgetReader in interface DataSourceIFpublic ChangelogReaderIF getChangelogReader(Changelog changelog, String startOrder)
DataSourceIFgetChangelogReader in interface DataSourceIFpublic String getMaxOrderValue(Changelog changelog)
DataSourceIFgetMaxOrderValue in interface DataSourceIF