com.esri.arcgis.geodatabase
Interface IWorkspaceDomains2

All Superinterfaces:
IWorkspaceDomains, Serializable
All Known Implementing Classes:
IWorkspaceDomains2Proxy, Sde4Workspace, VersionedWorkspace, Workspace

public interface IWorkspaceDomains2
extends IWorkspaceDomains, Serializable

Provides access to members that allow you to alter a domain.

Remarks

The IWorkspaceDomains2 interface was added to enable users to modify an existing domain. Without this interface, in order to modify an existing domain, it would first be necessary to disassociated it with all fields, delete the domain, create a new (and modified) domain, and reassociated it with the appropriate fields. Note that schema locks are acquired when altering a domain.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux


Method Summary
 void alterDomain(IDomain domain)
          Alters an existing domain in the workspace.
 
Methods inherited from interface com.esri.arcgis.geodatabase.IWorkspaceDomains
addDomain, deleteDomain, getDomainByName, getDomains, getDomainsByFieldType, isCanDeleteDomain
 

Method Detail

alterDomain

void alterDomain(IDomain domain)
                 throws IOException,
                        AutomationException
Alters an existing domain in the workspace.

Remarks

The AlterDomain method allows the user to either take an existing domain and modify it, and then call AlterDomain passing it as an argument. Alternatively, the user may create a new instance of a domain with the same name, owner, and field type as an existing domain. The existing domain would be replaced with the new domain. The identifier of the new domain will be modified to match that of the existing domain that is being altered.

The main use of AlterDomain is for modifying the range or coded values associated with the domain. Please note that the renaming of a Domain is not permitted.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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