net.java.ao.schema.ddl
Class SchemaReader
java.lang.Object
net.java.ao.schema.ddl.SchemaReader
public final class SchemaReader
- extends Object
WARNING: Not part of the public API. This class is public only
to allow its use within other packages in the ActiveObjects library.
- Author:
- Daniel Spiewak
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaReader
public SchemaReader()
readSchema
public static DDLTable[] readSchema(DatabaseProvider provider)
throws SQLException
- Currently doesn't account for:
- Throws:
SQLException
diffSchema
public static DDLAction[] diffSchema(DDLTable[] fromArray,
DDLTable[] ontoArray)
- Returns the difference between
from and
onto with a bias toward from.
Thus, if a table is present in from but not
onto, a CREATE TABLE
statement will be generated.
sortTopologically
public static DDLAction[] sortTopologically(DDLAction[] actions)