Logo Search packages:      
Sourcecode: mysql-connector-java version File versions

int com::mysql::jdbc::DatabaseMetaData::getDefaultTransactionIsolation (  )  throws SQLException [inline]

What's the database's default transaction isolation level? The values are defined in java.sql.Connection.

Returns:
the default isolation level
Exceptions:
SQLException if a database access error occurs
See also:
Connection

Definition at line 1340 of file DatabaseMetaData.java.

References conn, and com::mysql::jdbc::Connection::supportsIsolationLevel().

                                                                    {
        if (this.conn.supportsIsolationLevel()) {
            return java.sql.Connection.TRANSACTION_READ_COMMITTED;
        }

        return java.sql.Connection.TRANSACTION_NONE;
    }


Generated by  Doxygen 1.6.0   Back to index