Package org.firebirdsql.jdbc
Interface JdbcVersionSupport
- All Known Implementing Classes:
Jdbc42VersionSupport
public interface JdbcVersionSupport
Interface to mediate between differences in JDBC versions.
- Since:
- 3.0
- Author:
- Mark Rotteveel
-
Method Summary
Modifier and TypeMethodDescriptioncreateBatchUpdateException(String reason, String SQLState, int vendorCode, long[] updateCounts, Throwable cause) Constructs aBatchUpdateException.
-
Method Details
-
createBatchUpdateException
BatchUpdateException createBatchUpdateException(String reason, String SQLState, int vendorCode, long[] updateCounts, Throwable cause) Constructs aBatchUpdateException.For JDBC versions < 4.2, the
updateCountscan be converted to integers without taking overflow into account.- Parameters:
reason- A description of the errorSQLState- SQL state of the errorvendorCode- Vendor specific error code (use0if there is no specific error code)updateCounts- An array oflongupdate countscause- Underlying cause (may benull).- Returns:
- The created BatchUpdateException.
-