com.esri.arcgis.geodatabase
Class IDatabaseConnectionInfo2Proxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.geodatabase.IDatabaseConnectionInfoProxy
          extended by com.esri.arcgis.geodatabase.IDatabaseConnectionInfo2Proxy
All Implemented Interfaces:
IDatabaseConnectionInfo, IDatabaseConnectionInfo2, Externalizable, Serializable

public class IDatabaseConnectionInfo2Proxy
extends IDatabaseConnectionInfoProxy
implements IDatabaseConnectionInfo2, Serializable

Provides access to members that provide information about the Workspace's connected database.

When To Use

Use IDatabaseConnectionInfo2 when you want to know the type of DBMS the workspace is connected to. For example, when connected to a SQLServer database ConnectionDBMS will return the enumeration value corresponding to a SQLServer database.

Product Availability

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, E
 
Constructor Summary
  IDatabaseConnectionInfo2Proxy()
           
  IDatabaseConnectionInfo2Proxy(Object obj)
           
protected IDatabaseConnectionInfo2Proxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 Object getConnectionCurrentDateTime()
          The current DBMS date/time.
 int getConnectionDBMS()
          The type of DBMS this workspace is connected to.
 String getConnectionServer()
          The server this workspace is connected to.
 int getGeodatabaseServerClass()
          The ArcSDE server class.
 void readExternal(ObjectInput in)
           
 void removeListener(String iidStr, Object theListener)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class com.esri.arcgis.geodatabase.IDatabaseConnectionInfoProxy
getConnectedDatabase, getConnectedUser
 
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, queryInterface, release, setNativeMode, setPropertyByName, toString, vtblInvoke
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.geodatabase.IDatabaseConnectionInfo
getConnectedDatabase, getConnectedUser
 

Constructor Detail

IDatabaseConnectionInfo2Proxy

public IDatabaseConnectionInfo2Proxy()

IDatabaseConnectionInfo2Proxy

public IDatabaseConnectionInfo2Proxy(Object obj)
                              throws IOException
Throws:
IOException

IDatabaseConnectionInfo2Proxy

protected IDatabaseConnectionInfo2Proxy(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 IDatabaseConnectionInfoProxy
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class IDatabaseConnectionInfoProxy
Throws:
IOException

getConnectionDBMS

public int getConnectionDBMS()
                      throws IOException,
                             AutomationException
The type of DBMS this workspace is connected to.

Remarks

Returns an enumeration value corresponding to the connected DBMS. This might be particularly useful when implementing code that must access a number of different remote database types and depending on the underlying DBMS, change the code accordingly.

Product Availability

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

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

getConnectionCurrentDateTime

public Object getConnectionCurrentDateTime()
                                    throws IOException,
                                           AutomationException
The current DBMS date/time.

Product Availability

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

Specified by:
getConnectionCurrentDateTime in interface IDatabaseConnectionInfo2
Returns:
A Variant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGeodatabaseServerClass

public int getGeodatabaseServerClass()
                              throws IOException,
                                     AutomationException
The ArcSDE server class.

Product Availability

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

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

getConnectionServer

public String getConnectionServer()
                           throws IOException,
                                  AutomationException
The server this workspace is connected to.

Product Availability

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

Specified by:
getConnectionServer in interface IDatabaseConnectionInfo2
Returns:
The server
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class IDatabaseConnectionInfoProxy
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class IDatabaseConnectionInfoProxy
Throws:
IOException
ClassNotFoundException