Class ContainerLocking3

    • Constructor Detail

      • ContainerLocking3

        protected ContainerLocking3​(LockFactory lf)
    • Method Detail

      • lockContainer

        public boolean lockContainer​(Transaction t,
                                     ContainerHandle container,
                                     boolean waitForLock,
                                     boolean forUpdate)
                              throws StandardException
        Obtain a Container shared or exclusive lock until the end of the nested transaction.
        Specified by:
        lockContainer in interface LockingPolicy
        Overrides:
        lockContainer in class NoLocking
        Parameters:
        t - Transaction to associate lock with.
        container - Container to lock.
        waitForLock - Should lock request wait until granted?
        forUpdate - Should container be locked for update, or read?
        Returns:
        true if the lock was obtained, false if it wasn't. False should only be returned if the waitForLock policy was set to "false," and the lock was unavailable.
        Throws:
        StandardException - Standard Derby error policy
        See Also:
        ContainerHandle