|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IHistoricalWorkspace
The IHistoricalWorkspace interface can be used to detect existing historical markers while also providing the functionality to add or remove historical markers from the workspace. This interface can also be leveraged to query existing historical versions on the historical workspace.
Method Summary | |
---|---|
IHistoricalMarker |
addHistoricalMarker(String name,
Object tstamp)
Add a historical marker to this workspace. |
IHistoricalVersion |
findHistoricalVersionByName(String historicalMarkerName)
Open a historical version by specifying a historical marker name. |
IHistoricalVersion |
findHistoricalVersionByTimeStamp(Object tstamp)
Open a historical version by specifying a timestamp. |
String |
getDefaultMarkerName()
The marker name which represents the last save or post of the default transactional version. |
IEnumHistoricalMarker |
getHistoricalMarkers()
An enumerator of all historical markers managed by this workspace. |
void |
removeHistoricalMarker(String name)
Remove a historical marker from this workspace. |
Method Detail |
---|
String getDefaultMarkerName() throws IOException, AutomationException
The DefaultMarkerName property returns a string which represents the last save or post of the default transactional version.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumHistoricalMarker getHistoricalMarkers() throws IOException, AutomationException
The HistoricalMarkers property returns an enumeration of the historical markers that exist on the current historical workspace. It can be used to populate an enumeration of historical markers that have been created.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IHistoricalMarker addHistoricalMarker(String name, Object tstamp) throws IOException, AutomationException
The AddHistoricalMarker method is used to add a historical marker to the workspace. Historical markers are used to represent specific moments in the database which reference a date and time. They can then be used as a mechanism to easily recognize specific database's moment or events.
For example, an organization might create historical markers to reflect quarters of a fiscal year. This will then allow users the ability to quickly change their historical versions to each moment using a historical marker.
Historical markers are case sensitive. All users have privileges to create historical markers. Historical marker names are limited to sixty-four characters. Adding a historical marker modifies the geodatabase's system tables and explicitly performs a database commit, and should therefore not be done during an edit session.
name
- The name (in)tstamp
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeHistoricalMarker(String name) throws IOException, AutomationException
The RemoveHistoricalMarker method removes the specified historical marker from the workspace.
Removing a historical marker modifies the geodatabase's system tables and explicitly performs a database commit, and should therefore not be done during an edit session.
The DEFAULT historical marker can not be deleted.
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IHistoricalVersion findHistoricalVersionByTimeStamp(Object tstamp) throws IOException, AutomationException
The FindHistoricalVersionByTimeStamp method can be used to find a specific historical version that exists in the historical workspace by specifying the time stamp.
tstamp
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IHistoricalVersion findHistoricalVersionByName(String historicalMarkerName) throws IOException, AutomationException
The FindHistoricalVersionByName method can be used to find a historical version by using an existing historical marker. The input string used to locate the historical marker is case sensitive. The "DEFAULT" historical marker is unique and is not case sensitive.
historicalMarkerName
- The historicalMarkerName (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 |