Code example for Connection

Methods: createStatement

0
		return ret;
	} 
 
	private void handleNewConnection(Connection con) throws SQLException {
		if (newConnectionSql != null && newConnectionSql.trim().length() > 0) {
			Statement st = con.createStatement();
			try { 
				st.execute(newConnectionSql);
			} finally { 
				try { 
					st.close();
				} catch (SQLException ex) {
					LOG.error("Error closing st.", ex);
				} 
			} 
		} 
	} 
 
	@SuppressWarnings("unchecked") 
	private Map<TxEntry, Connection> lookupConnections() {
		Context ctx = getContext();