private static final void parseIsolationLevel ( NavigableMap < String , Object > wProps , String vendorImplClassName ) { // Convert isolationLevel constant name to integer Object isolationLevel = wProps . get ( DataSourceDef . isolationLevel . name ( ) ) ; if ( isolationLevel instanceof String ) { isolationLevel = "TRANSACTION_READ_COMMITTED" . equals ( isolationLevel ) ? Connection . TRANSACTION_READ_COMMITTED : "TRANSACTION_REPEATABLE_READ" . equals ( isolationLevel ) ? Connection . TRANSACTION_REPEATABLE_READ : "TRANSACTION_SERIALIZABLE" . equals ( isolationLevel ) ? Connection . TRANSACTION_SERIALIZABLE : "TRANSACTION_READ_UNCOMMITTED" . equals ( isolationLevel ) ? Connection . TRANSACTION_READ_UNCOMMITTED : "TRANSACTION_NONE" . equals ( isolationLevel ) ? Connection . TRANSACTION_NONE : "TRANSACTION_SNAPSHOT" . equals ( isolationLevel ) ? ( vendorImplClassName . startsWith ( "com.microsoft." ) ? 4096 : 16 ) : isolationLevel ; wProps . put ( DataSourceDef . isolationLevel . name ( ) , isolationLevel ) ; } }
Utility method that converts transaction isolation level constant names to the corresponding int value .