com.esri.arcgis.geodatabase
Class IVersion2Proxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.geodatabase.IVersionProxy
          extended by com.esri.arcgis.geodatabase.IVersion2Proxy
All Implemented Interfaces:
IVersion, IVersion2, Externalizable, Serializable

public class IVersion2Proxy
extends IVersionProxy
implements IVersion2, Serializable

Provides access to members for managing a version.

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
  IVersion2Proxy()
           
  IVersion2Proxy(Object obj)
           
protected IVersion2Proxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 IVersion createChild(String name, IVersion pInitialStateVersion)
          Creates a new child version of this version whose initial state is the current state of pInitialStateVersion.
 IVersion getCommonAncestor(IVersion pVersion)
          Finds common ancestor version.
 boolean isRedefined()
          Determines whether the state of the version corresponding to this version object has been redefined in the database.
 void removeListener(String iidStr, Object theListener)
           
 
Methods inherited from class com.esri.arcgis.geodatabase.IVersionProxy
createVersion, delete, getAccess, getDescription, getVersionInfo, getVersionLocks, getVersionName, hasParent, refreshVersion, setAccess, setDescription, setVersionName
 
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.IVersion
createVersion, delete, getAccess, getDescription, getVersionInfo, getVersionLocks, getVersionName, hasParent, refreshVersion, setAccess, setDescription, setVersionName
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

IVersion2Proxy

public IVersion2Proxy()

IVersion2Proxy

public IVersion2Proxy(Object obj)
               throws IOException
Throws:
IOException

IVersion2Proxy

protected IVersion2Proxy(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 IVersionProxy
Throws:
IOException

removeListener

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

getCommonAncestor

public IVersion getCommonAncestor(IVersion pVersion)
                           throws IOException,
                                  AutomationException
Finds common ancestor version.

Product Availability

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

Specified by:
getCommonAncestor in interface IVersion2
Parameters:
pVersion - A reference to a com.esri.arcgis.geodatabase.IVersion (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IVersion
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createChild

public IVersion createChild(String name,
                            IVersion pInitialStateVersion)
                     throws IOException,
                            AutomationException
Creates a new child version of this version whose initial state is the current state of pInitialStateVersion.

Description

This method is intended for developers who require custom workflows such as creating a version with an initial state that references a version other than that of the parent version. To create a child version with the same initial state as the parent version, use the IVersion.CreateVersion method.

Product Availability

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

Specified by:
createChild in interface IVersion2
Parameters:
name - The name (in)
pInitialStateVersion - A reference to a com.esri.arcgis.geodatabase.IVersion (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IVersion
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isRedefined

public boolean isRedefined()
                    throws IOException,
                           AutomationException
Determines whether the state of the version corresponding to this version object has been redefined in the database.

Product Availability

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

Specified by:
isRedefined in interface IVersion2
Returns:
The isRedef
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.