public interface CDOTransaction extends CDOView, CDOCommonTransaction, CDOUserTransaction, CDOChangeSetDataProvider
Modifier and Type | Interface and Description |
---|---|
static interface |
CDOTransaction.Options
Encapsulates a set of notifying
transaction configuration options. |
IContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>
PROP_TIME_MACHINE_DISABLED
NO_TIMEOUT
INVALID_DATE, UNSPECIFIED_DATE
Modifier and Type | Method and Description |
---|---|
void |
addTransactionHandler(CDOTransactionHandlerBase handler) |
CDOBinaryResource |
createBinaryResource(String path) |
CDOQuery |
createQuery(String language,
String queryString,
boolean considerDirtyState) |
CDOQuery |
createQuery(String language,
String queryString,
Object context,
boolean considerDirtyState) |
CDOResource |
createResource(String path) |
CDOResourceFolder |
createResourceFolder(String path) |
CDOTextResource |
createTextResource(String path) |
CDOSavepoint[] |
exportChanges(OutputStream out) |
String |
getCommitComment()
Returns the comment to be used in the next commit operation.
|
Set<? extends EObject> |
getCommittables() |
Set<CDOObject> |
getConflicts()
Returns the set of objects that are conflicting with remote modifications or an empty set if
hasConflict() returns false . |
Map<CDOID,CDOObject> |
getDetachedObjects() |
Map<CDOID,CDOObject> |
getDirtyObjects() |
CDOSavepoint |
getFirstSavepoint() |
long |
getLastCommitTime() |
CDOSavepoint |
getLastSavepoint() |
Map<CDOID,CDOObject> |
getNewObjects() |
CDOBinaryResource |
getOrCreateBinaryResource(String path) |
CDOResource |
getOrCreateResource(String path) |
CDOResourceFolder |
getOrCreateResourceFolder(String path) |
CDOTextResource |
getOrCreateTextResource(String path) |
Map<CDOID,CDORevisionDelta> |
getRevisionDeltas() |
CDOTransactionHandler[] |
getTransactionHandlers() |
CDOTransactionHandler1[] |
getTransactionHandlers1() |
CDOTransactionHandler2[] |
getTransactionHandlers2() |
boolean |
hasConflict()
Returns
true if this transaction contains local modifications that are conflicting with remote
modifications, false otherwise. |
CDOSavepoint[] |
importChanges(InputStream in,
boolean reconstructSavepoints) |
boolean |
isDirty()
Returns
true if this transaction is not closed and contains uncommitted changes, false
otherwise. |
CDOChangeSetData |
merge(CDOBranch source,
CDOMerger merger)
Merges the changes from the given source branch into this transaction and possibly considers previous merges
from that branch by inspecting the
merge source
information of the commit history . |
CDOChangeSetData |
merge(CDOBranchPoint source,
CDOBranchPoint sourceBase,
CDOBranchPoint targetBase,
CDOMerger merger)
Merges the changes between the given source base point and the given source point into this transaction.
|
CDOChangeSetData |
merge(CDOBranchPoint source,
CDOBranchPoint sourceBase,
CDOMerger merger)
Merges the changes between the given source base point and the given source point into this transaction.
|
CDOChangeSetData |
merge(CDOBranchPoint source,
CDOMerger merger)
Merges the changes from the given source point into this transaction and possibly considers previous merges
from that
branch by inspecting the merge source
information of the commit history . |
CDOTransaction.Options |
options()
Returns the
options of this view. |
void |
removeTransactionHandler(CDOTransactionHandlerBase handler) |
void |
setCommitComment(String comment)
Sets the comment to be used in the next commit operation.
|
void |
setCommittables(Set<? extends EObject> committables) |
CDOSavepoint |
setSavepoint()
Creates a save point in the
CDOTransaction that can be used to roll back a part of the transaction |
addObjectHandler, compareRevisions, createQuery, createQuery, createResourceURI, disableDurableLocking, enableDurableLocking, enableDurableLocking, getBinaryResource, getLockStates, getLockStatesOfObjects, getObject, getObject, getObject, getObjectHandlers, getProvider, getResource, getResource, getResourceFolder, getResourceNode, getResourceSet, getRootResource, getSession, getTextResource, getUnitManager, getURIHandler, getViewLock, getViewSet, hasResource, isInvalidationRunnerActive, isLegacyModeEnabled, isObjectRegistered, lockObjects, lockObjects, queryInstances, queryInstancesAsync, queryInstancesAsync, queryResources, queryResourcesAsync, queryXRefs, queryXRefs, queryXRefsAsync, reload, removeObjectHandler, setBranch, setBranch, setBranchPoint, setBranchPoint, setBranchPoint, setBranchPoint, setResourcePathCache, setTimeStamp, setTimeStamp, syncExec, syncExec, unlockObjects, unlockObjects, unlockObjects
getLastUpdateTime, runAfterUpdate, waitForUpdate, waitForUpdate
getHistory, getHistory
getElements, isEmpty
addListener, getListeners, hasListeners, removeListener
getDurableLockingID, getViewID, isHistorical, isReadOnly
getSessionID, isDurableView
getBranch, getTimeStamp
getRevision
properties
getAdapter
commit, commit, rollback
getChangeSetData
boolean isDirty()
true
if this transaction is not closed and contains uncommitted changes, false
otherwise.boolean hasConflict()
true
if this transaction contains local modifications that are conflicting with remote
modifications, false
otherwise.hasConflict
in interface CDOView
hasConflict()
Set<CDOObject> getConflicts()
hasConflict()
returns false
.CDOChangeSetData merge(CDOBranch source, CDOMerger merger)
merge source
information of the commit history
.merge(CDOBranchPoint, CDOMerger)
CDOChangeSetData merge(CDOBranchPoint source, CDOMerger merger)
branch
by inspecting the merge source
information of the commit history
.CDOChangeSetData merge(CDOBranchPoint source, CDOBranchPoint sourceBase, CDOMerger merger)
Warning: If the branch of this transaction already contains merges from the given source point range (i.e., if this merge is a "remerge") this method will likely fail. One of the following methods should be used instead:
CDOChangeSetData merge(CDOBranchPoint source, CDOBranchPoint sourceBase, CDOBranchPoint targetBase, CDOMerger merger)
When specifying an adequate target base point this method is able to perform a proper "remerge".
merge(CDOBranchPoint, CDOMerger)
,
merge(CDOBranch, CDOMerger)
CDOResourceFolder createResourceFolder(String path)
CDOResourceFolder getOrCreateResourceFolder(String path)
CDOResource createResource(String path)
ResourceSet.createResource(URI)
CDOResource getOrCreateResource(String path)
CDOTextResource createTextResource(String path)
CDOTextResource getOrCreateTextResource(String path)
CDOBinaryResource createBinaryResource(String path)
CDOBinaryResource getOrCreateBinaryResource(String path)
void addTransactionHandler(CDOTransactionHandlerBase handler)
void removeTransactionHandler(CDOTransactionHandlerBase handler)
CDOTransactionHandler[] getTransactionHandlers()
CDOTransactionHandler1[] getTransactionHandlers1()
CDOTransactionHandler2[] getTransactionHandlers2()
CDOSavepoint setSavepoint()
CDOUserTransaction
CDOTransaction
that can be used to roll back a part of the transaction
Save points do not involve the server side, everything is done on the client side.
setSavepoint
in interface CDOUserTransaction
CDOSavepoint getFirstSavepoint()
CDOSavepoint getLastSavepoint()
getLastSavepoint
in interface CDOUserTransaction
Map<CDOID,CDORevisionDelta> getRevisionDeltas()
CDOSavepoint[] exportChanges(OutputStream out) throws IOException
IOException
CDOSavepoint[] importChanges(InputStream in, boolean reconstructSavepoints) throws IOException
IOException
long getLastCommitTime()
String getCommitComment()
CDOCommitInfo.getComment()
void setCommitComment(String comment)
CDOCommitInfo.getComment()
CDOQuery createQuery(String language, String queryString, boolean considerDirtyState)
CDOQuery createQuery(String language, String queryString, Object context, boolean considerDirtyState)
CDOTransaction.Options options()
CDOCommonView
options
of this view.options
in interface CDOCommonView
options
in interface CDOView
options
in interface IOptionsContainer
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html