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 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:
  • Constructor Details

    • 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)
    • SimpleAuxiliaryDatabaseObject

      public SimpleAuxiliaryDatabaseObject(Set<String> dialectScopes, String catalogName, String schemaName, String[] createStrings, String[] dropStrings)
  • Method Details

    • 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()