no.priv.garshol.duke
Class JDBCLinkDatabase
java.lang.Object
no.priv.garshol.duke.RDBMSLinkDatabase
no.priv.garshol.duke.JDBCLinkDatabase
- All Implemented Interfaces:
- LinkDatabase
public class JDBCLinkDatabase
- extends RDBMSLinkDatabase
A link database which can maintain a set of links in an H2 or
Oracle database over JDBC. It could be extended to work with more
database implementations.
Method Summary |
void |
validateConnection()
Verifies that we still have a connection to the database, and
reestablishes it, if not. |
Methods inherited from class no.priv.garshol.duke.RDBMSLinkDatabase |
assertLink, clear, close, commit, getAllLinks, getAllLinksFor, getChangesSince, getChangesSince, getChangesSince, inferLink, init, setLogger, setTablePrefix |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCLinkDatabase
public JDBCLinkDatabase(String driverklass,
String jdbcuri,
String dbtype,
Properties props)
validateConnection
public void validateConnection()
- Description copied from interface:
LinkDatabase
- Verifies that we still have a connection to the database, and
reestablishes it, if not. Useful when connections live a long
time and are rarely used.
Copyright © 2013. All Rights Reserved.