|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.prorefactor.core.schema.Table
public class Table
Table objects are created both by the Schema class and also when temp and work tables are defined within a 4gl compile unit. For temp and work tables, the database is Schema.nullDatabase.
| Nested Class Summary | |
|---|---|
static class |
Table.Name
This is a convenience class for working with a string table name, where there may or may not be a database qualifier in the name. |
| Field Summary | |
|---|---|
static java.util.Comparator<Table> |
NAME_ORDER
Comparator for sorting by name. |
| Constructor Summary | |
|---|---|
Table()
Only to be used for persistence/serialization. |
|
Table(java.lang.String name)
Constructor for temporary "comparator" objects. |
|
Table(java.lang.String name,
Database database)
Constructor for schema |
|
Table(java.lang.String name,
int storetype)
Constructor for temp / work tables |
|
| Method Summary | |
|---|---|
Table |
copyBare(SymbolScopeRoot scope)
Create a bare minimum copy of a Table definition. |
Database |
getDatabase()
|
java.util.ArrayList<Field> |
getFieldPosOrder()
Get the ArrayList of fields in field position order (rather than sorted alpha). |
java.util.TreeSet<Field> |
getFieldSet()
|
java.lang.String |
getName()
|
int |
getStoretype()
|
Field |
lookupField(java.lang.String lookupName)
Lookup a field by name. |
void |
writeXferBytes(DataXferStream out)
Implement Xferable. |
void |
writeXferSchema(DataXferStream out)
Implement Xferable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.Comparator<Table> NAME_ORDER
| Constructor Detail |
|---|
public Table()
public Table(java.lang.String name,
Database database)
public Table(java.lang.String name,
int storetype)
public Table(java.lang.String name)
| Method Detail |
|---|
public Table copyBare(SymbolScopeRoot scope)
scope - The scope that this table is to be added to.
public Database getDatabase()
public java.util.ArrayList<Field> getFieldPosOrder()
public java.util.TreeSet<Field> getFieldSet()
public java.lang.String getName()
public int getStoretype()
public Field lookupField(java.lang.String lookupName)
public void writeXferBytes(DataXferStream out)
throws java.io.IOException
writeXferBytes in interface Xferablejava.io.IOException
public void writeXferSchema(DataXferStream out)
throws java.io.IOException
writeXferSchema in interface Xferablejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||