|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.geodatabase.IVersionProxy
public class IVersionProxy
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.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IVersionProxy()
|
|
IVersionProxy(Object obj)
|
protected |
IVersionProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
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 |
removeListener(String iidStr,
Object theListener)
|
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. |
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 |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IVersionProxy()
public IVersionProxy(Object obj) throws IOException
IOException
protected IVersionProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public 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.
getVersionLocks
in interface IVersion
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getVersionInfo
in interface IVersion
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getVersionName
in interface IVersion
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setVersionName(String name) throws IOException, AutomationException
setVersionName
in interface IVersion
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getDescription
in interface IVersion
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDescription(String description) throws IOException, AutomationException
setDescription
in interface IVersion
description
- The description (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getAccess
in interface IVersion
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAccess(int access) throws IOException, AutomationException
setAccess
in interface IVersion
access
- A com.esri.arcgis.geodatabase.esriVersionAccess constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean hasParent() throws IOException, AutomationException
All versions, except the default version have parent versions.
hasParent
in interface IVersion
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void delete() throws IOException, AutomationException
Deletes the transactional version. Must be the version owner to delete a version.
The Delete method is used to permanently delete a version. Only the owner of the version or the ArcSDE administrator can delete the version.
delete
in interface IVersion
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
refreshVersion
in interface IVersion
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
createVersion
in interface IVersion
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 |