Class JdbcTransactionObjectSupport

    • Constructor Detail

      • JdbcTransactionObjectSupport

        public JdbcTransactionObjectSupport()
    • Method Detail

      • setConnectionHolder

        public void setConnectionHolder​(@Nullable
                                        ConnectionHolder connectionHolder)
        Sets the connection holder.
        Parameters:
        connectionHolder - The connection holder
      • getConnectionHolder

        @NonNull
        public ConnectionHolder getConnectionHolder()
        Retrieves the connection holder.
        Returns:
        The connection holder
      • hasConnectionHolder

        public boolean hasConnectionHolder()
        Returns:
        Whether a connection holder is present
      • setPreviousIsolationLevel

        public void setPreviousIsolationLevel​(@Nullable
                                              TransactionDefinition.Isolation previousIsolationLevel)
        Sets the previous isolation level.
        Parameters:
        previousIsolationLevel - The isolation level
      • setSavepointAllowed

        public void setSavepointAllowed​(boolean savepointAllowed)
        Sets whether save points are allowed.
        Parameters:
        savepointAllowed - True if they are allowed
      • isSavepointAllowed

        public boolean isSavepointAllowed()
        Returns:
        Whether the save point is allowed
      • flush

        public void flush()
        Description copied from interface: SmartTransactionObject
        Flush the underlying sessions to the datastore, if applicable: for example, all affected Hibernate/JPA sessions.
        Specified by:
        flush in interface java.io.Flushable
        Specified by:
        flush in interface SmartTransactionObject