org.prorefactor.core.schema
Class Database
java.lang.Object
org.prorefactor.core.schema.Database
- All Implemented Interfaces:
- Xferable
public class Database
- extends java.lang.Object
- implements Xferable
Database objects are created by the Schema class,
and they are used when looking up table names from 4gl comile units.
"id" field is a database number, starting at one.
Might be the logical database number - depends on how you use this.
Field Summary |
static java.util.Comparator<Database> |
NAME_ORDER
Comparator for sorting by name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME_ORDER
public static final java.util.Comparator<Database> NAME_ORDER
- Comparator for sorting by name.
Database
public Database()
Database
public Database(java.lang.String name)
add
public void add(Table table)
getName
public java.lang.String getName()
getTableSet
public java.util.TreeSet<Table> getTableSet()
setName
public void setName(java.lang.String name)
writeXferBytes
public void writeXferBytes(DataXferStream out)
throws java.io.IOException
- Implement Xferable.
- Specified by:
writeXferBytes
in interface Xferable
- Throws:
java.io.IOException
writeXferSchema
public void writeXferSchema(DataXferStream out)
throws java.io.IOException
- Implement Xferable.
- Specified by:
writeXferSchema
in interface Xferable
- Throws:
java.io.IOException
Copyright © 2008 Joanju Software. All Rights Reserved.