FDO .NET API Reference Feature Data Objects

OSGeo::FDO::Commands::Locking::IAcquireLockImp Class Reference
[OSGeo::FDO::Commands::Locking]

Inherits OSGeo::FDO::Commands::IFeatureCommandImp, and OSGeo::FDO::Commands::Locking::IAcquireLock.

Inheritance diagram for OSGeo::FDO::Commands::Locking::IAcquireLockImp:

Inheritance graph
[legend]
List of all members.

Detailed Description

The IAcquireLockImp class is a concrete implementation of IAcquireLock. The IAcquireLock interface locks feature instances of a given class that match the specified criteria. Input to the acquire lock command includes the name of the class, the lock type, the lock strategy, and filter criteria by which to identify the instances to be locked. The filter may be specified either as text or as an expression tree (most likely produced by a query builder). The lock type value is one of.

()

- LockType_Shared

- LockType_Exclusive

- LockType_Transaction

- LockType_LongTransactionExclusive

- LockType_AllLongTransactionExclusive

Remarks:
If the lock strategy has a value of all and at least one of the feature instances specified in the filter is locked by someone else, the command returns an ILockConflictReader list which contains all of the feature instances specified in the filter.
If the lock strategy has a value of partial, the command returns an ILockConflictReader list which contains all of the feature instances specified in the filter that are already locked by someone else. The command returns an empty ILockConflictReader list if all of the feature instances specified in the filter were successfully locked.

Definition at line 55 of file mgIAcquireLockImp.h.


Public Member Functions

OSGeo::FDO::Commands::Locking::ILockConflictReaderExecute ()
 Executes the AcquireLock command, returning an ILockConflictReader.
__property OSGeo::FDO::Commands::Locking::LockStrategy get_LockStrategy ()
 Gets the LockStrategy value.
__property OSGeo::FDO::Commands::Locking::LockType get_LockType ()
 Gets the LockType value.
__property System::Void set_LockStrategy (OSGeo::FDO::Commands::Locking::LockStrategy value)
 Sets the LockStrategy value (all or partial).
__property System::Void set_LockType (OSGeo::FDO::Commands::Locking::LockType value)
 Sets the LockType value.

Comments or suggestions? Send us feedback.