org.exolab.castor.jdo.conf

Class Database

public class Database extends Object implements Serializable

Class Database.

Version: $Revision: 1.3 $ $Date: 2005/03/05 13:41:50 $

Constructor Summary
Database()
Method Summary
voidaddMapping(Mapping vMapping)
Method addMapping
voidaddMapping(int index, Mapping vMapping)
Method addMapping
voidclearMapping()
Method clearMapping
EnumerationenumerateMapping()
Method enumerateMapping
DatabaseChoicegetDatabaseChoice()
Returns the value of field 'databaseChoice'.
StringgetEngine()
Returns the value of field 'engine'.
MappinggetMapping(int index)
Method getMapping
Mapping[]getMapping()
Method getMapping
intgetMappingCount()
Method getMappingCount
StringgetName()
Returns the value of field 'name'.
booleanisValid()
Method isValid
voidmarshal(Writer out)
Method marshal
voidmarshal(ContentHandler handler)
Method marshal
booleanremoveMapping(Mapping vMapping)
Method removeMapping
voidsetDatabaseChoice(DatabaseChoice databaseChoice)
Sets the value of field 'databaseChoice'.
voidsetEngine(String engine)
Sets the value of field 'engine'.
voidsetMapping(int index, Mapping vMapping)
Method setMapping
voidsetMapping(Mapping[] mappingArray)
Method setMapping
voidsetName(String name)
Sets the value of field 'name'.
static Objectunmarshal(Reader reader)
Method unmarshal
voidvalidate()
Method validate

Constructor Detail

Database

public Database()

Method Detail

addMapping

public void addMapping(Mapping vMapping)
Method addMapping

Parameters: vMapping

addMapping

public void addMapping(int index, Mapping vMapping)
Method addMapping

Parameters: index vMapping

clearMapping

public void clearMapping()
Method clearMapping

enumerateMapping

public Enumeration enumerateMapping()
Method enumerateMapping

getDatabaseChoice

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

Returns: the value of field 'databaseChoice'.

getEngine

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

Returns: the value of field 'engine'.

getMapping

public Mapping getMapping(int index)
Method getMapping

Parameters: index

getMapping

public Mapping[] getMapping()
Method getMapping

getMappingCount

public int getMappingCount()
Method getMappingCount

getName

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

Returns: the value of field 'name'.

isValid

public boolean isValid()
Method isValid

marshal

public void marshal(Writer out)
Method marshal

Parameters: out

marshal

public void marshal(ContentHandler handler)
Method marshal

Parameters: handler

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(String engine)
Sets the value of field 'engine'.

Parameters: engine the value of field 'engine'.

setMapping

public void setMapping(int index, Mapping vMapping)
Method setMapping

Parameters: index vMapping

setMapping

public void setMapping(Mapping[] mappingArray)
Method setMapping

Parameters: mappingArray

setName

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

Parameters: name the value of field 'name'.

unmarshal

public static Object unmarshal(Reader reader)
Method unmarshal

Parameters: reader

validate

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