com.esri.arcgis.geodatabase
Class TableNameSet

java.lang.Object
  extended by com.esri.arcgis.geodatabase.TableNameSet
All Implemented Interfaces:
ITableNameSet, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class TableNameSet
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ITableNameSet

A set of table names.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
TableNameSet(Object obj)
          Construct a TableNameSet using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 void add(String name, IDatasetName tableName)
          Add table to set.
 boolean equals(Object o)
          Compare this object with another
 IDatasetName find(String name)
          Find table in set.
 int hashCode()
          the hashcode for this object
 boolean isExists(String name)
          Does the set contain this table.
 void remove(String name)
          Remove table from set.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

TableNameSet

public TableNameSet(Object obj)
             throws IOException
Construct a TableNameSet using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to TableNameSet.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
TableNameSet o = (TableNameSet)obj; // will not work

TableNameSet o = new TableNameSet(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
IOException - if there are interop problems TableNameSet theTableNameSet = (TableNameSet) obj;
Method Detail

equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

add

public void add(String name,
                IDatasetName tableName)
         throws IOException,
                AutomationException
Add table to set.

Product Availability

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

Specified by:
add in interface ITableNameSet
Parameters:
name - The name (in)
tableName - A reference to a com.esri.arcgis.geodatabase.IDatasetName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

public void remove(String name)
            throws IOException,
                   AutomationException
Remove table from set.

Product Availability

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

Specified by:
remove in interface ITableNameSet
Parameters:
name - The name (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

find

public IDatasetName find(String name)
                  throws IOException,
                         AutomationException
Find table in set.

Product Availability

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

Specified by:
find in interface ITableNameSet
Parameters:
name - The name (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IDatasetName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isExists

public boolean isExists(String name)
                 throws IOException,
                        AutomationException
Does the set contain this table.

Product Availability

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

Specified by:
isExists in interface ITableNameSet
Parameters:
name - The name (in)
Returns:
The exists
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.