|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IVersionedWorkspace
Provides access to members that manage versions.
A VersionedWorkspace is a workspace that supports versioning. It provides the ability to set the version in which the workspace will reference. It also provides methods to enumerate through all the versions in the database and the ability to compress.
Method Summary | |
---|---|
void |
compress()
Compresses the database by removing states not referenced by a version. |
IVersion |
findVersion(String name)
Finds a specific version given it's name. |
IVersion |
getDefaultVersion()
The Default version. |
IEnumVersionInfo |
getVersions()
All versions the user owns and those which are public or protected. |
Method Detail |
---|
IEnumVersionInfo getVersions() throws IOException, AutomationException
The Versions method will return an enumeration of all versions which the connected user owns and versions owned by other users whose access property is "public".
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IVersion getDefaultVersion() throws IOException, AutomationException
The DEFAULT version is always owned by the ArcSDE administrative user. The version is required by the geodatabase and its access property should remain public or protected.
If it is the application developer's goal to obtain a reference to the DEFAULT version, it is recommended to use the DefaultVersion property as opposed to passing in a literal string to FindVersion method. The DefaultVersion method will always return a IVersion object referencing the default version of the workspace from which the name can be obtained through VersionName property on the IVersionInfo interface.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IVersion findVersion(String name) throws IOException, AutomationException
FindVersion returns an IVersion interface which is commonly used to read or set a version's properties. The interface requires a string as input. The value of the string is case sensitive and a version's owner should be prefixed as owner.version. If an owner is not specified, only the versions which the user is connected owns are searched.
If it is the application developer's goal to obtain a reference to the DEFAULT version, it is recommended to use the DefaultVersion property as opposed to passing in a literal string to FindVersion method. The DefaultVersion method will always return a IVersion object referencing the default version of the workspace from which the name can be obtained through VersionName property on the IVersionInfo interface.
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void compress() throws IOException, AutomationException
Versioned workspace compression is available using the Compress method. Compressing the versioned workspace will remove those database states not referenced by a version.
Only the ArcSDE administrator user can execute the compress method.
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 |