org.castor.jdo.conf

Class Database

Implemented Interfaces:
java.io.Serializable

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

Class Database.
Version:
$Revision: 5979 $ $Date$
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(java.io.Writer out)
Method marshal
void
marshal(org.xml.sax.ContentHandler handler)
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 Database
unmarshal(java.io.Reader reader)
Method unmarshal
void
validate()
Method validate

Constructor Details

Database

public Database()

Method Details

addMapping

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

addMapping

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

clearMapping

public void clearMapping()
Method clearMapping

enumerateMapping

public java.util.Enumeration enumerateMapping()
Method enumerateMapping
Returns:
Enumeration

getDatabaseChoice

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

getEngine

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

getMapping

public Mapping[] getMapping()
Method getMapping
Returns:
Mapping

getMapping

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

getMappingCount

public int getMappingCount()
Method getMappingCount
Returns:
int

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 MarshalException,
                   ValidationException
Method marshal
Parameters:
out -

marshal

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

removeMapping

public boolean removeMapping(Mapping vMapping)
Method removeMapping
Parameters:
vMapping -
Returns:
boolean

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 -

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 Database unmarshal(java.io.Reader reader)
            throws MarshalException,
                   ValidationException
Method unmarshal
Parameters:
reader -
Returns:
Database

validate

public void validate()
            throws ValidationException
Method validate

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