Package org.eclipse.emf.cdo.transaction
Schnittstelle CDOTransaction
- Alle Superschnittstellen:
CDOBranchPoint
,CDOBranchProvider
,CDOChangeSetDataProvider
,CDOCommitHistory.Provider<CDOObject,
,CDOObjectHistory> CDOCommonTransaction
,CDOCommonView
,CDORevisionProvider
,CDOTimeProvider
,CDOUpdatable
,CDOUserTransaction
,CDOView
,org.eclipse.net4j.util.collection.Closeable
,IAdaptable
,org.eclipse.net4j.util.container.IContainer<CDOResourceNode>
,org.eclipse.net4j.util.event.INotifier
,org.eclipse.net4j.util.options.IOptionsContainer
,org.eclipse.net4j.util.properties.IPropertiesContainer
- Alle bekannten Unterschnittstellen:
InternalCDOTransaction
- Alle bekannten Implementierungsklassen:
CDOPushTransaction
public interface CDOTransaction
extends CDOView, CDOCommonTransaction, CDOUserTransaction, CDOChangeSetDataProvider
A read-write view to the current (i.e. latest) state of the object graph in the repository.
- Seit:
- 2.0
- Autor:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic final class
A value type that combines the result of a persistable computation and thecommit info
of the finaltransaction commit
.static interface
Encapsulates a set of notifyingtransaction
configuration options.Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.container.IContainer
org.eclipse.net4j.util.container.IContainer.Modifiable<E>, org.eclipse.net4j.util.container.IContainer.Persistable<E>, org.eclipse.net4j.util.container.IContainer.Persistence<E>
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2
-
Feldübersicht
Von Schnittstelle geerbte Felder org.eclipse.emf.cdo.common.branch.CDOBranchPoint
INVALID_DATE, UNSPECIFIED_DATE
Von Schnittstelle geerbte Felder org.eclipse.emf.cdo.util.CDOUpdatable
NO_TIMEOUT
Von Schnittstelle geerbte Felder org.eclipse.emf.cdo.view.CDOView
PROP_LIFECYCLE_EXCEPTION_HANDLER, PROP_TIME_MACHINE_DISABLED
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
commit
(Runnable runnable, int attempts, IProgressMonitor monitor) commit
(Runnable runnable, Predicate<Long> retry, IProgressMonitor monitor) commit
(Runnable runnable, org.eclipse.net4j.util.Predicate<Long> retry, IProgressMonitor monitor) Veraltet.<T> CDOTransaction.CommitResult
<T> commit
(Callable<T> callable, int attempts, IProgressMonitor monitor) <T> CDOTransaction.CommitResult
<T> commit
(Callable<T> callable, Predicate<Long> retry, IProgressMonitor monitor) <T> CDOTransaction.CommitResult
<T> commit
(Callable<T> callable, org.eclipse.net4j.util.Predicate<Long> retry, IProgressMonitor monitor) Veraltet.commitAndClose
(IProgressMonitor monitor, boolean keepOpenAfterCommitProblem) createBinaryResource
(String path) createQuery
(String language, String queryString, boolean considerDirtyState) createQuery
(String language, String queryString, Object context, boolean considerDirtyState) createResource
(String path) createResourceFolder
(String path) createTextResource
(String path) Returns the comment to be used in the next commit operation.getCommitProperty
(String key) Returns the set of objects that are conflicting with remote modifications or an empty set ifhasConflict()
returnsfalse
.long
getOrCreateResource
(String path) boolean
Returnstrue
if this transaction contains local modifications that are conflicting with remote modifications,false
otherwise.importChanges
(InputStream in, boolean reconstructSavepoints) boolean
isDirty()
Returnstrue
if this transaction is not closed and contains uncommitted changes,false
otherwise.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.merge
(CDOBranchPoint source, CDOBranchPoint sourceBase, CDOMerger merger) Merges the changes between the given source base point and the given source point into this transaction.merge
(CDOBranchPoint source, CDOMerger merger) Merges the changes from the given source point into this transaction and possibly considers previous merges from thatbranch
by inspecting themerge source
information of thecommit history
.Merges the changes from the given source branch into this transaction and possibly considers previous merges from that branch by inspecting themerge source
information of thecommit history
.options()
Returns theoptions
of this view.void
revertTo
(CDOBranchPoint branchPoint) void
setCommitComment
(String comment) Sets the comment to be used in the next commit operation.setCommitProperty
(String key, String value) void
setCommittables
(Set<? extends EObject> committables) Creates a save point in theCDOTransaction
that can be used to roll back a part of the transactionVon Schnittstelle geerbte Methoden org.eclipse.emf.cdo.common.branch.CDOBranchPoint
getBranch, getTimeStamp
Von Schnittstelle geerbte Methoden org.eclipse.emf.cdo.common.commit.CDOChangeSetDataProvider
getChangeSetData
Von Schnittstelle geerbte Methoden org.eclipse.emf.cdo.common.commit.CDOCommitHistory.Provider
getHistory, getHistory
Von Schnittstelle geerbte Methoden org.eclipse.emf.cdo.common.CDOCommonView
getDurableLockingID, getLockOwner, getSessionID, getViewID, isDurableView, isHistorical, isReadOnly
Von Schnittstelle geerbte Methoden org.eclipse.emf.cdo.common.revision.CDORevisionProvider
getRevision
Von Schnittstelle geerbte Methoden org.eclipse.emf.cdo.util.CDOUpdatable
getLastUpdateTime, runAfterUpdate, waitForUpdate, waitForUpdate
Von Schnittstelle geerbte Methoden org.eclipse.emf.cdo.transaction.CDOUserTransaction
commit, commit, rollback
Von Schnittstelle geerbte Methoden org.eclipse.emf.cdo.view.CDOView
addObjectHandler, addRegistrationHandler, compareRevisions, createQuery, createQuery, createResourceURI, disableDurableLocking, enableDurableLocking, enableDurableLocking, getBinaryResource, getLockStates, getLockStates, getLockStatesOfObjects, getObject, getObject, getObject, getObjectHandlers, getObjects, getProvider, getRegistrationHandlers, getResource, getResource, getResourceFolder, getResourceNode, getResourceSet, getRootResource, getSession, getTextResource, getUnitManager, getURI, getURIHandler, getViewLock, getViewSet, hasResource, isInvalidating, isInvalidationRunnerActive, isLegacyModeEnabled, isObjectRegistered, lockObjects, lockObjects, queryInstances, queryInstancesAsync, queryInstancesAsync, queryResources, queryResourcesAsync, queryXRefs, queryXRefs, queryXRefsAsync, refreshLockStates, reload, removeObjectHandler, removeRegistrationHandler, setBranch, setBranch, setBranchPoint, setBranchPoint, setBranchPoint, setBranchPoint, setResourcePathCache, setTimeStamp, setTimeStamp, syncExec, syncExec, unlockObjects, unlockObjects, unlockObjects
Von Schnittstelle geerbte Methoden org.eclipse.net4j.util.collection.Closeable
close, isClosed
Von Schnittstelle geerbte Methoden org.eclipse.core.runtime.IAdaptable
getAdapter
Von Schnittstelle geerbte Methoden org.eclipse.net4j.util.container.IContainer
getElements, isEmpty
Von Schnittstelle geerbte Methoden org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
Von Schnittstelle geerbte Methoden org.eclipse.net4j.util.properties.IPropertiesContainer
properties
-
Methodendetails
-
isDirty
boolean isDirty()Returnstrue
if this transaction is not closed and contains uncommitted changes,false
otherwise. -
hasConflict
boolean hasConflict()Returnstrue
if this transaction contains local modifications that are conflicting with remote modifications,false
otherwise.- Angegeben von:
hasConflict
in SchnittstelleCDOView
- Siehe auch:
-
getConflicts
Returns the set of objects that are conflicting with remote modifications or an empty set ifhasConflict()
returnsfalse
. -
revertTo
- Seit:
- 4.15
-
merge
Merges the changes from the given source branch into this transaction and possibly considers previous merges from that branch by inspecting themerge source
information of thecommit history
.- Seit:
- 4.6
- Siehe auch:
-
merge
Merges the changes from the given source point into this transaction and possibly considers previous merges from thatbranch
by inspecting themerge source
information of thecommit history
.- Seit:
- 3.0
-
merge
Merges the changes between the given source base point and the given source point into this transaction.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:
- Seit:
- 4.0
-
merge
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.When specifying an adequate target base point this method is able to perform a proper "remerge".
- Seit:
- 4.6
- Siehe auch:
-
createResourceFolder
- Löst aus:
CDOResourceNodeNotFoundException
- Seit:
- 4.0
-
getOrCreateResourceFolder
- Seit:
- 4.0
-
createResource
- Siehe auch:
-
getOrCreateResource
-
createTextResource
- Seit:
- 4.2
-
getOrCreateTextResource
- Seit:
- 4.2
-
createBinaryResource
- Seit:
- 4.2
-
getOrCreateBinaryResource
- Seit:
- 4.2
-
addTransactionHandler
- Seit:
- 4.0
-
removeTransactionHandler
- Seit:
- 4.0
-
getTransactionHandlers
CDOTransactionHandler[] getTransactionHandlers()- Seit:
- 3.0
-
getTransactionHandlers1
CDOTransactionHandler1[] getTransactionHandlers1()- Seit:
- 4.0
-
getTransactionHandlers2
CDOTransactionHandler2[] getTransactionHandlers2()- Seit:
- 4.0
-
setSavepoint
CDOSavepoint setSavepoint()Beschreibung aus Schnittstelle kopiert:CDOUserTransaction
Creates a save point in theCDOTransaction
that can be used to roll back a part of the transactionSave points do not involve the server side, everything is done on the client side.
- Angegeben von:
setSavepoint
in SchnittstelleCDOUserTransaction
- Seit:
- 3.0
-
getFirstSavepoint
CDOSavepoint getFirstSavepoint()- Seit:
- 4.1
-
getLastSavepoint
CDOSavepoint getLastSavepoint()- Angegeben von:
getLastSavepoint
in SchnittstelleCDOUserTransaction
- Seit:
- 3.0
-
getNewObjects
-
getDetachedObjects
- Seit:
- 2.0
-
getDirtyObjects
-
getRevisionDeltas
Map<CDOID,CDORevisionDelta> getRevisionDeltas() -
exportChanges
- Löst aus:
IOException
- Seit:
- 3.0
-
importChanges
- Löst aus:
IOException
- Seit:
- 3.0
-
getLastCommitTime
long getLastCommitTime() -
getCommitComment
String getCommitComment()Returns the comment to be used in the next commit operation.- Seit:
- 3.0
- Siehe auch:
-
setCommitComment
Sets the comment to be used in the next commit operation.- Seit:
- 3.0
- Siehe auch:
-
getCommitProperty
- Seit:
- 4.25
-
setCommitProperty
- Seit:
- 4.25
-
setCommittables
- Seit:
- 4.0
-
getCommittables
- Seit:
- 4.0
-
createQuery
- Seit:
- 4.0
-
createQuery
CDOQuery createQuery(String language, String queryString, Object context, boolean considerDirtyState) - Seit:
- 4.0
-
commit
@Deprecated <T> CDOTransaction.CommitResult<T> commit(Callable<T> callable, org.eclipse.net4j.util.Predicate<Long> retry, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException, Exception Veraltet.- Löst aus:
ConcurrentAccessException
CommitException
Exception
- Seit:
- 4.8
-
commit
<T> CDOTransaction.CommitResult<T> commit(Callable<T> callable, Predicate<Long> retry, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException, Exception - Löst aus:
ConcurrentAccessException
CommitException
Exception
- Seit:
- 4.9
-
commit
<T> CDOTransaction.CommitResult<T> commit(Callable<T> callable, int attempts, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException, Exception - Löst aus:
ConcurrentAccessException
CommitException
Exception
- Seit:
- 4.8
-
commit
@Deprecated CDOCommitInfo commit(Runnable runnable, org.eclipse.net4j.util.Predicate<Long> retry, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException Veraltet.- Löst aus:
ConcurrentAccessException
CommitException
- Seit:
- 4.8
-
commit
CDOCommitInfo commit(Runnable runnable, Predicate<Long> retry, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException - Löst aus:
ConcurrentAccessException
CommitException
- Seit:
- 4.9
-
commit
CDOCommitInfo commit(Runnable runnable, int attempts, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException - Löst aus:
ConcurrentAccessException
CommitException
- Seit:
- 4.8
-
commitAndClose
CDOCommitInfo commitAndClose(IProgressMonitor monitor, boolean keepOpenAfterCommitProblem) throws CommitException - Löst aus:
CommitException
- Seit:
- 4.21
-
options
CDOTransaction.Options options()Beschreibung aus Schnittstelle kopiert:CDOCommonView
Returns theoptions
of this view.- Angegeben von:
options
in SchnittstelleCDOCommonView
- Angegeben von:
options
in SchnittstelleCDOView
- Angegeben von:
options
in Schnittstelleorg.eclipse.net4j.util.options.IOptionsContainer
-
commit(Runnable, java.util.function.Predicate, IProgressMonitor)
.