if (key.equals(ISC_TPB_CONSISTENCY) || key.equals(ISC_TPB_READ_COMMITTED) || key.equals(ISC_TPB_CONCURRENCY) || key.equals(ISC_TPB_REC_VERSION) || key.equals(ISC_TPB_NO_REC_VERSION) || key.equals(ISC_TPB_WAIT) || key.equals(ISC_TPB_READ) || key.equals(ISC_TPB_WRITE)) { tpb.add(key); createArray(); return; } else { throw new IllegalArgumentException("Unrecognized Tpb parameter: " + key); }
switch(key.intValue()) { case ISCConstants.isc_tpb_concurrency: case ISCConstants.isc_tpb_consistency: case ISCConstants.isc_tpb_read_committed: case ISCConstants.isc_tpb_rec_version: case ISCConstants.isc_tpb_no_rec_version: case ISCConstants.isc_tpb_wait: case ISCConstants.isc_tpb_nowait: case ISCConstants.isc_tpb_lock_read: case ISCConstants.isc_tpb_lock_write: tpb.add(key); break;  case ISCConstants.isc_tpb_read: setReadOnly(true); break;  case ISCConstants.isc_tpb_write: setReadOnly(false); break;  default: throw new IllegalArgumentException( "Unrecognized Tpb parameter: " + key); }  createArray();
    public void add(Integer key)    {        if (key == null )         {            throw new IllegalArgumentException("Do not add null to Tpb");        } // end of if ()        if (tpb.contains(key))        {            return;        } // end of if ()        if (key.equals(ISC_TPB_CONSISTENCY)            || key.equals(ISC_TPB_READ_COMMITTED)            || key.equals(ISC_TPB_CONCURRENCY)            || key.equals(ISC_TPB_REC_VERSION)            || key.equals(ISC_TPB_NO_REC_VERSION)            || key.equals(ISC_TPB_WAIT)            || key.equals(ISC_TPB_READ)            || key.equals(ISC_TPB_WRITE))         {            tpb.add(key);            createArray();            return;        } // end of if ()        else        {            throw new IllegalArgumentException("Unrecognized Tpb parameter: " + key);        } // end of else    }