org.melati
Class LogicalDatabase

java.lang.Object
  extended by org.melati.LogicalDatabase

public final class LogicalDatabase
extends java.lang.Object

An object which knows how to connect to a database.


Method Summary
static Database getDatabase(java.lang.String name)
          Retrieve a database by name.
static java.util.Vector getInitialisedDatabaseNames()
          Retrieve the names of the databases which have completed initialisation.
static java.lang.String getPropertiesName()
          The name used with getResourceAsStream to get the file and the properties within it.
static java.util.Vector initialisedDatabases()
          Retrieve the databases which have completed initialisation.
static void setDatabaseDefs(java.util.Properties databaseDefsIn)
          Set the databaseDefs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initialisedDatabases

public static java.util.Vector initialisedDatabases()
Retrieve the databases which have completed initialisation.

Returns:
a Vector of the initialised databases

getInitialisedDatabaseNames

public static java.util.Vector getInitialisedDatabaseNames()
Retrieve the names of the databases which have completed initialisation. Note that a database which has not been used will not have been initialised.

Returns:
a Vector of the initialised database names

getDatabase

public static Database getDatabase(java.lang.String name)
                            throws DatabaseInitException
Retrieve a database by name.

Parameters:
name - the name of the database
Returns:
a Database with the name specified
Throws:
DatabaseInitException - if any Exception is trapped

setDatabaseDefs

public static void setDatabaseDefs(java.util.Properties databaseDefsIn)
Set the databaseDefs.


getPropertiesName

public static java.lang.String getPropertiesName()
The name used with getResourceAsStream to get the file and the properties within it.

Returns:
Returns the defaultPropertiesName.


Copyright © 2000-2008 PanEris. All Rights Reserved.