Search in sources :

Example 1 with OracleJDBCTypeFactory

use of org.geolatte.geom.codec.db.oracle.OracleJDBCTypeFactory in project hibernate-orm by hibernate.

the class OracleSDOSupport method mkSdoGeometryTypeDescriptor.

private SDOGeometryTypeDescriptor mkSdoGeometryTypeDescriptor(ServiceRegistry serviceRegistry) {
    final ConfigurationService cfgService = serviceRegistry.getService(ConfigurationService.class);
    final StrategySelector strategySelector = serviceRegistry.getService(StrategySelector.class);
    final ConnectionFinder connectionFinder = strategySelector.resolveStrategy(ConnectionFinder.class, cfgService.getSetting(HibernateSpatialConfigurationSettings.CONNECTION_FINDER, String.class, "org.geolatte.geom.codec.db.oracle.DefaultConnectionFinder"));
    log.connectionFinder(connectionFinder.getClass().getCanonicalName());
    return new SDOGeometryTypeDescriptor(new OracleJDBCTypeFactory(connectionFinder));
}
Also used : OracleJDBCTypeFactory(org.geolatte.geom.codec.db.oracle.OracleJDBCTypeFactory) ConfigurationService(org.hibernate.engine.config.spi.ConfigurationService) ConnectionFinder(org.geolatte.geom.codec.db.oracle.ConnectionFinder) StrategySelector(org.hibernate.boot.registry.selector.spi.StrategySelector)

Aggregations

ConnectionFinder (org.geolatte.geom.codec.db.oracle.ConnectionFinder)1 OracleJDBCTypeFactory (org.geolatte.geom.codec.db.oracle.OracleJDBCTypeFactory)1 StrategySelector (org.hibernate.boot.registry.selector.spi.StrategySelector)1 ConfigurationService (org.hibernate.engine.config.spi.ConfigurationService)1