Maybe there's a neat way of doing this in the driver I'm not aware of, but usually this is left to the job of a higher level library or class you write yourself.To shamelessly plug my own, Jdbi handles this nicely:http://jdbi.org/apidocs/org/jdbi/v3/core/Handle.html#inTransaction-org.jdbi.v3.core.transaction.TransactionIsolationLevel-org.jdbi.v3.core.HandleCallback-
pgsql-jdbc by date:
Соглашаюсь с условиями обработки персональных данных