To get an instance of ConnectionHolder. Will return a ConnectionHolder with or without wrapperparamconObject ConnectionparammcObject ManagedConnectionparamcriObject Connection Request InfoparamstatementWrapping Whether to wrap statement objects or not.returnConnectionHolder
Returns a DataSource instance.parammcfObject Managed Connection FactoryparamcmObject Connection ManagerreturnDataSource
Returns JDBC Objet Factory for JDBC 3.0 or JDBC 4.0 depending upon the jdbc version available in JDK.returnJdbcObjectsFactory _logger = LogDomains.getLogger(LogDomains.RSR_LOGGER); boolean jdbc40 = DataSourceObjectBuilder.isJDBC40(); JdbcObjectsFactory factory = null; try { if (jdbc40) { factory = (JdbcObjectsFactory) Class.forName("com.sun.gjc.spi.jdbc40.Jdbc40ObjectsFactory").newInstance(); } else { factory = (JdbcObjectsFactory) Class.forName("com.sun.gjc.spi.jdbc30.Jdbc30ObjectsFactory").newInstance(); } } catch (Exception e) { _logger.log(Level.WARNING, "jdbc.jdbc_factory_class_load_exception", e); } return factory;
_logger = LogDomains.getLogger(LogDomains.RSR_LOGGER); boolean jdbc40 = DataSourceObjectBuilder.isJDBC40(); JdbcObjectsFactory factory = null; try { if (jdbc40) { factory = (JdbcObjectsFactory) Class.forName("com.sun.gjc.spi.jdbc40.Jdbc40ObjectsFactory").newInstance(); } else { factory = (JdbcObjectsFactory) Class.forName("com.sun.gjc.spi.jdbc30.Jdbc30ObjectsFactory").newInstance(); } } catch (Exception e) { _logger.log(Level.WARNING, "jdbc.jdbc_factory_class_load_exception", e); } return factory;