* Test parameter override from int primitive to java.lang.Integer * * Test return value override (stipulated by the Java method rather than * in the function declaration. Seems to be that way according to the * SQL-2003 spec). * * Test function call within function call and function that returns an object * rather than a primitive to reflect null values.
* Test parameter override from int primitive to java.lang.Integer Test * return value override (stipulated by the Java method rather than in * the function declaration. Seems to be that way according to the * SQL-2003 spec). Test function call within function call and function * that returns an object rather than a primitive to reflect null * values.
	public void testInt()	throws SQLException	{		System.out.println("*** testInt()");		/*		 * Test parameter override from int primitive to java.lang.Integer		 *		 * Test return value override (stipulated by the Java method rather than		 * in the function declaration. Seems to be that way according to the		 * SQL-2003 spec).		 *		 * Test function call within function call and function that returns an object		 * rather than a primitive to reflect null values.		 */		Statement stmt = m_connection.createStatement();				ResultSet rs = stmt.executeQuery("SELECT java_addOne(java_addOne(54)), nullOnEven(1), nullOnEven(2)");		if(!rs.next())			System.out.println("Unable to position ResultSet");		else		{			System.out.println("54 + 2 = " + rs.getInt(1));			int n = rs.getInt(2);			System.out.println("nullOnEven(1) = " + (rs.wasNull() ? "null" : Integer.toString(n)));			n = rs.getInt(3);			System.out.println("nullOnEven(2) = " + (rs.wasNull() ? "null" : Integer.toString(n)));		}		rs.close();		stmt.close();	}