com.esri.arcgis.geodatabase
Class ISchemaLockInfoProxy

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

public class ISchemaLockInfoProxy
extends com.esri.arcgis.interop.Dispatch
implements ISchemaLockInfo, Serializable

Provides access to members that supply schema lock information.

Remarks

The ISchemaLockInfo interface provides information about a schema lock, for example whether it is shared or exclusive and, for ArcSDE geodatabases, the name of the user who has the lock. You can access ISchemaLockInfo through ISchemaLock::GetCurrentSchemaLocks and then by stepping through the returned schema lock enumerator object.

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
  ISchemaLockInfoProxy()
           
  ISchemaLockInfoProxy(Object obj)
           
protected ISchemaLockInfoProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 int getSchemaLockType()
          The schema lock type.
 String getTableName()
          The name of the table with the schema lock.
 String getUserName()
          The user name who has the schema 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

ISchemaLockInfoProxy

public ISchemaLockInfoProxy()

ISchemaLockInfoProxy

public ISchemaLockInfoProxy(Object obj)
                     throws IOException
Throws:
IOException

ISchemaLockInfoProxy

protected ISchemaLockInfoProxy(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

getSchemaLockType

public int getSchemaLockType()
                      throws IOException,
                             AutomationException
The schema lock type.

Remarks

The schema lock type can be esriExclusiveSchemaLock or esriSharedSchemaLock.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getSchemaLockType in interface ISchemaLockInfo
Returns:
A com.esri.arcgis.geodatabase.esriSchemaLock constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getUserName

public String getUserName()
                   throws IOException,
                          AutomationException
The user name who has the schema lock.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getUserName in interface ISchemaLockInfo
Returns:
The userName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTableName

public String getTableName()
                    throws IOException,
                           AutomationException
The name of the table with the schema lock.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getTableName in interface ISchemaLockInfo
Returns:
The tableName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.