public interface VersioningConnection extends Connection
Extends the standard Connection exposing the versioning support.
| Modifier and Type | Method and Description |
|---|---|
UUID |
commit(String theMessage)
Commits the current transaction and attaches the given message to the version metadata.
|
VersioningMetadata |
getVersioningMetadata()
Returns the versioning metadata query interface.
|
void |
revert(Version theFromVersion,
Version theToVersion,
String theMessage)
Reverts all the changes committed between
theFromVersion (exclusive) and theToVersion (inclusive)
as a new commit with the given message. |
Tags |
tags()
Returns the tags in this database.
|
Versions |
versions()
Returns the versions in this database.
|
add, admin, as, ask, ask, begin, close, commit, currentStatus, export, get, getOption, graph, graph, isOpen, isReasoningEnabled, name, namespaces, paths, paths, remove, rollback, select, select, size, transactions, update, updateUUID commit(String theMessage) throws StardogException
StardogExceptionvoid revert(Version theFromVersion, Version theToVersion, String theMessage) throws StardogException
theFromVersion (exclusive) and theToVersion (inclusive)
as a new commit with the given message. The changes committed in theFromVersion will remain in the database.
but the changes in theToVersion (and any other commit in between) will be reverted. The revert will be done
as a single transaction so either all commits in the range wil lbe reverted or no changes will be committed.
This function does not perform any conflict resolution and simply applies the corresponding diff in the reverse. All the
additions specified in the given range will be removed and all the removals in the given range will be added.StardogException - if there is an error reverting the commitsVersions versions()
Tags tags()
VersioningMetadata getVersioningMetadata()
Copyright © 2010-2016 Stardog Union. All Rights Reserved.