org.pelds.store
Class DbInterface
java.lang.Object
org.pelds.store.DbInterface
- Direct Known Subclasses:
- DatasetOwnerStore, NamedGraphStore, RuleStore
public abstract class DbInterface
- extends java.lang.Object
Database access superclass, provides connection and configuration access
- Author:
- Hannes Muehleisen (hannes@muehleisen.org)
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DbInterface
public DbInterface()
getConnection
public java.sql.Connection getConnection()
- Get the JDBC connection, create if needed
- Returns:
- a JDBC connection
closeConnection
public void closeConnection()
- Close the JDBC connection
setConfig
public void setConfig(Config c)
getConfig
public Config getConfig()