se.kmr.scam.server.util
Class DatabaseConnection

java.lang.Object
  extended byse.kmr.scam.server.util.DatabaseConnection

public class DatabaseConnection
extends Object

Description of the Class

Author:
stefan, jand
Created:
den 21 maj 2002

Field Summary
static String DEFAULT_NAME
           
 
Constructor Summary
DatabaseConnection()
          Connect to default database = 'PostgresDS'
 
Method Summary
 void close()
          Return the connection to ConnectionPool.
 Connection getConnection()
          Get the JDBC-connection
 IDBConnection getDBConnection()
          Get the Jena-connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NAME

public static final String DEFAULT_NAME
See Also:
Constant Field Values
Constructor Detail

DatabaseConnection

public DatabaseConnection()
Connect to default database = 'PostgresDS'

Throws:
NamingException
SQLException
Method Detail

close

public void close()
Return the connection to ConnectionPool.

Throws:
SQLException

getConnection

public Connection getConnection()
Get the JDBC-connection

Returns:
JDBC-connection

getDBConnection

public IDBConnection getDBConnection()
Get the Jena-connection

Returns:
Jena IDBConnection


Copyright © 2003 SCAM. All Rights Reserved.