Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.enableit.db.darrt.schema
Class Index  view Index download Index.java

java.lang.Object
  extended byorg.enableit.db.darrt.schema.Index
All Implemented Interfaces:
java.io.Serializable

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

Version:
$Revision: 1.3 $ $Date: 2003/01/06 10:34:57 $

Field Summary
private  java.util.Vector _colNameList
           
private  java.lang.String _name
           
private  java.lang.String _tableName
           
private  java.lang.String _type
           
private  java.lang.String _unique
           
 
Constructor Summary
Index()
           
 
Method Summary
 void addColName(int index, java.lang.String vColName)
           
 void addColName(java.lang.String vColName)
           
 java.util.Enumeration enumerateColName()
           
 java.lang.String[] getColName()
           
 java.lang.String getColName(int index)
           
 int getColNameCount()
           
 java.lang.String getName()
          Returns the value of field 'name'.
 java.lang.String getTableName()
          Returns the value of field 'tableName'.
 java.lang.String getType()
          Returns the value of field 'type'.
 java.lang.String getUnique()
          Returns the value of field 'unique'.
 boolean isValid()
           
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void removeAllColName()
           
 java.lang.String removeColName(int index)
           
 void setColName(int index, java.lang.String vColName)
           
 void setColName(java.lang.String[] colNameArray)
           
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setTableName(java.lang.String tableName)
          Sets the value of field 'tableName'.
 void setType(java.lang.String type)
          Sets the value of field 'type'.
 void setUnique(java.lang.String unique)
          Sets the value of field 'unique'.
static Index 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
 

Field Detail

_tableName

private java.lang.String _tableName

_name

private java.lang.String _name

_type

private java.lang.String _type

_unique

private java.lang.String _unique

_colNameList

private java.util.Vector _colNameList
Constructor Detail

Index

public Index()
Method Detail

addColName

public void addColName(java.lang.String vColName)
                throws java.lang.IndexOutOfBoundsException

addColName

public void addColName(int index,
                       java.lang.String vColName)
                throws java.lang.IndexOutOfBoundsException

enumerateColName

public java.util.Enumeration enumerateColName()

getColName

public java.lang.String getColName(int index)
                            throws java.lang.IndexOutOfBoundsException

getColName

public java.lang.String[] getColName()

getColNameCount

public int getColNameCount()

getName

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


getTableName

public java.lang.String getTableName()
Returns the value of field 'tableName'.


getType

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


getUnique

public java.lang.String getUnique()
Returns the value of field 'unique'.


isValid

public boolean isValid()

marshal

public void marshal(java.io.Writer 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

removeAllColName

public void removeAllColName()

removeColName

public java.lang.String removeColName(int index)

setColName

public void setColName(int index,
                       java.lang.String vColName)
                throws java.lang.IndexOutOfBoundsException

setColName

public void setColName(java.lang.String[] colNameArray)

setName

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


setTableName

public void setTableName(java.lang.String tableName)
Sets the value of field 'tableName'.


setType

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


setUnique

public void setUnique(java.lang.String unique)
Sets the value of field 'unique'.


unmarshal

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

validate

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