Using setLong with large parameter values

Implementations of the PreparedStatement.setLong method set a parameter value to a SQL BIGINT datatype. Most Adaptive Server databases do not have an 8-byte BIGINT datatype. If a parameter value requires more than 4 bytes of a BIGINT, using setLong can result in an overflow exception.