org.pelds.store
Class DbInterface

java.lang.Object
  extended by 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)

Constructor Summary
DbInterface()
           
 
Method Summary
 void closeConnection()
          Close the JDBC connection
 Config getConfig()
           
 java.sql.Connection getConnection()
          Get the JDBC connection, create if needed
 void setConfig(Config c)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbInterface

public DbInterface()
Method Detail

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()