DODS 7.6 API

org.enhydra.dods.doml8.trans
Class TableDef

java.lang.Object
  extended by org.enhydra.dods.doml8.trans.TableDef

public class TableDef
extends java.lang.Object


Field Summary
protected  java.lang.String author
          author
protected  java.lang.String class_name
          class name
protected  java.util.ArrayList columnIds
           
protected  java.util.HashMap columns
          list of table columns
protected  java.lang.String db_vendor
          database vendor
protected  boolean delete_cascade
          This variable contains information whether the table uses delete cascade capability.
protected  java.lang.String dirtyDOs
          How to generate dirty methods.
protected  boolean do_insecure
          This variable contains information whether the table need unsecurity methods.
protected  boolean do_is_oid_based
          This variable contains information whether the table is based on OID primary key.
protected  boolean do_multidb
          This variable contains information whether the table can use multidb methods.
protected  boolean do_secure
          This variable contains information whether the table need security methods.
protected  java.util.ArrayList foreignKeys
          list of table foreignKeys
protected  boolean fullScan
           
protected  java.util.ArrayList indexes
          list of table indexes
protected  boolean is_abstract
          This variable contains information whether the table is abstarct.
protected  boolean isAnyColumnSecure
          This variable contains information whether is any of table columns has secure methods.
protected  boolean mass_deletes
          This variable contains information whether the table uses class for 'mass-deletes'.
protected  boolean mass_updates
          This variable contains information whether the table uses class for 'mass-updates'.
protected  boolean noRecompute
           
protected  java.lang.String pckg
          table package
protected  java.lang.String project_name
          project name
protected  java.util.HashMap referrers
          list of table referrers
protected  int sampleNo
           
protected  java.lang.String sampleType
           
protected  java.util.ArrayList statistics
          list of table statistics
static java.lang.String[] STATISTICS_ATTR_NAMES
           
protected  java.lang.String table_name
          table name
 
Constructor Summary
TableDef()
           
 
Method Summary
 void addColumn(java.lang.String colID, java.lang.Object column)
          Add column into table.
 void addIndex(org.enhydra.dods.doml8.xml.DOMLIndexType index, java.lang.String tableID)
           
 boolean addReferrer(ReferrerDef referrer)
           
 int columnsSize()
           
 java.lang.String getAuthor()
           
 java.lang.String getClass_name()
           
 java.util.ArrayList getColumnIds()
           
 java.util.HashMap getColumns()
           
 java.lang.String getDb_vendor()
           
 java.lang.String getDirtyDOs()
           
 java.lang.String getIndex(int index)
           
 java.util.ArrayList getIndexes()
           
static java.lang.String getPARVALUE_COMPATIBLE()
           
static java.lang.String getPARVALUE_DEPRECATE()
           
static java.lang.String getPARVALUE_OMIT()
           
 java.lang.String getPckg()
           
 java.lang.String getProject_name()
           
 java.util.HashMap getReferrers()
           
 java.lang.String getTable_name()
           
 boolean isAnyColumnSecure()
           
 boolean isDelete_cascade()
           
 boolean isDo_insecure()
           
 boolean isDo_is_oid_based()
           
 boolean isDo_multidb()
           
 boolean isDo_secure()
           
 boolean isIs_abstract()
           
 boolean isMass_deletes()
           
 boolean isMass_updates()
           
 void setAnyColumnSecure(boolean isAnyColumnSecure)
           
 void setAuthor(java.lang.String author)
           
 void setClass_name(java.lang.String className)
           
 void setColumns(java.util.HashMap columns)
           
 void setDb_vendor(java.lang.String db_vendor)
           
 void setDelete_cascade(boolean delete_cascade)
           
 void setDirtyDOs(java.lang.String dirtyDOs)
           
 void setDo_insecure(boolean do_insecure)
           
 void setDo_is_oid_based(boolean do_is_oid_based)
           
 void setDo_multidb(boolean do_multidb)
           
 void setDo_secure(boolean do_secure)
           
 void setIndexes(java.util.ArrayList indexes)
           
 void setIs_abstract(boolean is_abstract)
           
 void setMass_deletes(boolean mass_deletes)
           
 void setMass_updates(boolean mass_updates)
           
 void setPckg(java.lang.String pckg)
           
 void setProject_name(java.lang.String project_name)
           
 void setReferrers(java.util.HashMap referrers)
           
 void setTable_name(java.lang.String table_name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATISTICS_ATTR_NAMES

public static final java.lang.String[] STATISTICS_ATTR_NAMES

fullScan

protected boolean fullScan

noRecompute

protected boolean noRecompute

sampleNo

protected int sampleNo

sampleType

protected java.lang.String sampleType

pckg

protected java.lang.String pckg
table package


author

protected java.lang.String author
author


project_name

protected java.lang.String project_name
project name


table_name

protected java.lang.String table_name
table name


class_name

protected java.lang.String class_name
class name


db_vendor

protected java.lang.String db_vendor
database vendor


dirtyDOs

protected java.lang.String dirtyDOs
How to generate dirty methods.


do_is_oid_based

protected boolean do_is_oid_based
This variable contains information whether the table is based on OID primary key.


do_secure

protected boolean do_secure
This variable contains information whether the table need security methods.


do_insecure

protected boolean do_insecure
This variable contains information whether the table need unsecurity methods.


do_multidb

protected boolean do_multidb
This variable contains information whether the table can use multidb methods.


is_abstract

protected boolean is_abstract
This variable contains information whether the table is abstarct.


delete_cascade

protected boolean delete_cascade
This variable contains information whether the table uses delete cascade capability.


mass_updates

protected boolean mass_updates
This variable contains information whether the table uses class for 'mass-updates'.


mass_deletes

protected boolean mass_deletes
This variable contains information whether the table uses class for 'mass-deletes'.


columns

protected java.util.HashMap columns
list of table columns


referrers

protected java.util.HashMap referrers
list of table referrers


isAnyColumnSecure

protected boolean isAnyColumnSecure
This variable contains information whether is any of table columns has secure methods.


indexes

protected java.util.ArrayList indexes
list of table indexes


foreignKeys

protected java.util.ArrayList foreignKeys
list of table foreignKeys


columnIds

protected java.util.ArrayList columnIds

statistics

protected java.util.ArrayList statistics
list of table statistics

Constructor Detail

TableDef

public TableDef()
Method Detail

getColumnIds

public java.util.ArrayList getColumnIds()

getPARVALUE_COMPATIBLE

public static java.lang.String getPARVALUE_COMPATIBLE()

getPARVALUE_DEPRECATE

public static java.lang.String getPARVALUE_DEPRECATE()

getPARVALUE_OMIT

public static java.lang.String getPARVALUE_OMIT()

getAuthor

public java.lang.String getAuthor()

setAuthor

public void setAuthor(java.lang.String author)

getClass_name

public java.lang.String getClass_name()

setClass_name

public void setClass_name(java.lang.String className)

getColumns

public java.util.HashMap getColumns()

setColumns

public void setColumns(java.util.HashMap columns)

getDb_vendor

public java.lang.String getDb_vendor()

setDb_vendor

public void setDb_vendor(java.lang.String db_vendor)

isDelete_cascade

public boolean isDelete_cascade()

setDelete_cascade

public void setDelete_cascade(boolean delete_cascade)

getDirtyDOs

public java.lang.String getDirtyDOs()

setDirtyDOs

public void setDirtyDOs(java.lang.String dirtyDOs)

isDo_insecure

public boolean isDo_insecure()

setDo_insecure

public void setDo_insecure(boolean do_insecure)

isDo_is_oid_based

public boolean isDo_is_oid_based()

setDo_is_oid_based

public void setDo_is_oid_based(boolean do_is_oid_based)

isDo_multidb

public boolean isDo_multidb()

setDo_multidb

public void setDo_multidb(boolean do_multidb)

isDo_secure

public boolean isDo_secure()

setDo_secure

public void setDo_secure(boolean do_secure)

getIndexes

public java.util.ArrayList getIndexes()

setIndexes

public void setIndexes(java.util.ArrayList indexes)

isIs_abstract

public boolean isIs_abstract()

setIs_abstract

public void setIs_abstract(boolean is_abstract)

isAnyColumnSecure

public boolean isAnyColumnSecure()

setAnyColumnSecure

public void setAnyColumnSecure(boolean isAnyColumnSecure)

isMass_deletes

public boolean isMass_deletes()

setMass_deletes

public void setMass_deletes(boolean mass_deletes)

isMass_updates

public boolean isMass_updates()

setMass_updates

public void setMass_updates(boolean mass_updates)

getPckg

public java.lang.String getPckg()

setPckg

public void setPckg(java.lang.String pckg)

getProject_name

public java.lang.String getProject_name()

setProject_name

public void setProject_name(java.lang.String project_name)

getReferrers

public java.util.HashMap getReferrers()

setReferrers

public void setReferrers(java.util.HashMap referrers)

getTable_name

public java.lang.String getTable_name()

setTable_name

public void setTable_name(java.lang.String table_name)

addColumn

public void addColumn(java.lang.String colID,
                      java.lang.Object column)
Add column into table.

Parameters:
column - Column which will be added.

addIndex

public void addIndex(org.enhydra.dods.doml8.xml.DOMLIndexType index,
                     java.lang.String tableID)
              throws java.lang.Exception
Throws:
java.lang.Exception

addReferrer

public boolean addReferrer(ReferrerDef referrer)

columnsSize

public int columnsSize()

getIndex

public java.lang.String getIndex(int index)

DODS 7.6 API