Switch call to method that uses int lengths instead of long, since they are not supported by JDBC 3.0