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

pack-priv Class SessionFactoryObserverForNamedQueryValidation

extends Object
implements SessionFactoryObserver
Class Inheritance
All Implemented Interfaces
org.hibernate.SessionFactoryObserver, java.io.Serializable
Imports
org.hibernate.SessionFactory, .SessionFactoryObserver, org.hibernate.boot.Metadata, org.hibernate.boot.spi.MetadataImplementor, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.query.spi.QueryEngine

Responsible for triggering named query validation when the SessionFactory is created.

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 final Metadata
metadata

Deprecated as a consequence of Metadata being deprecated.

Constructor Summary

AccessConstructor and Description
pack-priv
SessionFactoryObserverForNamedQueryValidation(MetadataImplementor metadata)

Deprecated as a consequence of MetadataImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
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

metadataback to summary
private final Metadata metadata

Deprecated

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

Constructor Detail

SessionFactoryObserverForNamedQueryValidationback to summary
pack-priv SessionFactoryObserverForNamedQueryValidation(MetadataImplementor metadata)

Deprecated

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

Method Detail

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