com.esri.arcgis.geodatabase
Class IFileDataLockProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.geodatabase.IFileDataLockProxy
All Implemented Interfaces:
IFileDataLock, Externalizable, Serializable

public class IFileDataLockProxy
extends com.esri.arcgis.interop.Dispatch
implements IFileDataLock, Serializable

Provides access to file data sources data lock functionality.

Product Availability

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

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  IFileDataLockProxy()
           
  IFileDataLockProxy(Object obj)
           
protected IFileDataLockProxy(Object obj, String iid)
           
 
Method Summary
 void acquireFileLock(int lockType)
          Acquire a file data lock.
 void addListener(String iidStr, Object theListener, Object theSource)
           
 void changeFileLock(int lockType)
          Change the file data lock type.
 int getLockType()
          Get the lock type.
 void releaseFileLock()
          Release a file data lock.
 void removeListener(String iidStr, Object theListener)
           
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

IFileDataLockProxy

public IFileDataLockProxy()

IFileDataLockProxy

public IFileDataLockProxy(Object obj)
                   throws IOException
Throws:
IOException

IFileDataLockProxy

protected IFileDataLockProxy(Object obj,
                             String iid)
                      throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

acquireFileLock

public 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

Specified by:
acquireFileLock in interface IFileDataLock
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

public 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

Specified by:
releaseFileLock in interface IFileDataLock
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

changeFileLock

public 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

Specified by:
changeFileLock in interface IFileDataLock
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

public 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

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