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 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.IdentifierGeneratorFactorygetIdentifierGeneratorFactory()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.RootClassgetRootClass()ServiceRegistrygetServiceRegistry()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:
getIdentifierGeneratorFactoryin interfaceCustomIdGeneratorCreationContext
-
getRootClass
public RootClass getRootClass()
- Specified by:
getRootClassin interfaceCustomIdGeneratorCreationContext
-
getDatabase
public Database getDatabase()
Description copied from interface:GeneratorCreationContextView of the relational database objects (tables, sequences, ...) and namespaces (catalogs and schemas).- Specified by:
getDatabasein interfaceGeneratorCreationContext
-
getServiceRegistry
public ServiceRegistry getServiceRegistry()
Description copied from interface:GeneratorCreationContextAccess to available services.- Specified by:
getServiceRegistryin interfaceGeneratorCreationContext
-
getDefaultCatalog
public String getDefaultCatalog()
Description copied from interface:GeneratorCreationContextThe default catalog name, if one.- Specified by:
getDefaultCatalogin interfaceGeneratorCreationContext
-
getDefaultSchema
public String getDefaultSchema()
Description copied from interface:GeneratorCreationContextThe default schema name, if one.- Specified by:
getDefaultSchemain interfaceGeneratorCreationContext
-
getPersistentClass
public PersistentClass getPersistentClass()
Description copied from interface:GeneratorCreationContextMapping details for the entity; may be null in the case of and id-bag id generator.- Specified by:
getPersistentClassin interfaceGeneratorCreationContext
-
getProperty
public Property getProperty()
Description copied from interface:GeneratorCreationContextThe entity identifier or id-bag property details.- Specified by:
getPropertyin interfaceGeneratorCreationContext
-
-