|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IVersion
Provides access to members for managing a version.
The IVersion interface is used to manage the properties of a version, such as the name, description, access and the ability to create new versions.
Method Summary | |
---|---|
IVersion |
createVersion(String newName)
Creates a new version equivalent to this version. |
void |
delete()
Permanently deletes the version from the database. |
int |
getAccess()
The version's access permission. |
String |
getDescription()
The version's description. |
IVersionInfo |
getVersionInfo()
This version's information. |
IEnumLockInfo |
getVersionLocks()
This version's locks. |
String |
getVersionName()
The name of the version. |
boolean |
hasParent()
True if this version have a parent version. |
void |
refreshVersion()
Refreshes the version with the corresponding database state. |
void |
setAccess(int access)
The version's access permission. |
void |
setDescription(String description)
The version's description. |
void |
setVersionName(String name)
The name of the version. |
Method Detail |
---|
IEnumLockInfo getVersionLocks() throws IOException, AutomationException
The VersionLocks method returns the enumeration IEnumLockInfo. Using the enumeration you can detect what users are currently editing the version or currently reconciling the version. This information can be used to determine if the version is available for editing, to be reconciled or to be reconciled against.
See ILockInfo and esriLockType constants for additional information regarding locking descriptions.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IVersionInfo getVersionInfo() throws IOException, AutomationException
The VersionInfo method provides a reference to the IVersionInfo interface. The IVersionInfo interface contains methods which describe the properties of the version. The interface is beneficial for obtaining a version's ancestory, for example its parent version.
VersionInfo will only return versions in which the connected user has the appropriate privileges.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getVersionName() throws IOException, AutomationException
The VersionName method is used to retrieve or set a version's name. Version names are case sensitive and limited to 64 characters. Only the owner of a version can change its properties, such as the name.
The DEFAULT version cannot be renamed.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setVersionName(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getDescription() throws IOException, AutomationException
The Description method is used to retreive or set a version's description. Version descriptions are not required and are limited to 64 characters. Only the owner of a version can change its properties, such as the description.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDescription(String description) throws IOException, AutomationException
description
- The description (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getAccess() throws IOException, AutomationException
The Access property is used to retrieve or set a version's access property. Version access can be private, public or protected. Private versions are only accessible by the version's owner, public versions can be viewed and edited by any user, and protected versions can be viewed by any user but only edited by the owner. Only the owner of a version can change its properties, such as the access.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAccess(int access) throws IOException, AutomationException
access
- A com.esri.arcgis.geodatabase.esriVersionAccess constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean hasParent() throws IOException, AutomationException
All versions, except the default version have parent versions.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void delete() throws IOException, AutomationException
The Delete method is used to permanently delete a version. Only the owner of the version or the ArcSDE administrator can delete the version.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void refreshVersion() throws IOException, AutomationException
The RefreshVersion method refreshes the version to correspond with the database state the version references. For example, if a second application is editing the verison and saves their changes, you need to call the RefreshVersion method to see the latest representation of the version.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IVersion createVersion(String newName) throws IOException, AutomationException
The CreateVersion method allows you to create new version from the existing IVersion. The new version is a child of the current version and is owned by the connected user. The version name is limited to 64 characters and is private by default.
Creating a new version requires an existing version to be the parent of the new version. When the new version is created, the parent and child versions are identical.
newName
- The newName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |