Java Code Examples for org.hibernate.engine.jdbc.dialect.spi.DialectFactory

The following examples show how to use org.hibernate.engine.jdbc.dialect.spi.DialectFactory. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: quarkus   Source File: DialectFactoryInitiator.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public Class<DialectFactory> getServiceInitiated() {
    return DialectFactory.class;
}
 
Example 2
Source Project: quarkus   Source File: DialectFactoryInitiator.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public DialectFactory initiateService(Map configurationValues, ServiceRegistryImplementor registry) {
    return new RecordingDialectFactory();
}
 
Example 3
Source Project: quarkus   Source File: FastBootMetadataBuilder.java    License: Apache License 2.0 4 votes vote down vote up
private Dialect extractDialect() {
    DialectFactory service = standardServiceRegistry.getService(DialectFactory.class);
    RecordingDialectFactory casted = (RecordingDialectFactory) service;
    return casted.getDialect();
}
 
Example 4
Source Project: lams   Source File: DialectFactoryInitiator.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public Class<DialectFactory> getServiceInitiated() {
	return DialectFactory.class;
}
 
Example 5
Source Project: lams   Source File: DialectFactoryInitiator.java    License: GNU General Public License v2.0 4 votes vote down vote up
@Override
public DialectFactory initiateService(Map configurationValues, ServiceRegistryImplementor registry) {
	return new DialectFactoryImpl();
}