com.esri.arcgis.geodatabase
Class RecordArray

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

public class RecordArray
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IRecordArray

Esri RecordArray object.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
RecordArray()
          Constructs a RecordArray using ArcGIS Engine.
RecordArray(Object obj)
          Construct a RecordArray using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 void add(IRecord rec)
          Adds a record.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int getCount()
          The record count.
 IRecord getElement(int index)
          Returns the record at the specified position.
 int hashCode()
          the hashcode for this object
 void insert(int index, IRecord rec)
          Adds a record at the specified position.
 void remove(int index)
          Removes the record at the specified position.
 void removeAll()
          Removes all records.
 
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

RecordArray

public RecordArray()
            throws IOException,
                   UnknownHostException
Constructs a RecordArray using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

RecordArray

public RecordArray(Object obj)
            throws IOException
Construct a RecordArray using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to RecordArray.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems RecordArray theRecordArray = (RecordArray) obj;
Method Detail

getClsid

public static String getClsid()
getClsid.


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

getCount

public int getCount()
             throws IOException,
                    AutomationException
The record count.

Product Availability

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

Specified by:
getCount in interface IRecordArray
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getElement

public IRecord getElement(int index)
                   throws IOException,
                          AutomationException
Returns the record at the specified position.

Product Availability

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

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

remove

public void remove(int index)
            throws IOException,
                   AutomationException
Removes the record at the specified position.

Product Availability

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

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

removeAll

public void removeAll()
               throws IOException,
                      AutomationException
Removes all records.

Product Availability

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

Specified by:
removeAll in interface IRecordArray
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public void add(IRecord rec)
         throws IOException,
                AutomationException
Adds a record.

Product Availability

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

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

insert

public void insert(int index,
                   IRecord rec)
            throws IOException,
                   AutomationException
Adds a record at the specified position.

Product Availability

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

Specified by:
insert in interface IRecordArray
Parameters:
index - The index (in)
rec - A reference to a com.esri.arcgis.geodatabase.IRecord (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.