Top Description Fields Constructors Methods
org.hibernate.engine.jdbc.internal

public Class SqlStatementLoggerInitiator

extends Object
implements StandardServiceInitiator<SqlStatementLogger>
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.registry.StandardServiceInitiator, org.hibernate.service.spi.ServiceInitiator
Imports
java.util.Map, org.hibernate.boot.registry.StandardServiceInitiator, org.hibernate.engine.jdbc.spi.SqlStatementLogger, org.hibernate.service.spi.ServiceRegistryImplementor

The SqlStatementLogger is accessible via org.hibernate.engine.jdbc.spi.JdbcServices, but during service initialization, it might be needed before the JdbcServices service is initialized.

Field Summary

Modifier and TypeField and Description
public static final SqlStatementLoggerInitiator
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Class<SqlStatementLogger>
getServiceInitiated()

Implements org.hibernate.service.spi.ServiceInitiator.getServiceInitiated.

Obtains the service role initiated by this initiator.
public SqlStatementLogger
initiateService(Map<String, Object>
The configuration values in effect
configValues
,
ServiceRegistryImplementor
The service registry. Can be used to locate services needed to fulfill initiation.
registry
)

Implements org.hibernate.boot.registry.StandardServiceInitiator.initiateService.

Initiates the managed service.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final SqlStatementLoggerInitiator INSTANCE
OLD_LOG_SLOW_QUERYback to summary
private static final String OLD_LOG_SLOW_QUERY

Constructor Detail

SqlStatementLoggerInitiatorback to summary
public SqlStatementLoggerInitiator()

Method Detail

getServiceInitiatedback to summary
public Class<SqlStatementLogger> getServiceInitiated()

Implements org.hibernate.service.spi.ServiceInitiator.getServiceInitiated.

Doc from org.hibernate.service.spi.ServiceInitiator.getServiceInitiated.

Obtains the service role initiated by this initiator. Should be unique within a registry

Returns:Class<SqlStatementLogger>

The service role.

Annotations
@Override
initiateServiceback to summary
public SqlStatementLogger initiateService(Map<String, Object> configValues, ServiceRegistryImplementor registry)

Implements org.hibernate.boot.registry.StandardServiceInitiator.initiateService.

Doc from org.hibernate.boot.registry.StandardServiceInitiator.initiateService.

Initiates the managed service.

Parameters
configValues:Map<String, Object>

The configuration values in effect

registry:ServiceRegistryImplementor

The service registry. Can be used to locate services needed to fulfill initiation.

Returns:SqlStatementLogger

The initiated service.

Annotations
@Override