org.gxos.config
Class DatabaseManager

java.lang.Object
  |
  +--org.gxos.config.DatabaseManager
All Implemented Interfaces:
java.io.Serializable

public class DatabaseManager
extends java.lang.Object
implements java.io.Serializable

Configuration information for the database manager. All the database implementations need to be registered through here.

See Also:
Serialized Form

Constructor Summary
DatabaseManager()
           
 
Method Summary
 void addDatabase(Database vDatabase)
           
 void addDatabase(int index, Database vDatabase)
           
 java.util.Enumeration enumerateDatabase()
           
 Database[] getDatabase()
           
 Database getDatabase(int index)
           
 int getDatabaseCount()
           
 UserInformation getUserInformation()
           
 boolean isValid()
           
 void marshal(org.xml.sax.DocumentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void removeAllDatabase()
           
 Database removeDatabase(int index)
           
 void setDatabase(Database[] databaseArray)
           
 void setDatabase(int index, Database vDatabase)
           
 void setUserInformation(UserInformation userInformation)
           
static DatabaseManager unmarshal(java.io.Reader reader)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseManager

public DatabaseManager()
Method Detail

addDatabase

public void addDatabase(Database vDatabase)
                 throws java.lang.IndexOutOfBoundsException
Parameters:
vDatabase -  

addDatabase

public void addDatabase(int index,
                        Database vDatabase)
                 throws java.lang.IndexOutOfBoundsException
Parameters:
index -  
vDatabase -  

enumerateDatabase

public java.util.Enumeration enumerateDatabase()

getDatabase

public Database getDatabase(int index)
                     throws java.lang.IndexOutOfBoundsException
Parameters:
index -  

getDatabase

public Database[] getDatabase()

getDatabaseCount

public int getDatabaseCount()

getUserInformation

public UserInformation getUserInformation()

isValid

public boolean isValid()

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -  

marshal

public void marshal(org.xml.sax.DocumentHandler handler)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -  

removeAllDatabase

public void removeAllDatabase()

removeDatabase

public Database removeDatabase(int index)
Parameters:
index -  

setDatabase

public void setDatabase(int index,
                        Database vDatabase)
                 throws java.lang.IndexOutOfBoundsException
Parameters:
index -  
vDatabase -  

setDatabase

public void setDatabase(Database[] databaseArray)
Parameters:
databaseArray -  

setUserInformation

public void setUserInformation(UserInformation userInformation)
Parameters:
userInformation -  

unmarshal

public static DatabaseManager unmarshal(java.io.Reader reader)
                                 throws org.exolab.castor.xml.MarshalException,
                                        org.exolab.castor.xml.ValidationException
Parameters:
reader -  

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException