public class TypeConfiguration extends Object implements SessionFactoryObserver, Serializable
TypeConfigurationAware
interface.Constructor and Description |
---|
TypeConfiguration() |
Modifier and Type | Method and Description |
---|---|
BasicTypeRegistry |
getBasicTypeRegistry() |
Map<String,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
|
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 String getUuid()
@Deprecated public TypeResolver getTypeResolver()
Type
resolver associated with this factory.public BasicTypeRegistry getBasicTypeRegistry()
public JavaTypeDescriptorRegistry getJavaTypeDescriptorRegistry()
public SqlTypeDescriptorRegistry getSqlTypeDescriptorRegistry()
public MetadataBuildingContext getMetadataBuildingContext()
public void scope(MetadataBuildingContext metadataBuildingContext)
public MetamodelImplementor scope(SessionFactoryImplementor sessionFactory, BootstrapContext bootstrapContext)
public SessionFactoryImplementor getSessionFactory()
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 © 2021 JBoss by Red Hat. All rights reserved.