org.exolab.jms.tools.db
Class Database

java.lang.Object
  extended by org.exolab.jms.tools.db.Database
All Implemented Interfaces:
java.io.Serializable

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

This element defines a database. It is the root element of all database schema documents.

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

Constructor Summary
Database()
           
 
Method Summary
 void addDeprecated(Deprecated vDeprecated)
          Method addDeprecated
 void addDeprecated(int index, Deprecated vDeprecated)
          Method addDeprecated
 void addTable(int index, Table vTable)
          Method addTable
 void addTable(Table vTable)
          Method addTable
 void clearDeprecated()
          Method clearDeprecated
 void clearTable()
          Method clearTable
 java.util.Enumeration enumerateDeprecated()
          Method enumerateDeprecated
 java.util.Enumeration enumerateTable()
          Method enumerateTable
 Deprecated[] getDeprecated()
          Method getDeprecated
 Deprecated getDeprecated(int index)
          Method getDeprecated
 int getDeprecatedCount()
          Method getDeprecatedCount
 Table[] getTable()
          Method getTable
 Table getTable(int index)
          Method getTable
 int getTableCount()
          Method getTableCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeDeprecated(Deprecated vDeprecated)
          Method removeDeprecated
 boolean removeTable(Table vTable)
          Method removeTable
 void setDeprecated(Deprecated[] deprecatedArray)
          Method setDeprecated
 void setDeprecated(int index, Deprecated vDeprecated)
          Method setDeprecated
 void setTable(int index, Table vTable)
          Method setTable
 void setTable(Table[] tableArray)
          Method setTable
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

addDeprecated

public void addDeprecated(Deprecated vDeprecated)
                   throws java.lang.IndexOutOfBoundsException
Method addDeprecated

Parameters:
vDeprecated -
Throws:
java.lang.IndexOutOfBoundsException

addDeprecated

public void addDeprecated(int index,
                          Deprecated vDeprecated)
                   throws java.lang.IndexOutOfBoundsException
Method addDeprecated

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

addTable

public void addTable(Table vTable)
              throws java.lang.IndexOutOfBoundsException
Method addTable

Parameters:
vTable -
Throws:
java.lang.IndexOutOfBoundsException

addTable

public void addTable(int index,
                     Table vTable)
              throws java.lang.IndexOutOfBoundsException
Method addTable

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

clearDeprecated

public void clearDeprecated()
Method clearDeprecated


clearTable

public void clearTable()
Method clearTable


enumerateDeprecated

public java.util.Enumeration enumerateDeprecated()
Method enumerateDeprecated

Returns:
Enumeration

enumerateTable

public java.util.Enumeration enumerateTable()
Method enumerateTable

Returns:
Enumeration

getDeprecated

public Deprecated getDeprecated(int index)
                         throws java.lang.IndexOutOfBoundsException
Method getDeprecated

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

getDeprecated

public Deprecated[] getDeprecated()
Method getDeprecated

Returns:
Deprecated

getDeprecatedCount

public int getDeprecatedCount()
Method getDeprecatedCount

Returns:
int

getTable

public Table getTable(int index)
               throws java.lang.IndexOutOfBoundsException
Method getTable

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

getTable

public Table[] getTable()
Method getTable

Returns:
Table

getTableCount

public int getTableCount()
Method getTableCount

Returns:
int

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

removeDeprecated

public boolean removeDeprecated(Deprecated vDeprecated)
Method removeDeprecated

Parameters:
vDeprecated -
Returns:
boolean

removeTable

public boolean removeTable(Table vTable)
Method removeTable

Parameters:
vTable -
Returns:
boolean

setDeprecated

public void setDeprecated(int index,
                          Deprecated vDeprecated)
                   throws java.lang.IndexOutOfBoundsException
Method setDeprecated

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

setDeprecated

public void setDeprecated(Deprecated[] deprecatedArray)
Method setDeprecated

Parameters:
deprecatedArray -

setTable

public void setTable(int index,
                     Table vTable)
              throws java.lang.IndexOutOfBoundsException
Method setTable

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

setTable

public void setTable(Table[] tableArray)
Method setTable

Parameters:
tableArray -

unmarshal

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

Parameters:
reader -
Returns:
Object
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 © 1999-2005 The OpenJMS Group. All Rights Reserved.