i have a view in PostgreSQL 9.1 with a column of type bigint. This type should be mapped to `Long` in Java but actually is mapped to `BigInteger`. So 

```
resultSet.getLong(columnPos)

```

results in an ArrayIndexOutOfBoundsException. 

```
resultSet.getBigInteger(columnPos)

```

or

```
resultSet.get(columnPos)

```

both with a following `toString` and parse work fine.
What would be the correct handling of this? Should i first get the `BigInteger`, call `toString` and parse the `Long`? Or Is there a better approach to tell the `ResultSet` or the `ScrollableResults` the correct Java column type?

Thank you.