FDO API Reference Feature Data Objects

IAcquireLockImp Class Reference

List of all members.

Detailed Description

The FdoIAcquireLock 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.

- FdoLockType_Shared

- FdoLockType_Exclusive

- FdoLockType_Transaction

- FdoLockType_LongTransactionExclusive

- FdoLockType_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 FdoILockConflictReader 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 FdoILockConflictReader list which contains all of the feature instances specified in the filter that are already locked by someone else. The command returns an empty FdoILockConflictReader list if all of the feature instances specified in the filter were successfully locked.


Public Member Functions

NAMESPACE_OSGEO_FDO_COMMANDS_LOCKING::ILockConflictReaderExecute ()
 Executes the AcquireLock command, returning an FdoILockConflictReader.
__property NAMESPACE_OSGEO_FDO_COMMANDS_LOCKING::LockStrategy get_LockStrategy ()
 Gets the FdoLockStrategy value.
__property NAMESPACE_OSGEO_FDO_COMMANDS_LOCKING::LockType get_LockType ()
 Gets the FdoLockType value.
__property System::Void set_LockStrategy (NAMESPACE_OSGEO_FDO_COMMANDS_LOCKING::LockStrategy value)
 Sets the FdoLockStrategy value (all or partial).
__property System::Void set_LockType (NAMESPACE_OSGEO_FDO_COMMANDS_LOCKING::LockType value)
 Sets the FdoLockType value.

Comments or suggestions? Send us feedback.