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()
DataSourceIF
close
in interface DataSourceIF
public Collection<Relation> getRelations()
DataSourceIF
getRelations
in interface DataSourceIF
public TupleReaderIF getReader(String relation)
DataSourceIF
getReader
in interface DataSourceIF
public ChangelogReaderIF getChangelogReader(Changelog changelog, String startOrder)
DataSourceIF
getChangelogReader
in interface DataSourceIF
public String getMaxOrderValue(Changelog changelog)
DataSourceIF
getMaxOrderValue
in interface DataSourceIF