Determining If a Database Supports Transactions
try {
DatabaseMetaData dmd = connection.getMetaData();
if (dmd.supportsTransactions()) {
// Transactions are supported
} else {
// Transactions are not supported
}
} catch (SQLException e) {
}
Post a comment