org.exolab.jms.tools.db
Class Table

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

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

This element defines a table

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

Constructor Summary
Table()
           
 
Method Summary
 void addAttribute(Attribute vAttribute)
          Method addAttribute
 void addAttribute(int index, Attribute vAttribute)
          Method addAttribute
 void addIndex(Index vIndex)
          Method addIndex
 void addIndex(int index, Index vIndex)
          Method addIndex
 void clearAttribute()
          Method clearAttribute
 void clearIndex()
          Method clearIndex
 java.util.Enumeration enumerateAttribute()
          Method enumerateAttribute
 java.util.Enumeration enumerateIndex()
          Method enumerateIndex
 Attribute[] getAttribute()
          Method getAttribute
 Attribute getAttribute(int index)
          Method getAttribute
 int getAttributeCount()
          Method getAttributeCount
 Index[] getIndex()
          Method getIndex
 Index getIndex(int index)
          Method getIndex
 int getIndexCount()
          Method getIndexCount
 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 removeAttribute(Attribute vAttribute)
          Method removeAttribute
 boolean removeIndex(Index vIndex)
          Method removeIndex
 void setAttribute(Attribute[] attributeArray)
          Method setAttribute
 void setAttribute(int index, Attribute vAttribute)
          Method setAttribute
 void setIndex(Index[] indexArray)
          Method setIndex
 void setIndex(int index, Index vIndex)
          Method setIndex
 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

Table

public Table()
Method Detail

addAttribute

public void addAttribute(Attribute vAttribute)
                  throws java.lang.IndexOutOfBoundsException
Method addAttribute

Parameters:
vAttribute -
Throws:
java.lang.IndexOutOfBoundsException

addAttribute

public void addAttribute(int index,
                         Attribute vAttribute)
                  throws java.lang.IndexOutOfBoundsException
Method addAttribute

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

addIndex

public void addIndex(Index vIndex)
              throws java.lang.IndexOutOfBoundsException
Method addIndex

Parameters:
vIndex -
Throws:
java.lang.IndexOutOfBoundsException

addIndex

public void addIndex(int index,
                     Index vIndex)
              throws java.lang.IndexOutOfBoundsException
Method addIndex

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

clearAttribute

public void clearAttribute()
Method clearAttribute


clearIndex

public void clearIndex()
Method clearIndex


enumerateAttribute

public java.util.Enumeration enumerateAttribute()
Method enumerateAttribute

Returns:
Enumeration

enumerateIndex

public java.util.Enumeration enumerateIndex()
Method enumerateIndex

Returns:
Enumeration

getAttribute

public Attribute getAttribute(int index)
                       throws java.lang.IndexOutOfBoundsException
Method getAttribute

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

getAttribute

public Attribute[] getAttribute()
Method getAttribute

Returns:
Attribute

getAttributeCount

public int getAttributeCount()
Method getAttributeCount

Returns:
int

getIndex

public Index getIndex(int index)
               throws java.lang.IndexOutOfBoundsException
Method getIndex

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

getIndex

public Index[] getIndex()
Method getIndex

Returns:
Index

getIndexCount

public int getIndexCount()
Method getIndexCount

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 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

removeAttribute

public boolean removeAttribute(Attribute vAttribute)
Method removeAttribute

Parameters:
vAttribute -
Returns:
boolean

removeIndex

public boolean removeIndex(Index vIndex)
Method removeIndex

Parameters:
vIndex -
Returns:
boolean

setAttribute

public void setAttribute(int index,
                         Attribute vAttribute)
                  throws java.lang.IndexOutOfBoundsException
Method setAttribute

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

setAttribute

public void setAttribute(Attribute[] attributeArray)
Method setAttribute

Parameters:
attributeArray -

setIndex

public void setIndex(int index,
                     Index vIndex)
              throws java.lang.IndexOutOfBoundsException
Method setIndex

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

setIndex

public void setIndex(Index[] indexArray)
Method setIndex

Parameters:
indexArray -

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 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.