com.esri.arcgis.geodatabase
Interface IFileDataLock

All Superinterfaces:
Serializable
All Known Implementing Classes:
IFileDataLockProxy

public interface IFileDataLock
extends Serializable

Provides access to file data sources data lock functionality.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void acquireFileLock(int lockType)
          Acquire a file data lock.
 void changeFileLock(int lockType)
          Change the file data lock type.
 int getLockType()
          Get the lock type.
 void releaseFileLock()
          Release a file data lock.
 

Method Detail

acquireFileLock

void acquireFileLock(int lockType)
                     throws IOException,
                            AutomationException
Acquire a file data lock.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
lockType - A com.esri.arcgis.system.esriLockMgrType constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

releaseFileLock

void releaseFileLock()
                     throws IOException,
                            AutomationException
Release a file data lock.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

changeFileLock

void changeFileLock(int lockType)
                    throws IOException,
                           AutomationException
Change the file data lock type.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
lockType - A com.esri.arcgis.system.esriLockMgrType constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLockType

int getLockType()
                throws IOException,
                       AutomationException
Get the lock type.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Returns:
A com.esri.arcgis.system.esriLockMgrType constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.