tpb.remove(ISC_TPB_READ_COMMITTED); tpb.remove(ISC_TPB_CONCURRENCY); tpb.remove(ISC_TPB_CONSISTENCY); tpb.remove(ISC_TPB_REC_VERSION); switch (isolation) { case ISCConstants.isc_tpb_read_committed: tpb.add(ISC_TPB_READ_COMMITTED); tpb.add(ISC_TPB_REC_VERSION); break; case ISCConstants.isc_tpb_concurrency: tpb.add(ISC_TPB_CONCURRENCY); break; case ISCConstants.isc_tpb_consistency: tpb.add(ISC_TPB_CONSISTENCY); break; default: break;
try { switch (isolation) { case ISCConstants.isc_tpb_read_committed: setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED); break; case ISCConstants.isc_tpb_concurrency: setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ); break; case ISCConstants.isc_tpb_consistency: setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED); break; default: break; } } catch(ResourceException rex) {   throw new IllegalArgumentException( "Specified transaction isolation is not supported.");
    public void setIscTransactionIsolation(int isolation) {        tpb.remove(ISC_TPB_READ_COMMITTED);        tpb.remove(ISC_TPB_CONCURRENCY);        tpb.remove(ISC_TPB_CONSISTENCY);        tpb.remove(ISC_TPB_REC_VERSION);        switch (isolation) {            case ISCConstants.isc_tpb_read_committed:                 tpb.add(ISC_TPB_READ_COMMITTED);                tpb.add(ISC_TPB_REC_VERSION);                break;            case ISCConstants.isc_tpb_concurrency:                 tpb.add(ISC_TPB_CONCURRENCY);                break;            case ISCConstants.isc_tpb_consistency:                 tpb.add(ISC_TPB_CONSISTENCY);                break;            default: break;        }        createArray();    }