org.geotools.data
Interface FeatureLock

All Known Implementing Classes:
DefaultFeatureLock, LockRequest

public interface FeatureLock

Used to lock features when used with LockingDataSource.

A FeatureLockFactory is used to generate FeatureLocks.

A FeatureLock representing the Current Transaction has been provided.

Jody - I have a slightly more consistent specification of this idea in GeoAPI that should be ported back over.

Version:
$Id: FeatureLock.java 17702 2006-01-23 00:08:55Z desruisseaux $
Author:
Jody Garnett, Refractions Research, Inc.
See Also:
Database Reseach, Transactional WFS Design, Design Implications, FeatureLockFactory

Field Summary
static FeatureLock TRANSACTION
          FeatureLock representing Transaction duration locking When this FeatureLock is used locks are expected to last until the current Transasction ends with a commit() or rollback().
 
Method Summary
 java.lang.String getAuthorization()
          LockId used for transaction authorization.
 long getDuration()
          Time from now the lock will expire
 

Field Detail

TRANSACTION

public static final FeatureLock TRANSACTION
FeatureLock representing Transaction duration locking

When this FeatureLock is used locks are expected to last until the current Transasction ends with a commit() or rollback().

Method Detail

getAuthorization

public java.lang.String getAuthorization()
LockId used for transaction authorization.

Returns:
A string of the LockId.

getDuration

public long getDuration()
Time from now the lock will expire

Returns:
A long of the time till the lock expires.


Copyright © GeoTools. All Rights Reserved.