org.apache.derby.iapi.services.locks
Interface CompatibilitySpace

All Known Implementing Classes:
LockSpace

public interface CompatibilitySpace

This interface must be implemented by objects returned from LockFactory.createCompatibilitySpace().

A CompatibilitySpace can have an owner (for instance a transaction). Currently, the owner is used by the virtual lock table to find out which transaction a lock belongs to. Some parts of the code also use the owner as a group object which guarantees that the lock is released on a commit or an abort. The owner has no special meaning to the lock manager and can be any object, including null.

See Also:
LockFactory.createCompatibilitySpace(org.apache.derby.iapi.services.locks.LockOwner)

Method Summary
 LockOwner getOwner()
          Gets an object representing the owner of the compatibility space.
 

Method Detail

getOwner

LockOwner getOwner()
Gets an object representing the owner of the compatibility space.

Returns:
object representing the owner of the compatibility space, or null if no owner has been specified.

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.