Package net.java.ao.schema.ddl
Class SchemaReader
java.lang.Object
net.java.ao.schema.ddl.SchemaReader
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DDLAction[]diffSchema(TypeManager typeManager, DDLTable[] fromArray, DDLTable[] ontoArray, boolean caseSensitive) Returns the difference betweenfromandontowith a bias towardfrom.static DDLTable[]readSchema(Connection connection, DatabaseProvider provider, NameConverters nameConverters, SchemaConfiguration schemaConfiguration, boolean includeForeignKeys) static DDLTable[]readSchema(DatabaseProvider provider, NameConverters nameConverters, SchemaConfiguration schemaConfiguration) Currently doesn't account for: setUniquestatic DDLTable[]readSchema(DatabaseProvider provider, NameConverters nameConverters, SchemaConfiguration schemaConfiguration, boolean includeForeignKeys) static DDLAction[]sortTopologically(DDLAction[] actions)
-
Constructor Details
-
SchemaReader
public SchemaReader()
-
-
Method Details
-
readSchema
public static DDLTable[] readSchema(DatabaseProvider provider, NameConverters nameConverters, SchemaConfiguration schemaConfiguration) throws SQLException Currently doesn't account for:- setUnique
- Throws:
SQLException
-
readSchema
public static DDLTable[] readSchema(DatabaseProvider provider, NameConverters nameConverters, SchemaConfiguration schemaConfiguration, boolean includeForeignKeys) throws SQLException - Throws:
SQLException
-
readSchema
public static DDLTable[] readSchema(Connection connection, DatabaseProvider provider, NameConverters nameConverters, SchemaConfiguration schemaConfiguration, boolean includeForeignKeys) throws SQLException - Throws:
SQLException
-
diffSchema
public static DDLAction[] diffSchema(TypeManager typeManager, DDLTable[] fromArray, DDLTable[] ontoArray, boolean caseSensitive) Returns the difference betweenfromandontowith a bias towardfrom. Thus, if a table is present infrombut notonto, aCREATE TABLEstatement will be generated. -
sortTopologically
-