Package org.hibernate.testing.util.uuid
Class IdGeneratorCreationContext
- java.lang.Object
-
- org.hibernate.testing.util.uuid.IdGeneratorCreationContext
-
- All Implemented Interfaces:
GeneratorCreationContext
,CustomIdGeneratorCreationContext
public class IdGeneratorCreationContext extends Object implements CustomIdGeneratorCreationContext
-
-
Constructor Summary
Constructors Constructor Description IdGeneratorCreationContext(MetadataImplementor domainModel, RootClass entityMapping)
IdGeneratorCreationContext(ServiceRegistry serviceRegistry, MetadataImplementor domainModel, RootClass entityMapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Database
getDatabase()
View of the relational database objects (tables, sequences, ...) and namespaces (catalogs and schemas).String
getDefaultCatalog()
The default catalog name, if one.String
getDefaultSchema()
The default schema name, if one.IdentifierGeneratorFactory
getIdentifierGeneratorFactory()
PersistentClass
getPersistentClass()
Mapping details for the entity; may be null in the case of and id-bag id generator.Property
getProperty()
The entity identifier or id-bag property details.RootClass
getRootClass()
ServiceRegistry
getServiceRegistry()
Access to available services.
-
-
-
Constructor Detail
-
IdGeneratorCreationContext
public IdGeneratorCreationContext(ServiceRegistry serviceRegistry, MetadataImplementor domainModel, RootClass entityMapping)
-
IdGeneratorCreationContext
public IdGeneratorCreationContext(MetadataImplementor domainModel, RootClass entityMapping)
-
-
Method Detail
-
getIdentifierGeneratorFactory
public IdentifierGeneratorFactory getIdentifierGeneratorFactory()
- Specified by:
getIdentifierGeneratorFactory
in interfaceCustomIdGeneratorCreationContext
-
getRootClass
public RootClass getRootClass()
- Specified by:
getRootClass
in interfaceCustomIdGeneratorCreationContext
-
getDatabase
public Database getDatabase()
Description copied from interface:GeneratorCreationContext
View of the relational database objects (tables, sequences, ...) and namespaces (catalogs and schemas).- Specified by:
getDatabase
in interfaceGeneratorCreationContext
-
getServiceRegistry
public ServiceRegistry getServiceRegistry()
Description copied from interface:GeneratorCreationContext
Access to available services.- Specified by:
getServiceRegistry
in interfaceGeneratorCreationContext
-
getDefaultCatalog
public String getDefaultCatalog()
Description copied from interface:GeneratorCreationContext
The default catalog name, if one.- Specified by:
getDefaultCatalog
in interfaceGeneratorCreationContext
-
getDefaultSchema
public String getDefaultSchema()
Description copied from interface:GeneratorCreationContext
The default schema name, if one.- Specified by:
getDefaultSchema
in interfaceGeneratorCreationContext
-
getPersistentClass
public PersistentClass getPersistentClass()
Description copied from interface:GeneratorCreationContext
Mapping details for the entity; may be null in the case of and id-bag id generator.- Specified by:
getPersistentClass
in interfaceGeneratorCreationContext
-
getProperty
public Property getProperty()
Description copied from interface:GeneratorCreationContext
The entity identifier or id-bag property details.- Specified by:
getProperty
in interfaceGeneratorCreationContext
-
-