Interface GeneratorCreationContext

All Known Implementing Classes:
IdGeneratorCreationContext

@Incubating public interface GeneratorCreationContext
Access to information useful during Generator creation and initialization.
Since:
6.2
See Also:
  • Method Details

    • getDatabase

      Database getDatabase()
      View of the relational database objects (tables, sequences, etc.) and namespaces (catalogs and schemas). Generators may add new tables or sequences to the returned Database.
    • getServiceRegistry

      ServiceRegistry getServiceRegistry()
      Access to available services.
    • getDefaultCatalog

      String getDefaultCatalog()
      The default catalog name, if one.
    • getDefaultSchema

      String getDefaultSchema()
      The default schema name, if one.
    • getPersistentClass

      PersistentClass getPersistentClass()
      Mapping details for the entity.
    • getRootClass

      RootClass getRootClass()
      Mapping details for the root of the entity hierarchy.
    • getProperty

      Property getProperty()
      The entity identifier or id-bag property details.
    • getType

      default Type getType()
      Mapping details for the identifier type.
    • getSqlStringGenerationContext

      default SqlStringGenerationContext getSqlStringGenerationContext()
      The SqlStringGenerationContext to use when generating SQL.