com.esri.arcgis.carto
Class IChangeDatabaseVersionProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.carto.IChangeDatabaseVersionProxy
All Implemented Interfaces:
IChangeDatabaseVersion, Externalizable, Serializable

public class IChangeDatabaseVersionProxy
extends com.esri.arcgis.interop.Dispatch
implements IChangeDatabaseVersion, Serializable

Provides access to the Change Database Version operation.

Remarks

IChangeDatabaseVersion provides access to the methods and properties of the ChangeDatabaseVersion object. ChangeDatabaseVersion is a coarse grained object that performs the steps needed to change the database version of layers and tables in a Map, Scene, or Globe. IChangeDatabaseVersion contains one method, Execute, which is used to perform the change.

Product Availability

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, E
 
Constructor Summary
  IChangeDatabaseVersionProxy()
           
  IChangeDatabaseVersionProxy(Object obj)
           
protected IChangeDatabaseVersionProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 ISet execute(IVersion pFrom, IVersion pTo, IBasicMap pMap)
          Replaces the version of the feature classes for all the layers that belong to the From version to To version.
 void readExternal(ObjectInput in)
           
 void removeListener(String iidStr, Object theListener)
           
 void writeExternal(ObjectOutput out)
           
 
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, queryInterface, release, setNativeMode, setPropertyByName, toString, vtblInvoke
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IChangeDatabaseVersionProxy

public IChangeDatabaseVersionProxy()

IChangeDatabaseVersionProxy

public IChangeDatabaseVersionProxy(Object obj)
                            throws IOException
Throws:
IOException

IChangeDatabaseVersionProxy

protected IChangeDatabaseVersionProxy(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 com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

execute

public ISet execute(IVersion pFrom,
                    IVersion pTo,
                    IBasicMap pMap)
             throws IOException,
                    AutomationException
Replaces the version of the feature classes for all the layers that belong to the From version to To version.

Remarks

The Execute method is used to change the version of versioned data from one version to another. The versions can be transactional or historical. The input parameters of this method are:

pFrom: The version to move away from. Only layers with a data source referencing this version will be changed.

pTo: The version to change to.

pMap: An IBasicMap reference, which could be a Map, Globe, or Scene, that contains the layers to be changed.

The return parameter of the method is a set of table and layer references of the layers that had their version changed.

This command fires the following events:

IActiveViewEvents::ContentsChanged when executed on a Map, Scene, or Globe.

Additionally the events IMapEvents::FeatureClassChanged and IMapEvents2::TableChanged are fired for each layer and table respectively when changing the version on a Map.

When executing this method on a Map, you may wish to call IMapAdmin::FireChangeVersion prior to performing the version change to additionally notify listeners of the change.

Product Availability

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

Specified by:
execute in interface IChangeDatabaseVersion
Parameters:
pFrom - A reference to a com.esri.arcgis.geodatabase.IVersion (in)
pTo - A reference to a com.esri.arcgis.geodatabase.IVersion (in)
pMap - A reference to a com.esri.arcgis.carto.IBasicMap (in)
Returns:
A reference to a com.esri.arcgis.system.ISet
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class com.esri.arcgis.interop.Dispatch
Throws:
IOException
ClassNotFoundException