java.lang.Object
com.lutris.dods.builder.engine.DOgraphNode
- class DOgraphNode
- extends java.lang.Object
This class is used by the Builder to generate two lists:
1) a list of generated .sql files in a valid execution order.
2) a list of "drop table" SQL commands in a valid execution order.
The 2nd list is in the reverse order of the 1st list.
The order is determined by the inter-tables references (foreign keys).
The tables with no references are created first and dropped last.
set
private static java.util.Hashtable set
sqls
private static java.util.Vector sqls
tables
private static java.util.Vector tables
DO
com.lutris.dods.store.doa.DataObject DO
references
java.util.Hashtable references
DOgraphNode
private DOgraphNode(com.lutris.dods.store.doa.DataObject o)
reset
public static void reset()
addNode
public static void addNode(com.lutris.dods.store.doa.DataObject DO)
getCreateOrder
public static java.lang.String getCreateOrder()
getOrderedFilenames
public static java.lang.String[] getOrderedFilenames()
getDropCommands
public static java.lang.String getDropCommands()
process
private static void process()
zapRef
private static void zapRef(DOgraphNode ref)
fillRefs
private static void fillRefs()
noRefs
private boolean noRefs()
addRef
private void addRef(DOgraphNode ref)
removeRef
private void removeRef(DOgraphNode ref)
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).