|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.java.ao.schema.ddl.SchemaReader
public final class SchemaReader
| Constructor Summary | |
|---|---|
SchemaReader()
|
|
| Method Summary | |
|---|---|
static DDLAction[] |
diffSchema(DDLTable[] fromArray,
DDLTable[] ontoArray)
Returns the difference between from and
onto with a bias toward from. |
static DDLTable[] |
readSchema(DatabaseProvider provider)
Currently doesn't account for: setOnUpdate setUnique |
static DDLAction[] |
sortTopologically(DDLAction[] actions)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaReader()
| Method Detail |
|---|
public static DDLTable[] readSchema(DatabaseProvider provider)
throws java.sql.SQLException
java.sql.SQLException
public static DDLAction[] diffSchema(DDLTable[] fromArray,
DDLTable[] ontoArray)
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.
public static DDLAction[] sortTopologically(DDLAction[] actions)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||