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 NativeQueryInterpreterInitiatorINSTANCESingleton 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.NativeQueryInterpreterinitiateService(SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions, ServiceRegistryImplementor registry)Initiates the managed service.NativeQueryInterpreterinitiateService(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:SessionFactoryServiceInitiatorInitiates the managed service. Note for implementors: signature is guaranteed to change once redesign of SessionFactory building is complete- Specified by:
initiateServicein 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:SessionFactoryServiceInitiatorInitiates the managed service. Note for implementors: signature is guaranteed to change once redesign of SessionFactory building is complete- Specified by:
initiateServicein interfaceSessionFactoryServiceInitiator<NativeQueryInterpreter>- Parameters:
context- Access to initialization contextual info- Returns:
- The initiated service.
-
getServiceInitiated
public java.lang.Class<NativeQueryInterpreter> getServiceInitiated()
Description copied from interface:ServiceInitiatorObtains the service role initiated by this initiator. Should be unique within a registry- Specified by:
getServiceInitiatedin interfaceServiceInitiator<NativeQueryInterpreter>- Returns:
- The service role.
-
-