org.enableit.db.beans
Class Table

java.lang.Object
  |
  +--org.enableit.db.beans.Table
All Implemented Interfaces:
java.io.Serializable

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

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

Constructor Summary
Table()
           
 
Method Summary
 void addColumn(org.enableit.db.beans.Column vColumn)
           
 void addColumn(int index, org.enableit.db.beans.Column vColumn)
           
 void addIndex(org.enableit.db.beans.Index vIndex)
           
 void addIndex(int index, org.enableit.db.beans.Index vIndex)
           
 java.util.Enumeration enumerateColumn()
           
 java.util.Enumeration enumerateIndex()
           
 org.enableit.db.beans.Column[] getColumn()
           
 org.enableit.db.beans.Column getColumn(int index)
           
 int getColumnCount()
           
 org.enableit.db.beans.Index[] getIndex()
           
 org.enableit.db.beans.Index getIndex(int index)
           
 int getIndexCount()
           
 java.lang.String getName()
          Returns the value of field 'name'.
 java.lang.String getType()
          Returns the value of field 'type'.
 boolean isValid()
           
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void removeAllColumn()
           
 void removeAllIndex()
           
 org.enableit.db.beans.Column removeColumn(int index)
           
 org.enableit.db.beans.Index removeIndex(int index)
           
 void setColumn(org.enableit.db.beans.Column[] columnArray)
           
 void setColumn(int index, org.enableit.db.beans.Column vColumn)
           
 void setIndex(org.enableit.db.beans.Index[] indexArray)
           
 void setIndex(int index, org.enableit.db.beans.Index vIndex)
           
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setType(java.lang.String type)
          Sets the value of field 'type'.
static org.enableit.db.beans.Table unmarshal(java.io.Reader reader)
           
 void 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

addColumn

public void addColumn(org.enableit.db.beans.Column vColumn)
               throws java.lang.IndexOutOfBoundsException
Parameters:
vColumn -
java.lang.IndexOutOfBoundsException

addColumn

public void addColumn(int index,
                      org.enableit.db.beans.Column vColumn)
               throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vColumn -
java.lang.IndexOutOfBoundsException

addIndex

public void addIndex(org.enableit.db.beans.Index vIndex)
              throws java.lang.IndexOutOfBoundsException
Parameters:
vIndex -
java.lang.IndexOutOfBoundsException

addIndex

public void addIndex(int index,
                     org.enableit.db.beans.Index vIndex)
              throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vIndex -
java.lang.IndexOutOfBoundsException

enumerateColumn

public java.util.Enumeration enumerateColumn()

enumerateIndex

public java.util.Enumeration enumerateIndex()

getColumn

public org.enableit.db.beans.Column getColumn(int index)
                                       throws java.lang.IndexOutOfBoundsException
Parameters:
index -
java.lang.IndexOutOfBoundsException

getColumn

public org.enableit.db.beans.Column[] getColumn()

getColumnCount

public int getColumnCount()

getIndex

public org.enableit.db.beans.Index getIndex(int index)
                                     throws java.lang.IndexOutOfBoundsException
Parameters:
index -
java.lang.IndexOutOfBoundsException

getIndex

public org.enableit.db.beans.Index[] getIndex()

getIndexCount

public int getIndexCount()

getName

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

Returns:
the value of field 'name'.

getType

public java.lang.String getType()
Returns the value of field 'type'.

Returns:
the value of field 'type'.

isValid

public boolean isValid()

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
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
Parameters:
handler -
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeAllColumn

public void removeAllColumn()

removeAllIndex

public void removeAllIndex()

removeColumn

public org.enableit.db.beans.Column removeColumn(int index)
Parameters:
index -

removeIndex

public org.enableit.db.beans.Index removeIndex(int index)
Parameters:
index -

setColumn

public void setColumn(int index,
                      org.enableit.db.beans.Column vColumn)
               throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vColumn -
java.lang.IndexOutOfBoundsException

setColumn

public void setColumn(org.enableit.db.beans.Column[] columnArray)
Parameters:
columnArray -

setIndex

public void setIndex(int index,
                     org.enableit.db.beans.Index vIndex)
              throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vIndex -
java.lang.IndexOutOfBoundsException

setIndex

public void setIndex(org.enableit.db.beans.Index[] indexArray)
Parameters:
indexArray -

setName

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

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

setType

public void setType(java.lang.String type)
Sets the value of field 'type'.

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

unmarshal

public static org.enableit.db.beans.Table unmarshal(java.io.Reader reader)
                                             throws org.exolab.castor.xml.MarshalException,
                                                    org.exolab.castor.xml.ValidationException
Parameters:
reader -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException


Copyright © 1999-2004 enableIT.org. All Rights Reserved.