org.exolab.castor.jdo.conf
Class Database

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

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

Class Database.

Version:
$Revision: 1.3 $ $Date: 2005/03/05 13:41:50 $
See Also:
Serialized Form

Constructor Summary
Database()
           
 
Method Summary
 void addMapping(int index, Mapping vMapping)
          Method addMapping
 void addMapping(Mapping vMapping)
          Method addMapping
 void clearMapping()
          Method clearMapping
 java.util.Enumeration enumerateMapping()
          Method enumerateMapping
 DatabaseChoice getDatabaseChoice()
          Returns the value of field 'databaseChoice'.
 java.lang.String getEngine()
          Returns the value of field 'engine'.
 Mapping[] getMapping()
          Method getMapping
 Mapping getMapping(int index)
          Method getMapping
 int getMappingCount()
          Method getMappingCount
 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
 boolean removeMapping(Mapping vMapping)
          Method removeMapping
 void setDatabaseChoice(DatabaseChoice databaseChoice)
          Sets the value of field 'databaseChoice'.
 void setEngine(java.lang.String engine)
          Sets the value of field 'engine'.
 void setMapping(int index, Mapping vMapping)
          Method setMapping
 void setMapping(Mapping[] mappingArray)
          Method setMapping
 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

addMapping

public void addMapping(Mapping vMapping)
                throws java.lang.IndexOutOfBoundsException
Method addMapping

Parameters:
vMapping -
Throws:
java.lang.IndexOutOfBoundsException

addMapping

public void addMapping(int index,
                       Mapping vMapping)
                throws java.lang.IndexOutOfBoundsException
Method addMapping

Parameters:
index -
vMapping -
Throws:
java.lang.IndexOutOfBoundsException

clearMapping

public void clearMapping()
Method clearMapping


enumerateMapping

public java.util.Enumeration enumerateMapping()
Method enumerateMapping


getDatabaseChoice

public DatabaseChoice getDatabaseChoice()
Returns the value of field 'databaseChoice'.

Returns:
the value of field 'databaseChoice'.

getEngine

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

Returns:
the value of field 'engine'.

getMapping

public Mapping getMapping(int index)
                   throws java.lang.IndexOutOfBoundsException
Method getMapping

Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getMapping

public Mapping[] getMapping()
Method getMapping


getMappingCount

public int getMappingCount()
Method getMappingCount


getName

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

Returns:
the value of field 'name'.

isValid

public boolean isValid()
Method isValid


marshal

public void marshal(java.io.Writer out)
             throws MarshalException,
                    ValidationException
Method marshal

Parameters:
out -
Throws:
MarshalException
ValidationException

marshal

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

Parameters:
handler -
Throws:
java.io.IOException
MarshalException
ValidationException

removeMapping

public boolean removeMapping(Mapping vMapping)
Method removeMapping

Parameters:
vMapping -

setDatabaseChoice

public void setDatabaseChoice(DatabaseChoice databaseChoice)
Sets the value of field 'databaseChoice'.

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

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(int index,
                       Mapping vMapping)
                throws java.lang.IndexOutOfBoundsException
Method setMapping

Parameters:
index -
vMapping -
Throws:
java.lang.IndexOutOfBoundsException

setMapping

public void setMapping(Mapping[] mappingArray)
Method setMapping

Parameters:
mappingArray -

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 MarshalException,
                                         ValidationException
Method unmarshal

Parameters:
reader -
Throws:
MarshalException
ValidationException

validate

public void validate()
              throws ValidationException
Method validate

Throws:
ValidationException


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