Class Database

java.lang.Object
  extended by Database
All Implemented Interfaces:
java.io.Serializable

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

Top-level element for the opennms-database.xml configuration file.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Database()
           
 
Method Summary
 Driver getDriver()
          Returns the value of field 'driver'.
 java.lang.String getEngine()
          Returns the value of field 'engine'.
 Mapping getMapping()
          Returns the value of field 'mapping'.
 java.lang.String getName()
          Returns the value of field 'name'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setDriver(Driver driver)
          Sets the value of field 'driver'.
 void setEngine(java.lang.String engine)
          Sets the value of field 'engine'.
 void setMapping(Mapping mapping)
          Sets the value of field 'mapping'.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Database

public Database()
Method Detail

getDriver

public Driver getDriver()
Returns the value of field 'driver'. The field 'driver' has the following description: The driver element contains the elemtns needed to create the connection to the data source.

Returns:
Driver

getEngine

public java.lang.String getEngine()
Returns the value of field 'engine'.

Returns:
String

getMapping

public Mapping getMapping()
Returns the value of field 'mapping'.

Returns:
Mapping

getName

public java.lang.String getName()
Returns the value of field 'name'.

Returns:
String

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

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

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

setDriver

public void setDriver(Driver driver)
Sets the value of field 'driver'. The field 'driver' has the following description: The driver element contains the elemtns needed to create the connection to the data source.

Parameters:
driver - the value of field 'driver'.

setEngine

public void setEngine(java.lang.String engine)
Sets the value of field 'engine'.

Parameters:
engine - the value of field 'engine'.

setMapping

public void setMapping(Mapping mapping)
Sets the value of field 'mapping'.

Parameters:
mapping - the value of field 'mapping'.

setName

public void setName(java.lang.String name)
Sets the value of field 'name'.

Parameters:
name - the value of field 'name'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

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

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.