public static String getIsolationLevelString ( int level ) { switch ( level ) { case Connection . TRANSACTION_NONE : return "NONE (" + level + ' ' ; case Connection . TRANSACTION_READ_UNCOMMITTED : return "READ UNCOMMITTED (" + level + ' ' ; case Connection . TRANSACTION_READ_COMMITTED : return "READ COMMITTED (" + level + ' ' ; case Connection . TRANSACTION_REPEATABLE_READ : return "REPEATABLE READ (" + level + ' ' ; case Connection . TRANSACTION_SERIALIZABLE : return "SERIALIZABLE (" + level + ' ' ; case TRANSACTION_SNAPSHOT : case TRANSACTION_SS_SNAPSHOT : return "SNAPSHOT (" + level + ' ' ; } return "UNKNOWN ISOLATION LEVEL CONSTANT (" + level + ' ' ; }
Display the java . sql . Connection isolation level constant corresponding to the value supplied .