Subject | Setting multiple TransactionParameterBuffer constants on a pooled FBSimpleDataSource |
---|---|
Author | |
Post date | 2018-02-26T22:48:34Z |
I can see that FBSimpleDataSource supports set/get of TPB Parameters via setTpbMapping() and setTransactionParameters(). How do I set the following parameters on an FBSimpleDataSource connection?
I need to set the following:
isc_tpb_nowait, isc_tpb_read_committed, isc_tpb_no_rec_version
I've already figured out that these are int constants found in the TransactionParameterBufferImpl class but I can't figure out how to set them into connection properties at runtime.
It looks like I can setup a Properties bundle or define one on the fly. But how do I specify a collection of parameters?
It looks like I'd want:TransactionParameterBufferImpl.NOWAIT, TransactionParameterBufferImpl.READ_COMMITTED and TransactionParameterBufferImpl.NO_REC_VERSION.
I'm using HikariCP for my Connection Pool.