org.exolab.castor.jdo.conf
Class Database

java.lang.Object
  extended byorg.exolab.castor.jdo.conf.Database
All Implemented Interfaces:
java.io.Serializable

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

Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:09 $
See Also:
Serialized Form

Constructor Summary
Database()
           
 
Method Summary
 void addMapping(Mapping vMapping)
           
 java.util.Enumeration enumerateMapping()
           
 DataSource getDataSource()
           
 Driver getDriver()
           
 java.lang.String getEngine()
           
 Jndi getJndi()
           
 Mapping[] getMapping()
           
 Mapping getMapping(int index)
           
 int getMappingCount()
           
 java.lang.String getName()
           
 java.lang.String getReferenceId()
           
 boolean isValid()
           
 void marshal(org.xml.sax.DocumentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void removeAllMapping()
           
 Mapping removeMapping(int index)
           
 void setDataSource(DataSource _dataSource)
           
 void setDriver(Driver _driver)
           
 void setEngine(java.lang.String _engine)
           
 void setJndi(Jndi _jndi)
           
 void setMapping(Mapping vMapping, int index)
           
 void setName(java.lang.String _name)
           
static Database 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

Database

public Database()
Method Detail

addMapping

public void addMapping(Mapping vMapping)
                throws java.lang.IndexOutOfBoundsException
Parameters:
vMapping -
Throws:
java.lang.IndexOutOfBoundsException

enumerateMapping

public java.util.Enumeration enumerateMapping()

getDataSource

public DataSource getDataSource()

getDriver

public Driver getDriver()

getEngine

public java.lang.String getEngine()

getJndi

public Jndi getJndi()

getMapping

public Mapping getMapping(int index)
                   throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getMapping

public Mapping[] getMapping()

getMappingCount

public int getMappingCount()

getName

public java.lang.String getName()

getReferenceId

public java.lang.String getReferenceId()

isValid

public boolean isValid()

marshal

public void marshal(java.io.Writer out)
             throws MarshalException,
                    ValidationException
Parameters:
out -
Throws:
MarshalException
ValidationException

marshal

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

removeAllMapping

public void removeAllMapping()

removeMapping

public Mapping removeMapping(int index)
Parameters:
index -

setDataSource

public void setDataSource(DataSource _dataSource)
Parameters:
_dataSource -

setDriver

public void setDriver(Driver _driver)
Parameters:
_driver -

setEngine

public void setEngine(java.lang.String _engine)
Parameters:
_engine -

setJndi

public void setJndi(Jndi _jndi)
Parameters:
_jndi -

setMapping

public void setMapping(Mapping vMapping,
                       int index)
                throws java.lang.IndexOutOfBoundsException
Parameters:
vMapping -
index -
Throws:
java.lang.IndexOutOfBoundsException

setName

public void setName(java.lang.String _name)
Parameters:
_name -

unmarshal

public static Database unmarshal(java.io.Reader reader)
                          throws MarshalException,
                                 ValidationException
Parameters:
reader -
Throws:
MarshalException
ValidationException

validate

public void validate()
              throws ValidationException
Throws:
ValidationException


Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com