com.esri.arcgis.geodatabase
Class IWorkspaceDomains2Proxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.geodatabase.IWorkspaceDomainsProxy
          extended by com.esri.arcgis.geodatabase.IWorkspaceDomains2Proxy
All Implemented Interfaces:
IWorkspaceDomains, IWorkspaceDomains2, Externalizable, Serializable

public class IWorkspaceDomains2Proxy
extends IWorkspaceDomainsProxy
implements IWorkspaceDomains2, 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.

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  IWorkspaceDomains2Proxy()
           
  IWorkspaceDomains2Proxy(Object obj)
           
protected IWorkspaceDomains2Proxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 void alterDomain(IDomain domain)
          Alters an existing domain in the workspace.
 void removeListener(String iidStr, Object theListener)
           
 
Methods inherited from class com.esri.arcgis.geodatabase.IWorkspaceDomainsProxy
addDomain, deleteDomain, getDomainByName, getDomains, getDomainsByFieldType, isCanDeleteDomain
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.geodatabase.IWorkspaceDomains
addDomain, deleteDomain, getDomainByName, getDomains, getDomainsByFieldType, isCanDeleteDomain
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

IWorkspaceDomains2Proxy

public IWorkspaceDomains2Proxy()

IWorkspaceDomains2Proxy

public IWorkspaceDomains2Proxy(Object obj)
                        throws IOException
Throws:
IOException

IWorkspaceDomains2Proxy

protected IWorkspaceDomains2Proxy(Object obj,
                                  String iid)
                           throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class IWorkspaceDomainsProxy
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class IWorkspaceDomainsProxy
Throws:
IOException

alterDomain

public 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

Specified by:
alterDomain in interface IWorkspaceDomains2
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.