no.priv.garshol.duke
Class JDBCLinkDatabase

java.lang.Object
  extended by no.priv.garshol.duke.RDBMSLinkDatabase
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class no.priv.garshol.duke.RDBMSLinkDatabase
RDBMSLinkDatabase.DatabaseType
 
Field Summary
 
Fields inherited from class no.priv.garshol.duke.RDBMSLinkDatabase
stmt
 
Constructor Summary
JDBCLinkDatabase(String driverklass, String jdbcuri, String dbtype, Properties props)
           
 
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
 

Constructor Detail

JDBCLinkDatabase

public JDBCLinkDatabase(String driverklass,
                        String jdbcuri,
                        String dbtype,
                        Properties props)
Method Detail

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.