p3j.database
Class DatabaseFactory

java.lang.Object
  extended by p3j.database.DatabaseFactory

public final class DatabaseFactory
extends Object

A factory for the database layer. Not implemented properly yet. Created on January 11, 2007

Author:
Christina Bohk, Roland Ewald

Method Summary
static IP3MDatabase createDatabase()
          Creates a new Database object.
static IP3MDatabase createDatabase(String hibernateConfigFile)
          Creates a new Database object, given a certain hibernate configuration file.
static IP3MDatabase getDatabaseSingleton()
          Get database interface.
static james.core.data.DBConnectionData getDbConnData()
          Gets the DB connection data.
static void reset()
          Reset.
static void setDbConnData(james.core.data.DBConnectionData dbConnData)
          Sets the DB connection data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDatabaseSingleton

public static IP3MDatabase getDatabaseSingleton()
Get database interface.

Returns:
database interface

createDatabase

public static IP3MDatabase createDatabase()
Creates a new Database object.

Returns:
the newly created database interface object

createDatabase

public static IP3MDatabase createDatabase(String hibernateConfigFile)
Creates a new Database object, given a certain hibernate configuration file.

Parameters:
hibernateConfigFile - the hibernate config file
Returns:
the database

getDbConnData

public static james.core.data.DBConnectionData getDbConnData()
Gets the DB connection data.

Returns:
the DB connection data

setDbConnData

public static void setDbConnData(james.core.data.DBConnectionData dbConnData)
Sets the DB connection data.

Parameters:
dbConnData - the new DB connection data

reset

public static void reset()
Reset.



Copyright © 2012. All Rights Reserved.