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
public class SimpleAuxiliaryDatabaseObject extends AbstractAuxiliaryDatabaseObject
A simple implementation ofAbstractAuxiliaryDatabaseObject
in which theCREATE
andDROP
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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.boot.model.relational.AuxiliaryDatabaseObject
AuxiliaryDatabaseObject.Expandable
-
-
Constructor Summary
Constructors Constructor Description SimpleAuxiliaryDatabaseObject(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getCatalogName()
protected String
getSchemaName()
String[]
sqlCreateStrings(SqlStringGenerationContext context)
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 Detail
-
SimpleAuxiliaryDatabaseObject
public SimpleAuxiliaryDatabaseObject(Namespace namespace, String createString, String dropString, Set<String> dialectScopes, boolean beforeTables)
-
SimpleAuxiliaryDatabaseObject
public SimpleAuxiliaryDatabaseObject(Namespace namespace, String[] createStrings, String[] dropStrings, Set<String> dialectScopes, boolean beforeTables)
-
SimpleAuxiliaryDatabaseObject
public SimpleAuxiliaryDatabaseObject(Namespace namespace, String createString, String dropString, Set<String> dialectScopes)
-
SimpleAuxiliaryDatabaseObject
public SimpleAuxiliaryDatabaseObject(Namespace namespace, String[] createStrings, String[] dropStrings, Set<String> dialectScopes)
-
SimpleAuxiliaryDatabaseObject
public SimpleAuxiliaryDatabaseObject(Set<String> dialectScopes, String catalogName, String schemaName, String[] createStrings, String[] dropStrings, boolean beforeTables)
-
-
Method Detail
-
sqlCreateStrings
public String[] sqlCreateStrings(SqlStringGenerationContext context)
Description copied from interface:AuxiliaryDatabaseObject
Gets 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
public String[] sqlDropStrings(SqlStringGenerationContext context)
Description copied from interface:AuxiliaryDatabaseObject
Gets 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
protected String getCatalogName()
-
getSchemaName
protected String getSchemaName()
-
-