com.esri.arcgis.geodatabase
Interface IWorkspaceDomains3

All Superinterfaces:
IWorkspaceDomains, IWorkspaceDomains2, Serializable
All Known Implementing Classes:
VersionedWorkspace, Workspace

public interface IWorkspaceDomains3
extends IWorkspaceDomains2, Serializable

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

Remarks

The IWorkspaceDomains3 interface was added to enable users to rename existing domains. Without this interface, in order to rename an existing domain, it would first be necessary to disassociate it with all fields, delete the domain, create a new domain with the new name and reassociate it with the appropriate fields. Note that a schema locks is recommended when renaming a domain.

Product Availability

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


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

Method Detail

alterDomainWithName

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

Remarks

The AlterDomainWithName method takes as input a Domain object whose Name property is set to the new name and the old domain name. The old domain name is used to reference to the domain that will be renamed. All references to the Domain will be updated to use the new name, it is not neccessary to account for this.

Product Availability

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

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