com.esri.arcgis.geodatabase
Interface IFieldsEdit

All Superinterfaces:
IFields, Serializable
All Known Implementing Classes:
Fields

public interface IFieldsEdit
extends IFields, Serializable

Provides access to members that modify a fields collection.

Description

The IFieldsEdit interface is used when creating a fields collection. You cannot use it to insert or delete a field from a fields collection belonging to an existing table. To add a field to an existing object class, use the IClass::AddField method. To remove a field from an existing object class, use the IClass::DeleteField method.

Product Availability

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


Method Summary
 void addField(IField field)
          Add a field to the fields collection.
 void deleteAllFields()
          Delete all the fields from the fields collection.
 void deleteField(IField field)
          Delete a field from the fields collection.
 void setFieldByRef(int index, IField rhs2)
          The field at the specified position.
 void setFieldCount(int rhs1)
          The Number of fields in this field collection.
 
Methods inherited from interface com.esri.arcgis.geodatabase.IFields
findField, findFieldByAliasName, getField, getFieldCount
 

Method Detail

setFieldCount

void setFieldCount(int rhs1)
                   throws IOException,
                          AutomationException
The Number of fields in this field collection.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
rhs1 - The rhs1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setFieldByRef

void setFieldByRef(int index,
                   IField rhs2)
                   throws IOException,
                          AutomationException
The field at the specified position.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
index - The index (in)
rhs2 - A reference to a com.esri.arcgis.geodatabase.IField (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addField

void addField(IField field)
              throws IOException,
                     AutomationException
Add a field to the fields collection.

Remarks

AddField is used when creating a fields collection and cannot be used to insert a field into a fields collection belonging to an existing table. To add a field to an existing object class, use the IClass::AddField method.

The order in which fields are added to the fields collection will dictate their order in the database.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
field - A reference to a com.esri.arcgis.geodatabase.IField (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteField

void deleteField(IField field)
                 throws IOException,
                        AutomationException
Delete a field from the fields collection.

Remarks

DeleteField is used when creating a fields collection and cannot be used to delete a field from a fields collection belonging to an existing table. To delete a field from an existing object class, use the IClass::DeleteField method.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
field - A reference to a com.esri.arcgis.geodatabase.IField (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteAllFields

void deleteAllFields()
                     throws IOException,
                            AutomationException
Delete all the fields from the fields collection.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.