com.esri.arcgis.geodatabase
Interface IVersion2

All Superinterfaces:
IVersion, Serializable
All Known Subinterfaces:
IVersion3
All Known Implementing Classes:
IVersion2Proxy, VersionedWorkspace

public interface IVersion2
extends IVersion, Serializable

Provides access to members for managing a version.

Product Availability

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


Method Summary
 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.
 
Methods inherited from interface com.esri.arcgis.geodatabase.IVersion
createVersion, delete, getAccess, getDescription, getVersionInfo, getVersionLocks, getVersionName, hasParent, refreshVersion, setAccess, setDescription, setVersionName
 

Method Detail

getCommonAncestor

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

Product Availability

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

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

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.

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

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.

Returns:
The isRedef
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.