Klasse CDOPushTransaction
- Alle implementierten Schnittstellen:
IAdaptable,CDOBranchPoint,CDOBranchProvider,CDOCommonTransaction,CDOCommonView,CDOChangeSetDataProvider,CDOCommitHistory.Provider<CDOObject,,CDOObjectHistory> CDORevisionProvider,CDOTimeProvider,CDOTransaction,CDOUserTransaction,CDOUpdatable,CDOView,org.eclipse.net4j.util.collection.Closeable,org.eclipse.net4j.util.container.IContainer<CDOResourceNode>,org.eclipse.net4j.util.event.INotifier,org.eclipse.net4j.util.event.INotifier.INotifier2,org.eclipse.net4j.util.options.IOptionsContainer,org.eclipse.net4j.util.properties.IPropertiesContainer
transaction that persists changes to the object graph locally on commit and can later load
these changes and push them to the repository.- Seit:
- 3.0
- Autor:
- Eike Stepper
- No Extend
- This interface is not intended to be extended by clients.
- No Instantiate
- This class is not intended to be instantiated by clients.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.emf.cdo.transaction.CDOTransaction
CDOTransaction.CommitResult<T>, CDOTransaction.OptionsVon 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_DATEVon Schnittstelle geerbte Felder org.eclipse.emf.cdo.util.CDOUpdatable
NO_TIMEOUTVon Schnittstelle geerbte Felder org.eclipse.emf.cdo.view.CDOView
PROP_LIFECYCLE_EXCEPTION_HANDLER, PROP_TIME_MACHINE_DISABLED -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCDOPushTransaction(CDOTransaction delegate) CDOPushTransaction(CDOTransaction delegate, File file) CDOPushTransaction(CDOTransaction delegate, File file, boolean reconstructSavepoints) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddListener(org.eclipse.net4j.util.event.IListener listener) voidaddObjectHandler(CDOObjectHandler handler) voidvoidvoidclose()commit()Same ascommit(null).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.commit(IProgressMonitor monitor) Commits the modifications of this transaction to the repository and returns acommit infoobject if successful.commitAndClose(IProgressMonitor monitor, boolean keepOpenAfterCommitProblem) compareRevisions(CDOBranchPoint source) createBinaryResource(String path) createQuery(String language, String queryString) Same ascreateQuery(language, queryString, null).createQuery(String language, String queryString, boolean considerDirtyState) createQuery(String language, String queryString, Object context) createQuery(String language, String queryString, Object context, boolean considerDirtyState) createResource(String path) createResourceFolder(String path) createResourceURI(String path) Returns aURIthat can be used inResourceSet.getResource(URI, boolean)to load the resource with the specified path.static FilecreateTempFile(CDOTransaction transaction) createTextResource(String path) voiddisableDurableLocking(boolean releaseLocks) Disables the storage of all information that's needed toreopenthis view at a later point in time.Enables the storage of all information that's needed toreopenthis view at a later point in time.enableDurableLocking(boolean enable) Veraltet.getAdapter(Class adapter) getBinaryResource(String path) Returns the branch of this branch point, ornullif this branch point is thebaseof themain branch.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 ifCDOTransaction.hasConflict()returnsfalse.getFile()getHistory(CDOObject object) longlongReturns the time stamp of the last commit operation.org.eclipse.net4j.util.event.IListener[]getLockStates(Collection<CDOID> ids) Get an array oflock statescorresponding to the specified collection ofids.getLockStates(Collection<CDOID> ids, boolean loadOnDemand) Get an array oflock statescorresponding to the specified collection ofids.getLockStatesOfObjects(Collection<? extends CDOObject> objects) Get an array oflock statescorresponding to the specified collection ofobjects.Returns the object for the given CDOID.Returns the object for the given CDOID.<T extends EObject>
TgetObject(T objectFromDifferentView) Takes an object from a (possibly) different view and contextifies it for the usage with this view.getObjects(Collection<CDOID> ids) Returns the objects with the given CDOIDs.getOrCreateResource(String path) Returns theproviderthat has opened this view.getResource(String path) Same asgetResource(String, true).getResource(String path, boolean loadOnDemand) getResourceFolder(String path) getResourceNode(String path) Returns the resource node with the given path.Returns theresource setthis view is associated with.getRevision(CDOID id) Returns the root resource of the repository.Returns thesessionthis view was opened by.intgetTextResource(String path) longReturns the time stamp of this branch point, or the fixed special time stampunspecifiedif this branch point marks theheadof a branch.getURI()intReturns theview setthis view is associated with.booleanReturnstrueif this transaction contains local modifications that are conflicting with remote modifications,falseotherwise.booleanbooleanhasResource(String path) Returnstrueif a resource with the given path exists in the repository,false.importChanges(InputStream in, boolean reconstructSavepoints) booleanisClosed()booleanisDirty()Returnstrueif this transaction is not closed and contains uncommitted changes,falseotherwise.booleanbooleanisEmpty()booleanbooleanbooleanVeraltet.booleanVeraltet.booleanbooleanvoidlockObjects(Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, long timeout) Locks the given objects.voidlockObjects(Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, long timeout, boolean recursive) 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 thatbranchby inspecting themerge sourceinformation 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 sourceinformation of thecommit history.options()Returns theoptionsof this view.voidpush()voidpush(IProgressMonitor progressMonitor) queryInstances(EClass type) Returns a list of the instances of the given type.<T extends EObject>
org.eclipse.net4j.util.collection.CloseableIterator<T> queryInstancesAsync(EClass type) Returns an iterator over the instances of the given type.<T extends EObject>
org.eclipse.net4j.util.collection.CloseableIterator<T> queryInstancesAsync(EClass type, boolean exact) Returns an iterator over the instances of the given type.queryResources(CDOResourceFolder folder, String name, boolean exactMatch) Returns a list of the resources in the given folder with a name equal to or starting with the value of the name parameter.org.eclipse.net4j.util.collection.CloseableIterator<CDOResourceNode> queryResourcesAsync(CDOResourceFolder folder, String name, boolean exactMatch) Returns an iterator over the resources in the given folder with a name equal to or starting with the value of the name parameter.queryXRefs(Set<CDOObject> targetObjects, EReference... sourceReferences) Returns a list ofobject referencesthat represent the cross references to the specified target objects.queryXRefs(CDOObject targetObject, EReference... sourceReferences) Returns a list ofobject referencesthat represent the cross references to the specified target object.org.eclipse.net4j.util.collection.CloseableIterator<CDOObjectReference> queryXRefsAsync(Set<CDOObject> targetObjects, EReference... sourceReferences) Returns an iterator over theobject referencesthat represent the cross references to the specified target objects.voidrefreshLockStates(Consumer<CDOLockState> consumer) Veraltet.intVeraltet.voidremoveListener(org.eclipse.net4j.util.event.IListener listener) voidremoveObjectHandler(CDOObjectHandler handler) voidvoidrevertTo(CDOBranchPoint branchPoint) voidrollback()booleanrunAfterUpdate(long updateTime, Runnable runnable) booleanSame as callingsetBranchPoint(branch, getTimeStamp()).booleansetBranch(CDOBranch branch, IProgressMonitor monitor) Same asCDOView.setBranch(CDOBranch)withIProgressMonitor.booleansetBranchPoint(CDOBranch branch, long timeStamp) Sets thebranchand the point in (repository) time this view should refer to.booleansetBranchPoint(CDOBranch branch, long timeStamp, IProgressMonitor monitor) Same asCDOView.setBranchPoint(CDOBranch, long)with aIProgressMonitor.booleansetBranchPoint(CDOBranchPoint branchPoint) Same as callingsetBranchPoint(branchPoint.getBranch(), branchPoint.getTimeStamp()).booleansetBranchPoint(CDOBranchPoint branchPoint, IProgressMonitor monitor) Same as callingCDOView.setBranchPoint(CDOBranchPoint)with aIProgressMonitor.voidsetCommitComment(String comment) Sets the comment to be used in the next commit operation.setCommitProperty(String key, String value) voidsetCommittables(Set<? extends EObject> committables) protected voidsetDirty(boolean dirty) voidsetResourcePathCache(Map<String, CDOID> resourcePathCache) Sets the newmapto be used as a cache for variousget*Resource*(String path)methods.Creates a save point in theCDOTransactionthat can be used to roll back a part of the transactionbooleansetTimeStamp(long timeStamp) Same as callingsetBranchPoint(getBranch(), timeStamp).booleansetTimeStamp(long timeStamp, IProgressMonitor monitor) Same asCDOView.setTimeStamp(long)withIProgressMonitor.void<V> VtoString()voidUnlocks all locked objects of this view.voidunlockObjects(Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType) Unlocks the given locked objects of this view.voidunlockObjects(Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, boolean recursive) voidwaitForUpdate(long updateTime) Blocks the calling thread until a commit operation with the given time stamp (or higher) has occurred.booleanwaitForUpdate(long updateTime, long timeoutMillis) Blocks the calling thread until a commit operation with the given time stamp (or higher) has occurred or the given timeout has expired.Von Klasse geerbte Methoden org.eclipse.net4j.util.event.Notifier
addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getNotificationService, hasListener, lastListenerRemoved, listenerAdded, listenerRemoved
-
Konstruktordetails
-
CDOPushTransaction
- Löst aus:
IOException
-
CDOPushTransaction
- Löst aus:
IOException
-
CDOPushTransaction
public CDOPushTransaction(CDOTransaction delegate, File file, boolean reconstructSavepoints) throws IOException - Löst aus:
IOException
-
-
Methodendetails
-
getDelegate
-
getFile
-
properties
- Angegeben von:
propertiesin Schnittstelleorg.eclipse.net4j.util.properties.IPropertiesContainer- Seit:
- 4.4
-
isDirty
public boolean isDirty()Beschreibung aus Schnittstelle kopiert:CDOTransactionReturnstrueif this transaction is not closed and contains uncommitted changes,falseotherwise.- Angegeben von:
isDirtyin SchnittstelleCDOTransaction- Angegeben von:
isDirtyin SchnittstelleCDOView- Siehe auch:
-
setDirty
protected void setDirty(boolean dirty) -
commit
Beschreibung aus Schnittstelle kopiert:CDOUserTransactionSame ascommit(null).- Angegeben von:
commitin SchnittstelleCDOUserTransaction- Löst aus:
CommitException
-
commit
Beschreibung aus Schnittstelle kopiert:CDOUserTransactionCommits the modifications of this transaction to the repository and returns acommit infoobject if successful.Various kinds of problems can cause the commit to fail and not all of them can be avoided by acquiring pessimistic
lockson the modified objects. In particular you must expect and handlecontainment cycle exceptions. The following example shows how write robust transactions:CDOTransaction transaction = null; try { transaction = session.openTransaction(); for (;;) { transaction.getViewLock().lock(); try { CDOResource resource = transaction.getResource("/stock/resource1"); // Modify the model here... transaction.commit(); break; } catch (ConcurrentAccessException ex) { transaction.rollback(); } catch (CommitException ex) { throw ex.wrap(); } finally { transaction.getViewLock().unlock(); } } } finally { if (transaction != null) { transaction.close(); } }Note that the transaction stays functional after a any call to thecommit()methods. If the transaction is not closed after a commit it can be used to apply additional modifications to the model.- Angegeben von:
commitin SchnittstelleCDOUserTransaction- Löst aus:
CommitException
-
commit
@Deprecated public <T> CDOTransaction.CommitResult<T> commit(Callable<T> callable, org.eclipse.net4j.util.Predicate<Long> retry, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException, Exception Veraltet.- Angegeben von:
commitin SchnittstelleCDOTransaction- Löst aus:
ConcurrentAccessExceptionCommitExceptionException
-
commit
public <T> CDOTransaction.CommitResult<T> commit(Callable<T> callable, Predicate<Long> retry, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException, Exception - Angegeben von:
commitin SchnittstelleCDOTransaction- Löst aus:
ConcurrentAccessExceptionCommitExceptionException
-
commit
public <T> CDOTransaction.CommitResult<T> commit(Callable<T> callable, int attempts, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException, Exception - Angegeben von:
commitin SchnittstelleCDOTransaction- Löst aus:
ConcurrentAccessExceptionCommitExceptionException
-
commit
@Deprecated public CDOCommitInfo commit(Runnable runnable, org.eclipse.net4j.util.Predicate<Long> retry, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException Veraltet.- Angegeben von:
commitin SchnittstelleCDOTransaction- Löst aus:
ConcurrentAccessExceptionCommitException
-
commit
public CDOCommitInfo commit(Runnable runnable, Predicate<Long> retry, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException - Angegeben von:
commitin SchnittstelleCDOTransaction- Löst aus:
ConcurrentAccessExceptionCommitException
-
commit
public CDOCommitInfo commit(Runnable runnable, int attempts, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException - Angegeben von:
commitin SchnittstelleCDOTransaction- Löst aus:
ConcurrentAccessExceptionCommitException
-
commitAndClose
public CDOCommitInfo commitAndClose(IProgressMonitor monitor, boolean keepOpenAfterCommitProblem) throws CommitException - Angegeben von:
commitAndClosein SchnittstelleCDOTransaction- Löst aus:
CommitException
-
rollback
public void rollback()- Angegeben von:
rollbackin SchnittstelleCDOUserTransaction
-
push
- Löst aus:
CommitException
-
push
- Löst aus:
CommitException
-
exportChanges
- Angegeben von:
exportChangesin SchnittstelleCDOTransaction- Löst aus:
IOException
-
importChanges
public CDOSavepoint[] importChanges(InputStream in, boolean reconstructSavepoints) throws IOException - Angegeben von:
importChangesin SchnittstelleCDOTransaction- Löst aus:
IOException
-
getLastCommitTime
public long getLastCommitTime()- Angegeben von:
getLastCommitTimein SchnittstelleCDOTransaction
-
addListener
public void addListener(org.eclipse.net4j.util.event.IListener listener) - Angegeben von:
addListenerin Schnittstelleorg.eclipse.net4j.util.event.INotifier- Setzt außer Kraft:
addListenerin Klasseorg.eclipse.net4j.util.event.Notifier
-
removeListener
public void removeListener(org.eclipse.net4j.util.event.IListener listener) - Angegeben von:
removeListenerin Schnittstelleorg.eclipse.net4j.util.event.INotifier- Setzt außer Kraft:
removeListenerin Klasseorg.eclipse.net4j.util.event.Notifier
-
hasListeners
public boolean hasListeners()- Angegeben von:
hasListenersin Schnittstelleorg.eclipse.net4j.util.event.INotifier- Setzt außer Kraft:
hasListenersin Klasseorg.eclipse.net4j.util.event.Notifier
-
getListeners
public org.eclipse.net4j.util.event.IListener[] getListeners()- Angegeben von:
getListenersin Schnittstelleorg.eclipse.net4j.util.event.INotifier- Setzt außer Kraft:
getListenersin Klasseorg.eclipse.net4j.util.event.Notifier
-
addObjectHandler
- Angegeben von:
addObjectHandlerin SchnittstelleCDOView
-
addRegistrationHandler
- Angegeben von:
addRegistrationHandlerin SchnittstelleCDOView- Seit:
- 4.6
-
addTransactionHandler
- Angegeben von:
addTransactionHandlerin SchnittstelleCDOTransaction- Seit:
- 4.0
-
close
public void close()- Angegeben von:
closein Schnittstelleorg.eclipse.net4j.util.collection.Closeable
-
createQuery
Beschreibung aus Schnittstelle kopiert:CDOViewSame ascreateQuery(language, queryString, null).- Angegeben von:
createQueryin SchnittstelleCDOView- Siehe auch:
-
createQuery
- Angegeben von:
createQueryin SchnittstelleCDOView- Seit:
- 4.0
-
createQuery
- Angegeben von:
createQueryin SchnittstelleCDOTransaction- Seit:
- 4.0
-
createQuery
public CDOQuery createQuery(String language, String queryString, Object context, boolean considerDirtyState) - Angegeben von:
createQueryin SchnittstelleCDOTransaction- Seit:
- 4.0
-
createResourceFolder
- Angegeben von:
createResourceFolderin SchnittstelleCDOTransaction- Seit:
- 4.0
-
createResource
- Angegeben von:
createResourcein SchnittstelleCDOTransaction- Siehe auch:
-
isLegacyModeEnabled
Veraltet.- Angegeben von:
isLegacyModeEnabledin SchnittstelleCDOView- Siehe auch:
-
getLastUpdateTime
public long getLastUpdateTime()Beschreibung aus Schnittstelle kopiert:CDOUpdatableReturns the time stamp of the last commit operation. May not be accurate ifpassive updatesare disabled.- Angegeben von:
getLastUpdateTimein SchnittstelleCDOUpdatable
-
waitForUpdate
public void waitForUpdate(long updateTime) Beschreibung aus Schnittstelle kopiert:CDOUpdatableBlocks the calling thread until a commit operation with the given time stamp (or higher) has occurred.- Angegeben von:
waitForUpdatein SchnittstelleCDOUpdatable- Parameter:
updateTime- the time stamp of the update to wait for in milliseconds since Unix epoch.
-
waitForUpdate
public boolean waitForUpdate(long updateTime, long timeoutMillis) Beschreibung aus Schnittstelle kopiert:CDOUpdatableBlocks the calling thread until a commit operation with the given time stamp (or higher) has occurred or the given timeout has expired.- Angegeben von:
waitForUpdatein SchnittstelleCDOUpdatable- Parameter:
updateTime- the time stamp of the update to wait for in milliseconds since Unix epoch.timeoutMillis- the maximum number of milliseconds to wait for the update to occur, orCDOUpdatable.NO_TIMEOUTto wait indefinitely.- Gibt zurück:
trueif the specified commit operation has occurred within the given timeout period,falseotherwise.
-
runAfterUpdate
- Angegeben von:
runAfterUpdatein SchnittstelleCDOUpdatable- Seit:
- 4.3
-
getConflicts
Beschreibung aus Schnittstelle kopiert:CDOTransactionReturns the set of objects that are conflicting with remote modifications or an empty set ifCDOTransaction.hasConflict()returnsfalse.- Angegeben von:
getConflictsin SchnittstelleCDOTransaction
-
getChangeSetData
- Angegeben von:
getChangeSetDatain SchnittstelleCDOChangeSetDataProvider- Seit:
- 4.0
-
getDetachedObjects
- Angegeben von:
getDetachedObjectsin SchnittstelleCDOTransaction
-
getDirtyObjects
- Angegeben von:
getDirtyObjectsin SchnittstelleCDOTransaction
-
getRevision
- Angegeben von:
getRevisionin SchnittstelleCDORevisionProvider- Seit:
- 4.0
-
getFirstSavepoint
- Angegeben von:
getFirstSavepointin SchnittstelleCDOTransaction- Seit:
- 4.1
-
getLastSavepoint
- Angegeben von:
getLastSavepointin SchnittstelleCDOTransaction- Angegeben von:
getLastSavepointin SchnittstelleCDOUserTransaction
-
isInvalidationRunnerActive
Veraltet.- Angegeben von:
isInvalidationRunnerActivein SchnittstelleCDOView- Seit:
- 4.0
-
isInvalidating
public boolean isInvalidating()- Angegeben von:
isInvalidatingin SchnittstelleCDOView- Seit:
- 4.7
-
getNewObjects
- Angegeben von:
getNewObjectsin SchnittstelleCDOTransaction
-
getObjects
Beschreibung aus Schnittstelle kopiert:CDOViewReturns the objects with the given CDOIDs.If objects are missing from the local cache they are loaded from the server in one round-trip.
- Angegeben von:
getObjectsin SchnittstelleCDOView- Parameter:
ids- the collection of CDOIDs that identify the CDOObjects to return.- Gibt zurück:
- a map that contains the CDOObjects with the given CDOIDs.
- Seit:
- 4.13
-
getObject
Beschreibung aus Schnittstelle kopiert:CDOViewReturns the object for the given CDOID. -
getObject
Beschreibung aus Schnittstelle kopiert:CDOViewReturns the object for the given CDOID.Same as
getObject(id, true). -
getObject
Beschreibung aus Schnittstelle kopiert:CDOViewTakes an object from a (possibly) different view and contextifies it for the usage with this view.- If the given object is contained in this view it is returned unmodified.
- If the given object can not be cast to
CDOObjectit is returned unmodified. - If the view of the given object is contained in a different session an
IllegalArgumentExceptionis thrown. - If
nullis passednullis returned.
-
getObjectHandlers
- Angegeben von:
getObjectHandlersin SchnittstelleCDOView
-
getRegistrationHandlers
- Angegeben von:
getRegistrationHandlersin SchnittstelleCDOView- Seit:
- 4.6
-
getOrCreateResource
- Angegeben von:
getOrCreateResourcein SchnittstelleCDOTransaction
-
getOrCreateResourceFolder
- Angegeben von:
getOrCreateResourceFolderin SchnittstelleCDOTransaction- Seit:
- 4.0
-
getResource
public CDOResource getResource(String path, boolean loadOnDemand) throws CDOResourceNodeNotFoundException - Angegeben von:
getResourcein SchnittstelleCDOView- Löst aus:
CDOResourceNodeNotFoundException- Siehe auch:
-
getResource
Beschreibung aus Schnittstelle kopiert:CDOViewSame asgetResource(String, true).- Angegeben von:
getResourcein SchnittstelleCDOView- Löst aus:
CDOResourceNodeNotFoundException- Siehe auch:
-
getResourceNode
Beschreibung aus Schnittstelle kopiert:CDOViewReturns the resource node with the given path.- Angegeben von:
getResourceNodein SchnittstelleCDOView- Gibt zurück:
- never
null. - Löst aus:
CDOResourceNodeNotFoundException
-
createTextResource
- Angegeben von:
createTextResourcein SchnittstelleCDOTransaction- Seit:
- 4.2
-
getOrCreateTextResource
- Angegeben von:
getOrCreateTextResourcein SchnittstelleCDOTransaction- Seit:
- 4.2
-
createBinaryResource
- Angegeben von:
createBinaryResourcein SchnittstelleCDOTransaction- Seit:
- 4.2
-
getOrCreateBinaryResource
- Angegeben von:
getOrCreateBinaryResourcein SchnittstelleCDOTransaction- Seit:
- 4.2
-
getTextResource
- Angegeben von:
getTextResourcein SchnittstelleCDOView- Löst aus:
CDOResourceNodeNotFoundException- Seit:
- 4.2
-
getBinaryResource
- Angegeben von:
getBinaryResourcein SchnittstelleCDOView- Löst aus:
CDOResourceNodeNotFoundException- Seit:
- 4.2
-
getResourceFolder
- Angegeben von:
getResourceFolderin SchnittstelleCDOView- Löst aus:
CDOResourceNodeNotFoundException- Seit:
- 4.2
-
setResourcePathCache
Beschreibung aus Schnittstelle kopiert:CDOViewSets the newmapto be used as a cache for variousget*Resource*(String path)methods.Can be used to reset/clear the resource path cache by passing a
new HashMap<String, CDOID>(). Smarter maps could implement a LRU eviction policy to limit the map capacity. Passingnulldisables resource path caching.The default value is
new HashMap<String, CDOID>().- Angegeben von:
setResourcePathCachein SchnittstelleCDOView- Seit:
- 4.2
- Siehe auch:
-
getResourceSet
Beschreibung aus Schnittstelle kopiert:CDOViewReturns theresource setthis view is associated with.Same as calling getViewSet().getResourceSet().
- Angegeben von:
getResourceSetin SchnittstelleCDOView- Siehe auch:
-
getRevisionDeltas
- Angegeben von:
getRevisionDeltasin SchnittstelleCDOTransaction
-
getRootResource
Beschreibung aus Schnittstelle kopiert:CDOViewReturns the root resource of the repository.The root resource is a special resource with only
CDOResourceNodesin its contents list. You can use it as the main entry into the new resource and folder structure.- Angegeben von:
getRootResourcein SchnittstelleCDOView
-
getSession
Beschreibung aus Schnittstelle kopiert:CDOViewReturns thesessionthis view was opened by.- Angegeben von:
getSessionin SchnittstelleCDOCommonView- Angegeben von:
getSessionin SchnittstelleCDOView- Gibt zurück:
- The session this view was opened by, or
nullif this view is closed. - Siehe auch:
-
getProvider
Beschreibung aus Schnittstelle kopiert:CDOViewReturns theproviderthat has opened this view.- Angegeben von:
getProviderin SchnittstelleCDOView- Seit:
- 4.4
-
createResourceURI
Beschreibung aus Schnittstelle kopiert:CDOViewReturns aURIthat can be used inResourceSet.getResource(URI, boolean)to load the resource with the specified path.- Angegeben von:
createResourceURIin SchnittstelleCDOView- Seit:
- 4.4
-
getTimeStamp
public long getTimeStamp()Beschreibung aus Schnittstelle kopiert:CDOBranchPointReturns the time stamp of this branch point, or the fixed special time stampunspecifiedif this branch point marks theheadof a branch.- Angegeben von:
getTimeStampin SchnittstelleCDOBranchPoint- Angegeben von:
getTimeStampin SchnittstelleCDOTimeProvider
-
getDurableLockingID
- Angegeben von:
getDurableLockingIDin SchnittstelleCDOCommonView- Seit:
- 4.0
-
getTransactionHandlers
- Angegeben von:
getTransactionHandlersin SchnittstelleCDOTransaction
-
getTransactionHandlers1
- Angegeben von:
getTransactionHandlers1in SchnittstelleCDOTransaction- Seit:
- 4.0
-
getTransactionHandlers2
- Angegeben von:
getTransactionHandlers2in SchnittstelleCDOTransaction- Seit:
- 4.0
-
getSessionID
public int getSessionID()- Angegeben von:
getSessionIDin SchnittstelleCDOCommonView- Seit:
- 4.1
-
isDurableView
public boolean isDurableView()- Angegeben von:
isDurableViewin SchnittstelleCDOCommonView- Seit:
- 4.1
-
getLockOwner
- Angegeben von:
getLockOwnerin SchnittstelleCDOCommonView- Seit:
- 4.15
-
getURI
-
getViewID
public int getViewID()- Angegeben von:
getViewIDin SchnittstelleCDOCommonView
-
getViewSet
Beschreibung aus Schnittstelle kopiert:CDOViewReturns theview setthis view is associated with.- Angegeben von:
getViewSetin SchnittstelleCDOView- Gibt zurück:
- The view set this view is associated with, never
null. - Siehe auch:
-
getViewLock
- Angegeben von:
getViewLockin SchnittstelleCDOView- Seit:
- 4.5
-
syncExec
-
syncExec
-
hasConflict
public boolean hasConflict()Beschreibung aus Schnittstelle kopiert:CDOTransactionReturnstrueif this transaction contains local modifications that are conflicting with remote modifications,falseotherwise.- Angegeben von:
hasConflictin SchnittstelleCDOTransaction- Angegeben von:
hasConflictin SchnittstelleCDOView- Siehe auch:
-
hasResource
Beschreibung aus Schnittstelle kopiert:CDOViewReturnstrueif a resource with the given path exists in the repository,false. Applies tofile resources, as well.- Angegeben von:
hasResourcein SchnittstelleCDOView- Siehe auch:
-
isClosed
public boolean isClosed()- Angegeben von:
isClosedin Schnittstelleorg.eclipse.net4j.util.collection.Closeable
-
isObjectRegistered
Beschreibung aus Schnittstelle kopiert:CDOView- Angegeben von:
isObjectRegisteredin SchnittstelleCDOView
-
refreshLockStates
Veraltet.Beschreibung aus Schnittstelle kopiert:CDOViewRefreshes thelock statesof thisviewwith the latest states from the repository. If a lock state consumer is passed it is called for each resulting new lock state.- Angegeben von:
refreshLockStatesin SchnittstelleCDOView- Seit:
- 4.12
-
getLockStates
Beschreibung aus Schnittstelle kopiert:CDOViewGet an array oflock statescorresponding to the specified collection ofids. If the collection ofidsis empty,lock statesof all objects are returned.- Angegeben von:
getLockStatesin SchnittstelleCDOView- Seit:
- 4.6
-
getLockStates
Beschreibung aus Schnittstelle kopiert:CDOViewGet an array oflock statescorresponding to the specified collection ofids. If the collection ofidsis empty,lock statesof all objects are returned.- Angegeben von:
getLockStatesin SchnittstelleCDOView
-
getLockStatesOfObjects
Beschreibung aus Schnittstelle kopiert:CDOViewGet an array oflock statescorresponding to the specified collection ofobjects. If the collection ofobjectsis empty,lock statesof all locked objects are returned.- Angegeben von:
getLockStatesOfObjectsin SchnittstelleCDOView- Seit:
- 4.6
-
lockObjects
public void lockObjects(Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, long timeout) throws InterruptedException Beschreibung aus Schnittstelle kopiert:CDOViewLocks the given objects. Once the objects are locked, they will not be changed remotely or go in conflict state.- Angegeben von:
lockObjectsin SchnittstelleCDOView- Löst aus:
InterruptedException
-
lockObjects
public void lockObjects(Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, long timeout, boolean recursive) throws InterruptedException - Angegeben von:
lockObjectsin SchnittstelleCDOView- Löst aus:
InterruptedException
-
options
Beschreibung aus Schnittstelle kopiert:CDOCommonViewReturns theoptionsof this view.- Angegeben von:
optionsin SchnittstelleCDOCommonView- Angegeben von:
optionsin SchnittstelleCDOTransaction- Angegeben von:
optionsin SchnittstelleCDOView- Angegeben von:
optionsin Schnittstelleorg.eclipse.net4j.util.options.IOptionsContainer
-
queryResources
public List<CDOResourceNode> queryResources(CDOResourceFolder folder, String name, boolean exactMatch) Beschreibung aus Schnittstelle kopiert:CDOViewReturns a list of the resources in the given folder with a name equal to or starting with the value of the name parameter.- Angegeben von:
queryResourcesin SchnittstelleCDOView- Parameter:
folder- The folder to search in, ornullfor top level resource nodes.name- the name or prefix of the resource nodes to return.exactMatch-trueif the complete name of the resource must match,falseif only a common prefix of the name must match.
-
queryResourcesAsync
public org.eclipse.net4j.util.collection.CloseableIterator<CDOResourceNode> queryResourcesAsync(CDOResourceFolder folder, String name, boolean exactMatch) Beschreibung aus Schnittstelle kopiert:CDOViewReturns an iterator over the resources in the given folder with a name equal to or starting with the value of the name parameter. The underlying query will be executed asynchronously.- Angegeben von:
queryResourcesAsyncin SchnittstelleCDOView- Parameter:
folder- The folder to search in, ornullfor top level resource nodes.name- the name or prefix of the resource nodes to return.exactMatch-trueif the complete name of the resource must match,falseif only a common prefix of the name must match.
-
queryInstances
Beschreibung aus Schnittstelle kopiert:CDOViewReturns a list of the instances of the given type.- Angegeben von:
queryInstancesin SchnittstelleCDOView- Seit:
- 4.3
-
queryInstancesAsync
public <T extends EObject> org.eclipse.net4j.util.collection.CloseableIterator<T> queryInstancesAsync(EClass type) Beschreibung aus Schnittstelle kopiert:CDOViewReturns an iterator over the instances of the given type. The underlying query will be executed asynchronously.- Angegeben von:
queryInstancesAsyncin SchnittstelleCDOView- Seit:
- 4.3
-
queryInstancesAsync
public <T extends EObject> org.eclipse.net4j.util.collection.CloseableIterator<T> queryInstancesAsync(EClass type, boolean exact) Beschreibung aus Schnittstelle kopiert:CDOViewReturns an iterator over the instances of the given type. The underlying query will be executed asynchronously.- Angegeben von:
queryInstancesAsyncin SchnittstelleCDOView- Seit:
- 4.6
-
queryXRefs
Beschreibung aus Schnittstelle kopiert:CDOViewReturns a list ofobject referencesthat represent the cross references to the specified target object.- Angegeben von:
queryXRefsin SchnittstelleCDOView- Parameter:
targetObject- The target object that referencing objects are requested for. An external target object can be used with the help ofCDOUtil.wrapExternalObject().sourceReferences- The reference features that referencing objects are requested for, or an empty array if all reference features are to be used in the request.- Seit:
- 4.0
- Siehe auch:
-
queryXRefs
public List<CDOObjectReference> queryXRefs(Set<CDOObject> targetObjects, EReference... sourceReferences) Beschreibung aus Schnittstelle kopiert:CDOViewReturns a list ofobject referencesthat represent the cross references to the specified target objects.- Angegeben von:
queryXRefsin SchnittstelleCDOView- Parameter:
targetObjects- The set of target objects that referencing objects are requested for. External target objects can be used with the help ofCDOUtil.wrapExternalObject().sourceReferences- The reference features that referencing objects are requested for, or an empty array if all reference features are to be used in the request.- Siehe auch:
-
queryXRefsAsync
public org.eclipse.net4j.util.collection.CloseableIterator<CDOObjectReference> queryXRefsAsync(Set<CDOObject> targetObjects, EReference... sourceReferences) Beschreibung aus Schnittstelle kopiert:CDOViewReturns an iterator over theobject referencesthat represent the cross references to the specified target objects. The underlying query will be executed asynchronously.- Angegeben von:
queryXRefsAsyncin SchnittstelleCDOView- Parameter:
targetObjects- The set of target objects that referencing objects are requested for. External target objects can be used with the help ofCDOUtil.wrapExternalObject().sourceReferences- The reference features that referencing objects are requested for, or an empty array if all reference features are to be used in the request.- Siehe auch:
-
reload
Veraltet.Beschreibung aus Schnittstelle kopiert:CDOViewReloads the givenobjectsfrom the repository. -
removeObjectHandler
- Angegeben von:
removeObjectHandlerin SchnittstelleCDOView
-
removeRegistrationHandler
- Angegeben von:
removeRegistrationHandlerin SchnittstelleCDOView- Seit:
- 4.6
-
removeTransactionHandler
- Angegeben von:
removeTransactionHandlerin SchnittstelleCDOTransaction- Seit:
- 4.0
-
revertTo
- Angegeben von:
revertToin SchnittstelleCDOTransaction- Seit:
- 4.15
-
merge
Beschreibung aus Schnittstelle kopiert:CDOTransactionMerges the changes from the given source branch into this transaction and possibly considers previous merges from that branch by inspecting themerge sourceinformation of thecommit history.- Angegeben von:
mergein SchnittstelleCDOTransaction- Seit:
- 4.6
- Siehe auch:
-
merge
Beschreibung aus Schnittstelle kopiert:CDOTransactionMerges the changes from the given source point into this transaction and possibly considers previous merges from thatbranchby inspecting themerge sourceinformation of thecommit history.- Angegeben von:
mergein SchnittstelleCDOTransaction
-
merge
Beschreibung aus Schnittstelle kopiert:CDOTransactionMerges 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:
- Angegeben von:
mergein SchnittstelleCDOTransaction- Seit:
- 4.0
-
merge
public CDOChangeSetData merge(CDOBranchPoint source, CDOBranchPoint sourceBase, CDOBranchPoint targetBase, CDOMerger merger) Beschreibung aus Schnittstelle kopiert:CDOTransactionMerges 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".
- Angegeben von:
mergein SchnittstelleCDOTransaction- Seit:
- 4.6
- Siehe auch:
-
compareRevisions
- Angegeben von:
compareRevisionsin SchnittstelleCDOView- Seit:
- 4.0
-
getHistory
- Angegeben von:
getHistoryin SchnittstelleCDOCommitHistory.Provider<CDOObject,CDOObjectHistory> - Seit:
- 4.2
-
getHistory
- Angegeben von:
getHistoryin SchnittstelleCDOCommitHistory.Provider<CDOObject,CDOObjectHistory> - Seit:
- 4.2
-
setSavepoint
Beschreibung aus Schnittstelle kopiert:CDOUserTransactionCreates a save point in theCDOTransactionthat 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:
setSavepointin SchnittstelleCDOTransaction- Angegeben von:
setSavepointin SchnittstelleCDOUserTransaction
-
unlockObjects
public void unlockObjects()Beschreibung aus Schnittstelle kopiert:CDOViewUnlocks all locked objects of this view.- Angegeben von:
unlockObjectsin SchnittstelleCDOView
-
unlockObjects
public void unlockObjects(Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType) Beschreibung aus Schnittstelle kopiert:CDOViewUnlocks the given locked objects of this view.- Angegeben von:
unlockObjectsin SchnittstelleCDOView
-
unlockObjects
public void unlockObjects(Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, boolean recursive) - Angegeben von:
unlockObjectsin SchnittstelleCDOView
-
enableDurableLocking
Veraltet.UseenableDurableLocking()instead ordisableDurableLocking(boolean), respectively.- Angegeben von:
enableDurableLockingin SchnittstelleCDOView- Seit:
- 4.0
-
enableDurableLocking
Beschreibung aus Schnittstelle kopiert:CDOViewEnables the storage of all information that's needed toreopenthis view at a later point in time. This information includes thebranch point, the user ID of thesession, whether it's a read-only view or atransactionand all the locks that are acquired or will be acquired while durable locking is enabled.- Angegeben von:
enableDurableLockingin SchnittstelleCDOView- Seit:
- 4.1
- Siehe auch:
-
disableDurableLocking
public void disableDurableLocking(boolean releaseLocks) Beschreibung aus Schnittstelle kopiert:CDOViewDisables the storage of all information that's needed toreopenthis view at a later point in time. If such information is stored when this method is called it is removed. Note that locks acquired by this view are only released iftrueis passed to thereleaseLocksparameter.- Angegeben von:
disableDurableLockingin SchnittstelleCDOView- Seit:
- 4.1
- Siehe auch:
-
isReadOnly
public boolean isReadOnly()- Angegeben von:
isReadOnlyin SchnittstelleCDOCommonView
-
isHistorical
public boolean isHistorical()- Angegeben von:
isHistoricalin SchnittstelleCDOCommonView- Seit:
- 4.5
-
getBranch
Beschreibung aus Schnittstelle kopiert:CDOBranchPointReturns the branch of this branch point, ornullif this branch point is thebaseof themain branch.- Angegeben von:
getBranchin SchnittstelleCDOBranchPoint- Angegeben von:
getBranchin SchnittstelleCDOBranchProvider
-
setBranchPoint
Beschreibung aus Schnittstelle kopiert:CDOViewSets thebranchand the point in (repository) time this view should refer to.Objectsprovided by this view will bevalidat this time. The special valueUNSPECIFIED_DATEdenotes a "floating view" that always shows the latest state of the repository.- Angegeben von:
setBranchPointin SchnittstelleCDOView- Gibt zurück:
trueif the branch point was changed,falseotherwise.
-
setBranchPoint
Beschreibung aus Schnittstelle kopiert:CDOViewSame asCDOView.setBranchPoint(CDOBranch, long)with aIProgressMonitor.- Angegeben von:
setBranchPointin SchnittstelleCDOView- Seit:
- 4.4
-
setBranchPoint
Beschreibung aus Schnittstelle kopiert:CDOViewSame as callingsetBranchPoint(branchPoint.getBranch(), branchPoint.getTimeStamp()).- Angegeben von:
setBranchPointin SchnittstelleCDOView
-
setBranchPoint
Beschreibung aus Schnittstelle kopiert:CDOViewSame as callingCDOView.setBranchPoint(CDOBranchPoint)with aIProgressMonitor.- Angegeben von:
setBranchPointin SchnittstelleCDOView- Seit:
- 4.4
-
setBranch
Beschreibung aus Schnittstelle kopiert:CDOViewSame as callingsetBranchPoint(branch, getTimeStamp()). -
setBranch
Beschreibung aus Schnittstelle kopiert:CDOViewSame asCDOView.setBranch(CDOBranch)withIProgressMonitor. -
setTimeStamp
public boolean setTimeStamp(long timeStamp) Beschreibung aus Schnittstelle kopiert:CDOViewSame as callingsetBranchPoint(getBranch(), timeStamp).- Angegeben von:
setTimeStampin SchnittstelleCDOView
-
setTimeStamp
Beschreibung aus Schnittstelle kopiert:CDOViewSame asCDOView.setTimeStamp(long)withIProgressMonitor.- Angegeben von:
setTimeStampin SchnittstelleCDOView- Seit:
- 4.4
-
getURIHandler
- Angegeben von:
getURIHandlerin SchnittstelleCDOView
-
getUnitManager
- Angegeben von:
getUnitManagerin SchnittstelleCDOView- Seit:
- 4.5
-
getCommitComment
Beschreibung aus Schnittstelle kopiert:CDOTransactionReturns the comment to be used in the next commit operation.- Angegeben von:
getCommitCommentin SchnittstelleCDOTransaction- Siehe auch:
-
setCommitComment
Beschreibung aus Schnittstelle kopiert:CDOTransactionSets the comment to be used in the next commit operation.- Angegeben von:
setCommitCommentin SchnittstelleCDOTransaction- Siehe auch:
-
getCommitProperty
- Angegeben von:
getCommitPropertyin SchnittstelleCDOTransaction
-
setCommitProperty
- Angegeben von:
setCommitPropertyin SchnittstelleCDOTransaction
-
setCommittables
- Angegeben von:
setCommittablesin SchnittstelleCDOTransaction- Seit:
- 4.0
-
getCommittables
- Angegeben von:
getCommittablesin SchnittstelleCDOTransaction- Seit:
- 4.0
-
isEmpty
public boolean isEmpty()- Angegeben von:
isEmptyin Schnittstelleorg.eclipse.net4j.util.container.IContainer<CDOResourceNode>- Seit:
- 4.2
-
getElements
- Angegeben von:
getElementsin Schnittstelleorg.eclipse.net4j.util.container.IContainer<CDOResourceNode>- Seit:
- 4.2
-
toString
-
getAdapter
- Angegeben von:
getAdapterin SchnittstelleIAdaptable- Seit:
- 4.2
-
createTempFile
- Löst aus:
IOException
-
enableDurableLocking()instead ordisableDurableLocking(boolean), respectively.