Class SimpleAuxiliaryDatabaseObject
java.lang.Object
org.hibernate.boot.model.relational.AbstractAuxiliaryDatabaseObject
org.hibernate.boot.model.relational.SimpleAuxiliaryDatabaseObject
- All Implemented Interfaces:
Serializable,AuxiliaryDatabaseObject,AuxiliaryDatabaseObject.Expandable,Exportable
- Direct Known Subclasses:
NamedAuxiliaryDatabaseObject
A simple implementation of
AbstractAuxiliaryDatabaseObject in which the
CREATE and DROP strings are provided up front. Contains simple
facilities for templating the catalog and schema names into the provided strings.
This is the form created when the mapping documents use <create/> and
<drop/>.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.boot.model.relational.AuxiliaryDatabaseObject
AuxiliaryDatabaseObject.Expandable -
Constructor Summary
ConstructorsConstructorDescriptionSimpleAuxiliaryDatabaseObject(Set<String> dialectScopes, String catalogName, String schemaName, String[] createStrings, String[] dropStrings) SimpleAuxiliaryDatabaseObject(Set<String> dialectScopes, String catalogName, String schemaName, String[] createStrings, String[] dropStrings, boolean beforeTables) SimpleAuxiliaryDatabaseObject(Namespace namespace, String[] createStrings, String[] dropStrings, Set<String> dialectScopes) SimpleAuxiliaryDatabaseObject(Namespace namespace, String[] createStrings, String[] dropStrings, Set<String> dialectScopes, boolean beforeTables) SimpleAuxiliaryDatabaseObject(Namespace namespace, String createString, String dropString, Set<String> dialectScopes) SimpleAuxiliaryDatabaseObject(Namespace namespace, String createString, String dropString, Set<String> dialectScopes, boolean beforeTables) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected StringString[]Gets the SQL strings for creating the database object.String[]sqlDropStrings(SqlStringGenerationContext context) Gets the SQL strings for dropping the database object.Methods inherited from class org.hibernate.boot.model.relational.AbstractAuxiliaryDatabaseObject
addDialectScope, appliesToDialect, beforeTablesOnCreation, getDialectScopes, getExportIdentifier
-
Constructor Details
-
SimpleAuxiliaryDatabaseObject
-
SimpleAuxiliaryDatabaseObject
-
SimpleAuxiliaryDatabaseObject
-
SimpleAuxiliaryDatabaseObject
-
SimpleAuxiliaryDatabaseObject
-
SimpleAuxiliaryDatabaseObject
-
-
Method Details
-
sqlCreateStrings
Description copied from interface:AuxiliaryDatabaseObjectGets the SQL strings for creating the database object.- Parameters:
context- A context to help generate the SQL creation strings- Returns:
- the SQL strings for creating the database object.
-
sqlDropStrings
Description copied from interface:AuxiliaryDatabaseObjectGets the SQL strings for dropping the database object.- Parameters:
context- A context to help generate the SQL drop strings- Returns:
- the SQL strings for dropping the database object.
-
getCatalogName
-
getSchemaName
-