org.castor.jdo.conf
Class JdoConf

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

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

Class JdoConf.

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

Constructor Summary
JdoConf()
           
 
Method Summary
 void addDatabase(Database vDatabase)
          Method addDatabase
 void addDatabase(int index, Database vDatabase)
          Method addDatabase
 void clearDatabase()
          Method clearDatabase
 java.util.Enumeration enumerateDatabase()
          Method enumerateDatabase
 Database[] getDatabase()
          Method getDatabase
 Database getDatabase(int index)
          Method getDatabase
 int getDatabaseCount()
          Method getDatabaseCount
 java.lang.String getName()
          Returns the value of field 'name'.
 TransactionDemarcation getTransactionDemarcation()
          Returns the value of field 'transactionDemarcation'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeDatabase(Database vDatabase)
          Method removeDatabase
 void setDatabase(Database[] databaseArray)
          Method setDatabase
 void setDatabase(int index, Database vDatabase)
          Method setDatabase
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setTransactionDemarcation(TransactionDemarcation transactionDemarcation)
          Sets the value of field 'transactionDemarcation'.
static JdoConf 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

JdoConf

public JdoConf()
Method Detail

addDatabase

public void addDatabase(Database vDatabase)
                 throws java.lang.IndexOutOfBoundsException
Method addDatabase

Parameters:
vDatabase -
Throws:
java.lang.IndexOutOfBoundsException

addDatabase

public void addDatabase(int index,
                        Database vDatabase)
                 throws java.lang.IndexOutOfBoundsException
Method addDatabase

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

clearDatabase

public void clearDatabase()
Method clearDatabase


enumerateDatabase

public java.util.Enumeration enumerateDatabase()
Method enumerateDatabase

Returns:
Enumeration

getDatabase

public Database getDatabase(int index)
                     throws java.lang.IndexOutOfBoundsException
Method getDatabase

Parameters:
index -
Returns:
Database
Throws:
java.lang.IndexOutOfBoundsException

getDatabase

public Database[] getDatabase()
Method getDatabase

Returns:
Database

getDatabaseCount

public int getDatabaseCount()
Method getDatabaseCount

Returns:
int

getName

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

Returns:
String

getTransactionDemarcation

public TransactionDemarcation getTransactionDemarcation()
Returns the value of field 'transactionDemarcation'.

Returns:
TransactionDemarcation

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

removeDatabase

public boolean removeDatabase(Database vDatabase)
Method removeDatabase

Parameters:
vDatabase -
Returns:
boolean

setDatabase

public void setDatabase(int index,
                        Database vDatabase)
                 throws java.lang.IndexOutOfBoundsException
Method setDatabase

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

setDatabase

public void setDatabase(Database[] databaseArray)
Method setDatabase

Parameters:
databaseArray -

setName

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

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

setTransactionDemarcation

public void setTransactionDemarcation(TransactionDemarcation transactionDemarcation)
Sets the value of field 'transactionDemarcation'.

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

unmarshal

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

Parameters:
reader -
Returns:
JdoConf
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 2008 null. All Rights Reserved.