Package org.hibernate.engine.query.spi
Class NativeQueryInterpreterInitiator
- java.lang.Object
-
- org.hibernate.engine.query.spi.NativeQueryInterpreterInitiator
-
- All Implemented Interfaces:
ServiceInitiator<NativeQueryInterpreter>
,SessionFactoryServiceInitiator<NativeQueryInterpreter>
public class NativeQueryInterpreterInitiator extends java.lang.Object implements SessionFactoryServiceInitiator<NativeQueryInterpreter>
-
-
Field Summary
Fields Modifier and Type Field Description static NativeQueryInterpreterInitiator
INSTANCE
Singleton access
-
Constructor Summary
Constructors Constructor Description NativeQueryInterpreterInitiator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<NativeQueryInterpreter>
getServiceInitiated()
Obtains the service role initiated by this initiator.NativeQueryInterpreter
initiateService(SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions, ServiceRegistryImplementor registry)
Initiates the managed service.NativeQueryInterpreter
initiateService(SessionFactoryServiceInitiatorContext context)
Initiates the managed service.
-
-
-
Field Detail
-
INSTANCE
public static final NativeQueryInterpreterInitiator INSTANCE
Singleton access
-
-
Method Detail
-
initiateService
public NativeQueryInterpreter initiateService(SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions, ServiceRegistryImplementor registry)
Description copied from interface:SessionFactoryServiceInitiator
Initiates the managed service. Note for implementors: signature is guaranteed to change once redesign of SessionFactory building is complete- Specified by:
initiateService
in interfaceSessionFactoryServiceInitiator<NativeQueryInterpreter>
- Parameters:
sessionFactory
- The session factory. Note the the session factory is still in flux; care needs to be taken in regards to what you call.sessionFactoryOptions
- Options specified for building the SessionFactoryregistry
- The service registry. Can be used to locate services needed to fulfill initiation.- Returns:
- The initiated service.
-
initiateService
public NativeQueryInterpreter initiateService(SessionFactoryServiceInitiatorContext context)
Description copied from interface:SessionFactoryServiceInitiator
Initiates the managed service. Note for implementors: signature is guaranteed to change once redesign of SessionFactory building is complete- Specified by:
initiateService
in interfaceSessionFactoryServiceInitiator<NativeQueryInterpreter>
- Parameters:
context
- Access to initialization contextual info- Returns:
- The initiated service.
-
getServiceInitiated
public java.lang.Class<NativeQueryInterpreter> getServiceInitiated()
Description copied from interface:ServiceInitiator
Obtains the service role initiated by this initiator. Should be unique within a registry- Specified by:
getServiceInitiated
in interfaceServiceInitiator<NativeQueryInterpreter>
- Returns:
- The service role.
-
-