Code example for Connection

Methods: closeprepareCall

0
	} 
 
	public void testConnection(final Connection conn) throws SQLException {
		assertNotNull(conn);
 
		final PreparedStatement ps = conn.prepareCall("select 'y' from dual");
		final ResultSet rs = ps.executeQuery();
		rs.next();
		final String txt = rs.getString(1);
		conn.close();
		System.out.println(txt);
		assertTrue("y".equals(txt));
		// logger.exiting(this.getClass().getName(), "testConnection"); 
 
	} 
 
	private void getConnections(final int count) {
		long ela;
		for (int i = 1; i <= count; i++) {
			Connection conn;