com.esri.arcgis.geodatabase
Interface IRecordSet2

All Superinterfaces:
IRecordSet, Serializable
All Known Implementing Classes:
RecordSet

public interface IRecordSet2
extends IRecordSet, Serializable

Provides access to the rows or features in a recordset.

Remarks

The IRecordset2 interface exposes methods and properties to perform geodatabase recordset operations, SaveAsTable as the result of a query to the table and DetachTable.

Product Availability

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


Method Summary
 void detachTable()
          Detach Recordset from table and apply the subfield of QueryFilter.
 ITable saveAsTable(IWorkspace workspace, String tableName)
          Saves the recordset to a table of feature class in the provided workspace.
 
Methods inherited from interface com.esri.arcgis.geodatabase.IRecordSet
getCursor, getFields, getTable, isFeatureCollection
 

Method Detail

saveAsTable

ITable saveAsTable(IWorkspace workspace,
                   String tableName)
                   throws IOException,
                          AutomationException
Saves the recordset to a table of feature class in the provided workspace.

Remarks

SaveAsTable will save the recordset into the specified table or feature class in the provided workspace. SaveAsTable supports Personal, File and ArcSDE geodatabases as well as shapefile workspaces.

Product Availability

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

Parameters:
workspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
tableName - The tableName (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.ITable
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

detachTable

void detachTable()
                 throws IOException,
                        AutomationException
Detach Recordset from table and apply the subfield of QueryFilter.

Remarks

When using a record set, the DetachTable property is used to detach a recordset from a table and apply the subfield of a query filter.

Product Availability

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

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
IRecordSet2.saveAsTable(com.esri.arcgis.geodatabase.IWorkspace, String)