public class TypeConfiguration extends java.lang.Object implements SessionFactoryObserver, java.io.Serializable
TypeConfigurationAware
interface.Constructor and Description |
---|
TypeConfiguration() |
Modifier and Type | Method and Description |
---|---|
BasicTypeRegistry |
getBasicTypeRegistry() |
java.util.Map<java.lang.String,java.lang.String> |
getImportMap() |
JavaTypeDescriptorRegistry |
getJavaTypeDescriptorRegistry() |
MetadataBuildingContext |
getMetadataBuildingContext()
Obtain the MetadataBuildingContext currently scoping the
TypeConfiguration.
|
ServiceRegistry |
getServiceRegistry()
Obtain the ServiceRegistry scoped to the TypeConfiguration.
|
SessionFactoryImplementor |
getSessionFactory()
Obtain the SessionFactory currently scoping the TypeConfiguration.
|
SqlTypeDescriptorRegistry |
getSqlTypeDescriptorRegistry() |
TypeResolver |
getTypeResolver()
Deprecated.
(since 5.3) No replacement, access to and handling of Types will be much different in 6.0
|
java.lang.String |
getUuid() |
void |
scope(MetadataBuildingContext metadataBuildingContext) |
MetamodelImplementor |
scope(SessionFactoryImplementor sessionFactory,
BootstrapContext bootstrapContext) |
void |
sessionFactoryClosed(SessionFactory factory)
Callback to indicate that the given factory has been closed.
|
void |
sessionFactoryCreated(SessionFactory factory)
Callback to indicate that the given factory has been created and is now ready for use.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sessionFactoryClosing
public java.lang.String getUuid()
@Deprecated public TypeResolver getTypeResolver()
Type
resolver associated with this factory.public BasicTypeRegistry getBasicTypeRegistry()
public JavaTypeDescriptorRegistry getJavaTypeDescriptorRegistry()
public SqlTypeDescriptorRegistry getSqlTypeDescriptorRegistry()
public java.util.Map<java.lang.String,java.lang.String> getImportMap()
public MetadataBuildingContext getMetadataBuildingContext()
public void scope(MetadataBuildingContext metadataBuildingContext)
public MetamodelImplementor scope(SessionFactoryImplementor sessionFactory, BootstrapContext bootstrapContext)
public SessionFactoryImplementor getSessionFactory()
java.lang.IllegalStateException
- if the TypeConfiguration is currently not
associated with a SessionFactory (in "runtime stage").public ServiceRegistry getServiceRegistry()
public void sessionFactoryCreated(SessionFactory factory)
SessionFactoryObserver
sessionFactoryCreated
in interface SessionFactoryObserver
factory
- The factory initialized.public void sessionFactoryClosed(SessionFactory factory)
SessionFactoryObserver
sessionFactoryClosed
in interface SessionFactoryObserver
factory
- The factory closed.Copyright © 2001-2019 Red Hat, Inc. All Rights Reserved.