com.esri.arcgis.trackinganalyst
Class AddSDEConnection

java.lang.Object
  extended bycom.esri.arcgis.trackinganalyst.AddSDEConnection
All Implemented Interfaces:
ITxCatalogObject, ITxObjectEdit, ITxObjectProperties, java.io.Serializable

public class AddSDEConnection
extends java.lang.Object
implements ITxObjectProperties, ITxCatalogObject, ITxObjectEdit

The AddSDEConnection object allows a user to create a new SDE connection.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Tracking Analyst Extension.

Description

This class is a helper class for the tracking catalog browser dialog.  It allows the user to add an SDE connection to the tracking catalog browser dialog.

See Also:
Serialized Form

Constructor Summary
AddSDEConnection()
          Constructs a AddSDEConnection using ArcGIS Engine.
AddSDEConnection(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
 
Method Summary
 void attach(ITxCatalogObject parent, ITxCatalog pCatalog)
          Attaches the object to its parent and the catalog.
 void detach()
          Instructs the object to detach itself from its parent and the catalog.
 boolean equals(java.lang.Object o)
          Compare this object with another
 ITxCatalogObject getAsITxCatalogObject()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 ITxObjectEdit getAsITxObjectEdit()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 ITxObjectProperties getAsITxObjectProperties()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 java.lang.String getBaseName()
          The base name of the object (i.e.
 java.lang.String getCategory()
          The category of the object.
 IUID getClassID()
          The class ID of this object.
static java.lang.String getClsid()
           
 java.lang.String getFullName()
          The full name of the object.
 IName getInternalObjectName()
          The Name for the internal object that this GxObject represents.
 int getLargeImage()
          The large image that represents the object.
 java.lang.String getName()
          The short name of the object.
 ITxCatalogObject getParent()
          The parent of the object.
 int getSmallImage()
          The small image that represents the object.
 int hashCode()
          the hashcode for this object
 boolean isValid()
          Indicates if the object is still valid.
 void refresh()
          Updates the object and any children of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddSDEConnection

public AddSDEConnection()
                 throws java.io.IOException,
                        java.net.UnknownHostException
Constructs a AddSDEConnection using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

AddSDEConnection

public AddSDEConnection(java.lang.Object obj)
                 throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.

Construct a AddSDEConnection using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to AddSDEConnection.
AddSDEConnection theAddSDEConnection = (AddSDEConnection) obj;

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()

getAsITxObjectProperties

public ITxObjectProperties getAsITxObjectProperties()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsITxCatalogObject

public ITxCatalogObject getAsITxCatalogObject()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsITxObjectEdit

public ITxObjectEdit getAsITxObjectEdit()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


equals

public boolean equals(java.lang.Object o)
Compare this object with another


hashCode

public int hashCode()
the hashcode for this object


getSmallImage

public int getSmallImage()
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: ITxObjectProperties
The small image that represents the object.

Specified by:
getSmallImage in interface ITxObjectProperties
Returns:
The hBitmap
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getLargeImage

public int getLargeImage()
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: ITxObjectProperties
The large image that represents the object.

Specified by:
getLargeImage in interface ITxObjectProperties
Returns:
The hBitmap
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getName

public java.lang.String getName()
                         throws java.io.IOException,
                                AutomationException
Description copied from interface: ITxCatalogObject
The short name of the object.

Specified by:
getName in interface ITxCatalogObject
Returns:
The name
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFullName

public java.lang.String getFullName()
                             throws java.io.IOException,
                                    AutomationException
Description copied from interface: ITxCatalogObject
The full name of the object.

Specified by:
getFullName in interface ITxCatalogObject
Returns:
The name
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getBaseName

public java.lang.String getBaseName()
                             throws java.io.IOException,
                                    AutomationException
Description copied from interface: ITxCatalogObject
The base name of the object (i.e. no extension).

Specified by:
getBaseName in interface ITxCatalogObject
Returns:
The name
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCategory

public java.lang.String getCategory()
                             throws java.io.IOException,
                                    AutomationException
Description copied from interface: ITxCatalogObject
The category of the object.

Specified by:
getCategory in interface ITxCatalogObject
Returns:
The category
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getParent

public ITxCatalogObject getParent()
                           throws java.io.IOException,
                                  AutomationException
Description copied from interface: ITxCatalogObject
The parent of the object.

Specified by:
getParent in interface ITxCatalogObject
Returns:
A reference to a com.esri.arcgis.trackinganalyst.ITxCatalogObject
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getClassID

public IUID getClassID()
                throws java.io.IOException,
                       AutomationException
Description copied from interface: ITxCatalogObject
The class ID of this object.

Specified by:
getClassID in interface ITxCatalogObject
Returns:
A reference to a com.esri.arcgis.system.IUID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getInternalObjectName

public IName getInternalObjectName()
                            throws java.io.IOException,
                                   AutomationException
Description copied from interface: ITxCatalogObject
The Name for the internal object that this GxObject represents.

Specified by:
getInternalObjectName in interface ITxCatalogObject
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isValid

public boolean isValid()
                throws java.io.IOException,
                       AutomationException
Description copied from interface: ITxCatalogObject
Indicates if the object is still valid.

Specified by:
isValid in interface ITxCatalogObject
Returns:
The isValid
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

attach

public void attach(ITxCatalogObject parent,
                   ITxCatalog pCatalog)
            throws java.io.IOException,
                   AutomationException
Description copied from interface: ITxCatalogObject
Attaches the object to its parent and the catalog.

Specified by:
attach in interface ITxCatalogObject
Parameters:
parent - A reference to a com.esri.arcgis.trackinganalyst.ITxCatalogObject (in)
pCatalog - A reference to a com.esri.arcgis.trackinganalyst.ITxCatalog (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

detach

public void detach()
            throws java.io.IOException,
                   AutomationException
Description copied from interface: ITxCatalogObject
Instructs the object to detach itself from its parent and the catalog.

Specified by:
detach in interface ITxCatalogObject
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

refresh

public void refresh()
             throws java.io.IOException,
                    AutomationException
Description copied from interface: ITxCatalogObject
Updates the object and any children of the object.

Specified by:
refresh in interface ITxCatalogObject
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.