@Override protected Connection getConnectionFromDriver(Properties props) throws SQLException { String url = getUrl(); Assert.state(url != null, "'url' not set"); if (logger.isDebugEnabled()) { logger.debug("Creating new JDBC DriverManager Connection to [" + url + "]"); } return getConnectionFromDriverManager(url, props); }
@Override protected Connection getConnectionFromDriverManager(final String url, final Properties props) throws SQLException { Connection connection = super.getConnectionFromDriverManager(url, props); connection.setReadOnly(true); return connection; } }
@Override protected Connection getConnectionFromDriver(Properties props) throws SQLException { String url = getUrl(); Assert.state(url != null, "'url' not set"); if (logger.isDebugEnabled()) { logger.debug("Creating new JDBC DriverManager Connection to [" + url + "]"); } return getConnectionFromDriverManager(url, props); }
@Override protected Connection getConnectionFromDriver(Properties props) throws SQLException { String url = getUrl(); if (logger.isDebugEnabled()) { logger.debug("Creating new JDBC DriverManager Connection to [" + url + "]"); } return getConnectionFromDriverManager(url, props); }