Package org.hibernate.generator
Interface GeneratorCreationContext
- All Known Subinterfaces:
CustomIdGeneratorCreationContext
- All Known Implementing Classes:
IdGeneratorCreationContext
@Incubatingpublic interfaceGeneratorCreationContext
Access to information useful duringGenerator creation and initialization.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DatabasegetDatabase()View of the relational database objects (tables, sequences, ...) and namespaces (catalogs and schemas).StringgetDefaultCatalog()The default catalog name, if one.StringgetDefaultSchema()The default schema name, if one.PersistentClassgetPersistentClass()Mapping details for the entity; may be null in the case of and id-bag id generator.PropertygetProperty()The entity identifier or id-bag property details.ServiceRegistrygetServiceRegistry()Access to available services.
Method Detail
getDatabase
Database getDatabase()
View of the relational database objects (tables, sequences, ...) and namespaces (catalogs and schemas).
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; may be null in the case of and id-bag id generator.
getProperty
Property getProperty()
The entity identifier or id-bag property details.