|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDatabaseConnectionInfo3
Provides access to members that provide information about the Workspace's connected database.
Method Summary | |
---|---|
void |
disconnectUser(int sessionID)
Disconnect a user connection to the database. |
String |
getConnectedDatabaseEx()
The name of the connected database. |
IEnumUserInfo |
getConnectedUsers()
The current connections to the database. |
boolean |
isAcceptingConnections()
Is the database accepting connections. |
void |
setIsAcceptingConnections(boolean acceptingConnections)
Is the database accepting connections. |
Methods inherited from interface com.esri.arcgis.geodatabase.IDatabaseConnectionInfo2 |
---|
getConnectionCurrentDateTime, getConnectionDBMS, getConnectionServer, getGeodatabaseServerClass |
Methods inherited from interface com.esri.arcgis.geodatabase.IDatabaseConnectionInfo |
---|
getConnectedDatabase, getConnectedUser |
Method Detail |
---|
IEnumUserInfo getConnectedUsers() throws IOException, AutomationException
The get_ConnectedUsers method will return an enumeration of IUserInfo objects corresponding to the currently connected users in the Enterprise Geodatabase. You must be the Geodatabase Administrator to call this method.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void disconnectUser(int sessionID) throws IOException, AutomationException
The DisconnectUser method will disconnect a user from the Enterprise Geodatabase based on Session ID. The Session ID can be retrieved from a IUserInfo object returned from the call to get_ConnectedUsers or from an IDatabaseLockInfo object returned from IDatabaseLocksInfo. You must be the Geodatabase Administrator to call this method.
sessionID
- The sessionID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setIsAcceptingConnections(boolean acceptingConnections) throws IOException, AutomationException
This property controls if the Enterprise Geodatabase is accepting new connections. If set to False the Enterprise Geodatabase will block any new connections from users who are not the Geodatabase Administrator. You must be the Geodatabase Administrator to alter this property.
acceptingConnections
- The acceptingConnections (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isAcceptingConnections() throws IOException, AutomationException
This property controls if the Enterprise Geodatabase is accepting new connections. If set to False the Enterprise Geodatabase will block any new connections from users who are not the Geodatabase Administrator. You must be the Geodatabase Administrator to alter this property.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getConnectedDatabaseEx() throws IOException, AutomationException
Returns the name of the connected database for all supported databases.
IDatabaseConnectionInfo3.ConnectedDatabaseEx should be used to determine the connected database name when performing administration tasks.
IDatabaseConnectionInfo2.ConnectedDatabase should be used if manually preparing table name qualifications.
ConnectedDatabase will not return the database for Oracle databases; tables would not be found if the table name is prefixed with the database when using Oracle, see ISQLSyntax.QualifyTableName
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 |