|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.geodatabase.ILockInfoProxy
public class ILockInfoProxy
Provides access to members that supply lock information.
The ILockInfo interface provides the ability to detect what current users have version locks and if the lock is shared or exclusive. Locks imply that the users are currently editing the version or currently reconciling the version. This information can be used to determine if the version is available for editing, to be reconciled or to be reconciled against.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
ILockInfoProxy()
|
|
ILockInfoProxy(Object obj)
|
protected |
ILockInfoProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
int |
getLockType()
The type of lock the user acquired. |
String |
getUserName()
The name of the user that acquired the 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 |
---|
public boolean noncastable
Constructor Detail |
---|
public ILockInfoProxy()
public ILockInfoProxy(Object obj) throws IOException
IOException
protected ILockInfoProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public String getUserName() throws IOException, AutomationException
The UserName method returns the user name who is currently editing or reconciling the version.
getUserName
in interface ILockInfo
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getLockType() throws IOException, AutomationException
The LockType method returns the type of lock the current user has on the version. Shared locks are acquired upon start editing and released at stop editing. Shared locks are promoted to Exclusive locks during reconcile or when a version is being reconciled against.
The Exclusive lock prevents multiple reconciliations against any one version simultaneously. This will prevent unnecessary reconciles, in the case where the version is reconciled and the target version is modified. Which then forces a second reconciliation and can waste server/client resources.
getLockType
in interface ILockInfo
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |