com.esri.arcgis.geodatabase
Interface ISchemaLockInfo

All Superinterfaces:
Serializable
All Known Implementing Classes:
ISchemaLockInfoProxy

public interface ISchemaLockInfo
extends 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.


Method Summary
 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.
 

Method Detail

getSchemaLockType

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

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

getUserName

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

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

getTableName

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

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