Top Description Fields Constructors Methods
org.hibernate.boot.internal

pack-priv Class SessionFactoryObserverForSchemaExport

extends Object
implements SessionFactoryObserver
Class Inheritance
All Implemented Interfaces
org.hibernate.SessionFactoryObserver, java.io.Serializable
Imports
org.hibernate.SessionFactory, .SessionFactoryObserver, org.hibernate.boot.spi.MetadataImplementor, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.service.spi.ServiceRegistryImplementor, org.hibernate.tool.schema.spi.DelayedDropAction, .SchemaManagementToolCoordinator

Responsible for calling the SchemaManagementToolCoordinator when the SessionFactory is created and destroyed.

Implementation Note

This was added in order to clean up the constructor of org.hibernate.internal.SessionFactoryImpl, which was doing too many things.

Author
Gavin King

Field Summary

Modifier and TypeField and Description
private DelayedDropAction
private final MetadataImplementor
metadata

Deprecated as a consequence of MetadataImplementor being deprecated.

Constructor Summary

AccessConstructor and Description
pack-priv
SessionFactoryObserverForSchemaExport(MetadataImplementor metadata)

Deprecated as a consequence of MetadataImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
private static ServiceRegistryImplementor
public void
sessionFactoryClosing(SessionFactory
The factory about to be closed.
factory
)

Overrides default org.hibernate.SessionFactoryObserver.sessionFactoryClosing.

Callback to indicate that the given factory is about to close.
public void
sessionFactoryCreated(SessionFactory
The factory initialized.
factory
)

Overrides default org.hibernate.SessionFactoryObserver.sessionFactoryCreated.

Callback to indicate that the given factory has been created and is now ready for use.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delayedDropActionback to summary
private DelayedDropAction delayedDropAction
metadataback to summary
private final MetadataImplementor metadata

Deprecated

as a consequence of MetadataImplementor being deprecated. See corresponding docs for further information.

Constructor Detail

SessionFactoryObserverForSchemaExportback to summary
pack-priv SessionFactoryObserverForSchemaExport(MetadataImplementor metadata)

Deprecated

as a consequence of MetadataImplementor being deprecated. See corresponding docs for further information.

Method Detail

getRegistryback to summary
private static ServiceRegistryImplementor getRegistry(SessionFactory factory)
sessionFactoryClosingback to summary
public void sessionFactoryClosing(SessionFactory factory)

Overrides default org.hibernate.SessionFactoryObserver.sessionFactoryClosing.

Doc from org.hibernate.SessionFactoryObserver.sessionFactoryClosing.

Callback to indicate that the given factory is about to close. The passed factory reference should be usable since it is only about to close.

Parameters
factory:SessionFactory

The factory about to be closed.

Annotations
@Override
sessionFactoryCreatedback to summary
public void sessionFactoryCreated(SessionFactory factory)

Overrides default org.hibernate.SessionFactoryObserver.sessionFactoryCreated.

Doc from org.hibernate.SessionFactoryObserver.sessionFactoryCreated.

Callback to indicate that the given factory has been created and is now ready for use.

Parameters
factory:SessionFactory

The factory initialized.

Annotations
@Override