Enum PhysicalConnectionHandlingMode

    • Enum Constant Detail

      • IMMEDIATE_ACQUISITION_AND_HOLD

        public static final PhysicalConnectionHandlingMode IMMEDIATE_ACQUISITION_AND_HOLD
        The Connection will be acquired as soon as the session is opened and held until the session is closed. This is the only valid combination including immediate acquisition of the Connection
      • DELAYED_ACQUISITION_AND_HOLD

        public static final PhysicalConnectionHandlingMode DELAYED_ACQUISITION_AND_HOLD
        The Connection will be acquired as soon as it is needed and then held until the session is closed. This is the original Hibernate behavior.
      • DELAYED_ACQUISITION_AND_RELEASE_AFTER_STATEMENT

        public static final PhysicalConnectionHandlingMode DELAYED_ACQUISITION_AND_RELEASE_AFTER_STATEMENT
        The Connection will be acquired as soon as it is needed; it will be released after each statement is executed.
      • DELAYED_ACQUISITION_AND_RELEASE_BEFORE_TRANSACTION_COMPLETION

        public static final PhysicalConnectionHandlingMode DELAYED_ACQUISITION_AND_RELEASE_BEFORE_TRANSACTION_COMPLETION
        The Connection will be acquired as soon as it is needed; it will be released before commit or rollback.
      • DELAYED_ACQUISITION_AND_RELEASE_AFTER_TRANSACTION

        public static final PhysicalConnectionHandlingMode DELAYED_ACQUISITION_AND_RELEASE_AFTER_TRANSACTION
        The Connection will be acquired as soon as it is needed; it will be released after each transaction is completed.