|
DODS 7.2 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.dods.trans.Table
public class Table
This class represents database table.
Field Summary | |
---|---|
protected java.lang.String |
author
author |
static java.lang.String[] |
caching_value
string match (string which represents LIKE in Standard database) |
protected java.lang.String |
class_name
class name |
protected java.util.ArrayList |
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. |
static int |
FULL
|
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. |
static int |
LRU
|
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'. |
static int |
NONE
|
static int |
PARTIAL
|
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 java.util.ArrayList |
statistics
list of table statistics |
protected java.lang.String |
table_name
table name |
Constructor Summary | |
---|---|
Table()
|
|
Table(boolean genSecure,
boolean genInsecure,
java.lang.String dirty)
|
Method Summary | |
---|---|
void |
addColumn(Column column)
Add column into table. |
void |
addIndex(Index index)
Add index into table. |
boolean |
addReferrer(Referrer referrer)
Add referrer into table. |
void |
addStatistics(Statistics stat)
Add index into table. |
void |
anyColumnSecure(boolean value)
Set value if any table column secure based. |
java.lang.String |
author()
Get author. |
void |
author(java.lang.String author)
Set author. |
java.lang.String |
className()
Get class name. |
void |
className(java.lang.String class_name)
Set class name. |
Column |
column(int index)
Get column with given index. |
java.util.ArrayList |
columns()
Get list of columns. |
void |
columns(java.util.ArrayList columns)
Set list of columns. |
int |
columnsSize()
Get number of columns. |
java.lang.String |
dbVendor()
Get database vendor. |
void |
dbVendor(java.lang.String db_vendor)
Set database vendor. |
boolean |
deleteCascade()
Get the information whether table uses delete cascade. |
boolean |
doInSecure()
Get the information whether DO has security methods. |
void |
doInSecure(boolean do_Insecure)
Set DO to/not to have security methods. |
boolean |
doIsOidBased()
Get the information whether DO is OID based. |
void |
doIsOidBased(boolean do_is_oid_based)
Set DO to/not to be OID based. |
boolean |
doMassDeletes()
Get the information whether table has mass-deletes class. |
void |
doMassDeletes(boolean do_mass)
Set table to/not to have Delete class. |
boolean |
doMassUpdates()
Get the information whether table has mass-updates class. |
void |
doMassUpdates(boolean do_mass)
Set table to/not to have Update class. |
boolean |
doMultidb()
Get the information whether DO has multidb methods. |
void |
doMultidb(boolean do_Multidb)
Set DO to/not to have multidb methods. |
boolean |
doSecure()
Get the information whether DO has security methods. |
void |
doSecure(boolean do_secure)
Set DO to/not to have security methods. |
java.lang.String |
getDirtyDOs()
|
Index |
index(int index)
Get index with given index. |
java.util.ArrayList |
indexes()
Get list of indexes. |
void |
indexes(java.util.ArrayList indexes)
Set indexes. |
int |
indexesSize()
Get number of indexes. |
boolean |
isAbstract()
Get the information whether table is abstarct. |
void |
isAbstract(boolean is_abstract)
Set table to/not to be abstarct. |
boolean |
isAnyColumnSecure()
Get the information is any table column secure based. |
static void |
main(java.lang.String[] args)
|
java.lang.String |
pckg()
Get table package. |
void |
pckg(java.lang.String pckg)
Set table package. |
java.lang.String |
projectName()
Get project name. |
void |
projectName(java.lang.String project_name)
Set project name. |
void |
refConstarint(boolean delete_cascade)
Set table to/not use delete cascade. |
java.util.HashMap |
referrers()
Get referrers. |
void |
referrers(java.util.HashMap referrers)
Set referrers. |
java.util.Iterator |
referrersIterator()
Get entitySet iterator of referrers. |
java.util.Iterator |
referrersKeyIterator()
Get key iterator of referrers. |
int |
referrersSize()
Get number of referrers. |
java.util.Iterator |
referrersValueIterator()
Get value of iterator of referrers. |
java.util.Collection |
referrersValues()
Get value of collection of referrers. |
void |
setDirtyDOs(java.lang.String howToGenerate)
Sets String specifying what to do with dirty DO methods |
java.util.ArrayList |
statistics()
Get list of statistics. |
void |
statistics(java.util.ArrayList stat)
Set statistics. |
Statistics |
statistics(int index)
Get statistics with given index. |
int |
statisticsSize()
Get number of statistics. |
java.lang.String |
tableName()
Get table name. |
void |
tableName(java.lang.String table_name)
Set table name. |
java.lang.String |
toString()
Get string representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String pckg
protected java.lang.String author
protected java.lang.String project_name
protected java.lang.String table_name
protected java.lang.String class_name
protected java.lang.String db_vendor
protected java.lang.String dirtyDOs
public static final java.lang.String[] caching_value
public static final int NONE
public static final int PARTIAL
public static final int FULL
public static final int LRU
protected boolean do_is_oid_based
protected boolean do_secure
protected boolean do_insecure
protected boolean do_multidb
protected boolean is_abstract
protected boolean delete_cascade
protected boolean mass_updates
protected boolean mass_deletes
protected java.util.ArrayList columns
protected java.util.HashMap referrers
protected boolean isAnyColumnSecure
protected java.util.ArrayList indexes
protected java.util.ArrayList statistics
Constructor Detail |
---|
public Table(boolean genSecure, boolean genInsecure, java.lang.String dirty)
public Table()
Method Detail |
---|
public java.lang.String pckg()
public java.lang.String author()
public java.lang.String projectName()
public java.lang.String tableName()
public java.lang.String className()
public java.lang.String dbVendor()
public boolean doIsOidBased()
public boolean doSecure()
public boolean doInSecure()
public boolean doMultidb()
public boolean doMassUpdates()
public boolean doMassDeletes()
public boolean isAbstract()
public boolean isAnyColumnSecure()
public boolean deleteCascade()
public java.util.ArrayList columns()
public int columnsSize()
public Column column(int index)
index
- Index of desired column.
public java.util.HashMap referrers()
public int referrersSize()
public java.util.Iterator referrersIterator()
public java.util.Iterator referrersKeyIterator()
public java.util.Iterator referrersValueIterator()
public java.util.Collection referrersValues()
public java.util.ArrayList indexes()
public java.util.ArrayList statistics()
public int indexesSize()
public int statisticsSize()
public Index index(int index)
public Statistics statistics(int index)
public void pckg(java.lang.String pckg)
pckg
- Table package.public void author(java.lang.String author)
author
- Author.public void projectName(java.lang.String project_name)
project_name
- Project name.public void tableName(java.lang.String table_name)
table_name
- Table name.public void className(java.lang.String class_name)
class_name
- Class name.public void dbVendor(java.lang.String db_vendor)
db_vendor
- Database vendor.public void doIsOidBased(boolean do_is_oid_based)
do_is_oid_based
- True if DO is OID based, otherwise false.public void doSecure(boolean do_secure)
do_secure
- True if DO need security methods, otherwise false.public void doInSecure(boolean do_Insecure)
do_Insecure
- True if DO need unsecurity methods, otherwise false.public void doMassUpdates(boolean do_mass)
do_mass
- True if table need mass-updates methods, otherwise false.public void doMassDeletes(boolean do_mass)
do_mass
- True if table need mass-deletes methods, otherwise false.public void doMultidb(boolean do_Multidb)
do_Multidb
- True if DO has multidb methods, otherwise false.public void isAbstract(boolean is_abstract)
is_abstract
- True if table is abstarct, otherwise false.public void anyColumnSecure(boolean value)
value
- True if table is abstarct, otherwise false.public void refConstarint(boolean delete_cascade)
delete_cascade
- True if table uses delete cascade, otherwise false.public void columns(java.util.ArrayList columns)
columns
- List of columns.public void addColumn(Column column)
column
- Column which will be added.public void referrers(java.util.HashMap referrers)
referrers
- New referrers of table.public void addIndex(Index index)
index
- Index which will be added to table.public void addStatistics(Statistics stat)
stat
- Index which will be added to table.public void indexes(java.util.ArrayList indexes)
indexes
- New indexes of table.public void statistics(java.util.ArrayList stat)
stat
- New statistics of table.public boolean addReferrer(Referrer referrer)
referrer
- Referrer which will be added.
public void setDirtyDOs(java.lang.String howToGenerate) throws InvalidDomlException
howToGenerate
- - can be "Compatble", "Deprecate", "Omit"
InvalidDomlException
public java.lang.String getDirtyDOs()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
|
DODS 7.2 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |