public int getInteger ( String name , FastpathArg [ ] args ) throws SQLException { byte [ ] returnValue = fastpath ( name , args ) ; if ( returnValue == null ) { throw new PSQLException ( GT . tr ( "Fastpath call {0} - No result was returned and we expected an integer." , name ) , PSQLState . NO_DATA ) ; } if ( returnValue . length == 4 ) { return ByteConverter . int4 ( returnValue , 0 ) ; } else { throw new PSQLException ( GT . tr ( "Fastpath call {0} - No result was returned or wrong size while expecting an integer." , name ) , PSQLState . NO_DATA ) ; } }
This convenience method assumes that the return value is an integer .