Class SimpleAuxiliaryDatabaseObject
- java.lang.Object
-
- org.hibernate.boot.model.relational.AbstractAuxiliaryDatabaseObject
-
- org.hibernate.boot.model.relational.SimpleAuxiliaryDatabaseObject
-
- All Implemented Interfaces:
java.io.Serializable
,AuxiliaryDatabaseObject
,AuxiliaryDatabaseObject.Expandable
,Exportable
- Direct Known Subclasses:
NamedAuxiliaryDatabaseObject
public class SimpleAuxiliaryDatabaseObject extends AbstractAuxiliaryDatabaseObject
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:
- 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(java.util.Set<java.lang.String> dialectScopes, java.lang.String catalogName, java.lang.String schemaName, java.lang.String[] createStrings, java.lang.String[] dropStrings)
SimpleAuxiliaryDatabaseObject(Namespace namespace, java.lang.String[] createStrings, java.lang.String[] dropStrings, java.util.Set<java.lang.String> dialectScopes)
SimpleAuxiliaryDatabaseObject(Namespace namespace, java.lang.String createString, java.lang.String dropString, java.util.Set<java.lang.String> dialectScopes)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.String
getCatalogName()
protected java.lang.String
getSchemaName()
java.lang.String[]
sqlCreateStrings(SqlStringGenerationContext context)
Gets the SQL strings for creating the database object.java.lang.String[]
sqlCreateStrings(Dialect dialect)
Deprecated.java.lang.String[]
sqlDropStrings(SqlStringGenerationContext context)
Gets the SQL strings for dropping the database object.java.lang.String[]
sqlDropStrings(Dialect dialect)
Deprecated.-
Methods inherited from class org.hibernate.boot.model.relational.AbstractAuxiliaryDatabaseObject
addDialectScope, appliesToDialect, beforeTablesOnCreation, getDialectScopes, getExportIdentifier
-
-
-
-
Constructor Detail
-
SimpleAuxiliaryDatabaseObject
public SimpleAuxiliaryDatabaseObject(Namespace namespace, java.lang.String createString, java.lang.String dropString, java.util.Set<java.lang.String> dialectScopes)
-
SimpleAuxiliaryDatabaseObject
public SimpleAuxiliaryDatabaseObject(Namespace namespace, java.lang.String[] createStrings, java.lang.String[] dropStrings, java.util.Set<java.lang.String> dialectScopes)
-
SimpleAuxiliaryDatabaseObject
public SimpleAuxiliaryDatabaseObject(java.util.Set<java.lang.String> dialectScopes, java.lang.String catalogName, java.lang.String schemaName, java.lang.String[] createStrings, java.lang.String[] dropStrings)
-
-
Method Detail
-
sqlCreateStrings
@Deprecated public java.lang.String[] sqlCreateStrings(Dialect dialect)
Deprecated.Description copied from interface:AuxiliaryDatabaseObject
Gets the SQL strings for creating the database object.- Parameters:
dialect
- The dialect for which to generate the SQL creation strings- Returns:
- the SQL strings for creating the database object.
-
sqlCreateStrings
public java.lang.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
@Deprecated public java.lang.String[] sqlDropStrings(Dialect dialect)
Deprecated.Description copied from interface:AuxiliaryDatabaseObject
Gets the SQL strings for dropping the database object.- Parameters:
dialect
- The dialect for which to generate the SQL drop strings- Returns:
- the SQL strings for dropping the database object.
-
sqlDropStrings
public java.lang.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 java.lang.String getCatalogName()
-
getSchemaName
protected java.lang.String getSchemaName()
-
-