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.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
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCDOPushTransaction
(CDOTransaction delegate) CDOPushTransaction
(CDOTransaction delegate, File file) CDOPushTransaction
(CDOTransaction delegate, File file, boolean reconstructSavepoints) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addListener
(org.eclipse.net4j.util.event.IListener listener) void
addObjectHandler
(CDOObjectHandler handler) void
void
void
close()
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 info
object 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 aURI
that can be used inResourceSet.getResource(URI, boolean)
to load the resource with the specified path.static File
createTempFile
(CDOTransaction transaction) createTextResource
(String path) void
disableDurableLocking
(boolean releaseLocks) Disables the storage of all information that's needed toreopen
this view at a later point in time.Enables the storage of all information that's needed toreopen
this view at a later point in time.enableDurableLocking
(boolean enable) Veraltet.getAdapter
(Class adapter) getBinaryResource
(String path) Returns the branch of this branch point, ornull
if this branch point is thebase
of 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) long
long
Returns the time stamp of the last commit operation.org.eclipse.net4j.util.event.IListener[]
getLockStates
(Collection<CDOID> ids) Get an array oflock states
corresponding to the specified collection ofids
.getLockStates
(Collection<CDOID> ids, boolean loadOnDemand) Get an array oflock states
corresponding to the specified collection ofids
.getLockStatesOfObjects
(Collection<? extends CDOObject> objects) Get an array oflock states
corresponding 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 theprovider
that 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 set
this view is associated with.getRevision
(CDOID id) Returns the root resource of the repository.Returns thesession
this view was opened by.int
getTextResource
(String path) long
Returns the time stamp of this branch point, or the fixed special time stampunspecified
if this branch point marks thehead
of a branch.getURI()
int
Returns theview set
this view is associated with.boolean
Returnstrue
if this transaction contains local modifications that are conflicting with remote modifications,false
otherwise.boolean
boolean
hasResource
(String path) Returnstrue
if a resource with the given path exists in the repository,false
.importChanges
(InputStream in, boolean reconstructSavepoints) boolean
isClosed()
boolean
isDirty()
Returnstrue
if this transaction is not closed and contains uncommitted changes,false
otherwise.boolean
boolean
isEmpty()
boolean
boolean
boolean
Veraltet.boolean
Veraltet.boolean
boolean
void
lockObjects
(Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, long timeout) Locks the given objects.void
lockObjects
(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 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
push()
void
push
(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 references
that represent the cross references to the specified target objects.queryXRefs
(CDOObject targetObject, EReference... sourceReferences) Returns a list ofobject references
that 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 references
that represent the cross references to the specified target objects.void
refreshLockStates
(Consumer<CDOLockState> consumer) Veraltet.int
Veraltet.void
removeListener
(org.eclipse.net4j.util.event.IListener listener) void
removeObjectHandler
(CDOObjectHandler handler) void
void
revertTo
(CDOBranchPoint branchPoint) void
rollback()
boolean
runAfterUpdate
(long updateTime, Runnable runnable) boolean
Same as callingsetBranchPoint(branch, getTimeStamp())
.boolean
setBranch
(CDOBranch branch, IProgressMonitor monitor) Same asCDOView.setBranch(CDOBranch)
withIProgressMonitor
.boolean
setBranchPoint
(CDOBranch branch, long timeStamp) Sets thebranch
and the point in (repository) time this view should refer to.boolean
setBranchPoint
(CDOBranch branch, long timeStamp, IProgressMonitor monitor) Same asCDOView.setBranchPoint(CDOBranch, long)
with aIProgressMonitor
.boolean
setBranchPoint
(CDOBranchPoint branchPoint) Same as callingsetBranchPoint(branchPoint.getBranch(), branchPoint.getTimeStamp())
.boolean
setBranchPoint
(CDOBranchPoint branchPoint, IProgressMonitor monitor) Same as callingCDOView.setBranchPoint(CDOBranchPoint)
with aIProgressMonitor
.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) protected void
setDirty
(boolean dirty) void
setResourcePathCache
(Map<String, CDOID> resourcePathCache) Sets the newmap
to be used as a cache for variousget*Resource*(String path)
methods.Creates a save point in theCDOTransaction
that can be used to roll back a part of the transactionboolean
setTimeStamp
(long timeStamp) Same as callingsetBranchPoint(getBranch(), timeStamp)
.boolean
setTimeStamp
(long timeStamp, IProgressMonitor monitor) Same asCDOView.setTimeStamp(long)
withIProgressMonitor
.void
<V> V
toString()
void
Unlocks all locked objects of this view.void
unlockObjects
(Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType) Unlocks the given locked objects of this view.void
unlockObjects
(Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, boolean recursive) void
waitForUpdate
(long updateTime) Blocks the calling thread until a commit operation with the given time stamp (or higher) has occurred.boolean
waitForUpdate
(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:
properties
in Schnittstelleorg.eclipse.net4j.util.properties.IPropertiesContainer
- Seit:
- 4.4
-
isDirty
public boolean isDirty()Beschreibung aus Schnittstelle kopiert:CDOTransaction
Returnstrue
if this transaction is not closed and contains uncommitted changes,false
otherwise.- Angegeben von:
isDirty
in SchnittstelleCDOTransaction
- Angegeben von:
isDirty
in SchnittstelleCDOView
- Siehe auch:
-
setDirty
protected void setDirty(boolean dirty) -
commit
Beschreibung aus Schnittstelle kopiert:CDOUserTransaction
Same ascommit(null)
.- Angegeben von:
commit
in SchnittstelleCDOUserTransaction
- Löst aus:
CommitException
-
commit
Beschreibung aus Schnittstelle kopiert:CDOUserTransaction
Commits the modifications of this transaction to the repository and returns acommit info
object if successful.Various kinds of problems can cause the commit to fail and not all of them can be avoided by acquiring pessimistic
locks
on 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:
commit
in 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:
commit
in SchnittstelleCDOTransaction
- Löst aus:
ConcurrentAccessException
CommitException
Exception
-
commit
public <T> CDOTransaction.CommitResult<T> commit(Callable<T> callable, Predicate<Long> retry, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException, Exception - Angegeben von:
commit
in SchnittstelleCDOTransaction
- Löst aus:
ConcurrentAccessException
CommitException
Exception
-
commit
public <T> CDOTransaction.CommitResult<T> commit(Callable<T> callable, int attempts, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException, Exception - Angegeben von:
commit
in SchnittstelleCDOTransaction
- Löst aus:
ConcurrentAccessException
CommitException
Exception
-
commit
@Deprecated public CDOCommitInfo commit(Runnable runnable, org.eclipse.net4j.util.Predicate<Long> retry, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException Veraltet.- Angegeben von:
commit
in SchnittstelleCDOTransaction
- Löst aus:
ConcurrentAccessException
CommitException
-
commit
public CDOCommitInfo commit(Runnable runnable, Predicate<Long> retry, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException - Angegeben von:
commit
in SchnittstelleCDOTransaction
- Löst aus:
ConcurrentAccessException
CommitException
-
commit
public CDOCommitInfo commit(Runnable runnable, int attempts, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException - Angegeben von:
commit
in SchnittstelleCDOTransaction
- Löst aus:
ConcurrentAccessException
CommitException
-
commitAndClose
public CDOCommitInfo commitAndClose(IProgressMonitor monitor, boolean keepOpenAfterCommitProblem) throws CommitException - Angegeben von:
commitAndClose
in SchnittstelleCDOTransaction
- Löst aus:
CommitException
-
rollback
public void rollback()- Angegeben von:
rollback
in SchnittstelleCDOUserTransaction
-
push
- Löst aus:
CommitException
-
push
- Löst aus:
CommitException
-
exportChanges
- Angegeben von:
exportChanges
in SchnittstelleCDOTransaction
- Löst aus:
IOException
-
importChanges
public CDOSavepoint[] importChanges(InputStream in, boolean reconstructSavepoints) throws IOException - Angegeben von:
importChanges
in SchnittstelleCDOTransaction
- Löst aus:
IOException
-
getLastCommitTime
public long getLastCommitTime()- Angegeben von:
getLastCommitTime
in SchnittstelleCDOTransaction
-
addListener
public void addListener(org.eclipse.net4j.util.event.IListener listener) - Angegeben von:
addListener
in Schnittstelleorg.eclipse.net4j.util.event.INotifier
- Setzt außer Kraft:
addListener
in Klasseorg.eclipse.net4j.util.event.Notifier
-
removeListener
public void removeListener(org.eclipse.net4j.util.event.IListener listener) - Angegeben von:
removeListener
in Schnittstelleorg.eclipse.net4j.util.event.INotifier
- Setzt außer Kraft:
removeListener
in Klasseorg.eclipse.net4j.util.event.Notifier
-
hasListeners
public boolean hasListeners()- Angegeben von:
hasListeners
in Schnittstelleorg.eclipse.net4j.util.event.INotifier
- Setzt außer Kraft:
hasListeners
in Klasseorg.eclipse.net4j.util.event.Notifier
-
getListeners
public org.eclipse.net4j.util.event.IListener[] getListeners()- Angegeben von:
getListeners
in Schnittstelleorg.eclipse.net4j.util.event.INotifier
- Setzt außer Kraft:
getListeners
in Klasseorg.eclipse.net4j.util.event.Notifier
-
addObjectHandler
- Angegeben von:
addObjectHandler
in SchnittstelleCDOView
-
addRegistrationHandler
- Angegeben von:
addRegistrationHandler
in SchnittstelleCDOView
- Seit:
- 4.6
-
addTransactionHandler
- Angegeben von:
addTransactionHandler
in SchnittstelleCDOTransaction
- Seit:
- 4.0
-
close
public void close()- Angegeben von:
close
in Schnittstelleorg.eclipse.net4j.util.collection.Closeable
-
createQuery
Beschreibung aus Schnittstelle kopiert:CDOView
Same ascreateQuery(language, queryString, null)
.- Angegeben von:
createQuery
in SchnittstelleCDOView
- Siehe auch:
-
createQuery
- Angegeben von:
createQuery
in SchnittstelleCDOView
- Seit:
- 4.0
-
createQuery
- Angegeben von:
createQuery
in SchnittstelleCDOTransaction
- Seit:
- 4.0
-
createQuery
public CDOQuery createQuery(String language, String queryString, Object context, boolean considerDirtyState) - Angegeben von:
createQuery
in SchnittstelleCDOTransaction
- Seit:
- 4.0
-
createResourceFolder
- Angegeben von:
createResourceFolder
in SchnittstelleCDOTransaction
- Seit:
- 4.0
-
createResource
- Angegeben von:
createResource
in SchnittstelleCDOTransaction
- Siehe auch:
-
isLegacyModeEnabled
Veraltet.- Angegeben von:
isLegacyModeEnabled
in SchnittstelleCDOView
- Siehe auch:
-
getLastUpdateTime
public long getLastUpdateTime()Beschreibung aus Schnittstelle kopiert:CDOUpdatable
Returns the time stamp of the last commit operation. May not be accurate ifpassive updates
are disabled.- Angegeben von:
getLastUpdateTime
in SchnittstelleCDOUpdatable
-
waitForUpdate
public void waitForUpdate(long updateTime) Beschreibung aus Schnittstelle kopiert:CDOUpdatable
Blocks the calling thread until a commit operation with the given time stamp (or higher) has occurred.- Angegeben von:
waitForUpdate
in 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:CDOUpdatable
Blocks the calling thread until a commit operation with the given time stamp (or higher) has occurred or the given timeout has expired.- Angegeben von:
waitForUpdate
in 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_TIMEOUT
to wait indefinitely.- Gibt zurück:
true
if the specified commit operation has occurred within the given timeout period,false
otherwise.
-
runAfterUpdate
- Angegeben von:
runAfterUpdate
in SchnittstelleCDOUpdatable
- Seit:
- 4.3
-
getConflicts
Beschreibung aus Schnittstelle kopiert:CDOTransaction
Returns the set of objects that are conflicting with remote modifications or an empty set ifCDOTransaction.hasConflict()
returnsfalse
.- Angegeben von:
getConflicts
in SchnittstelleCDOTransaction
-
getChangeSetData
- Angegeben von:
getChangeSetData
in SchnittstelleCDOChangeSetDataProvider
- Seit:
- 4.0
-
getDetachedObjects
- Angegeben von:
getDetachedObjects
in SchnittstelleCDOTransaction
-
getDirtyObjects
- Angegeben von:
getDirtyObjects
in SchnittstelleCDOTransaction
-
getRevision
- Angegeben von:
getRevision
in SchnittstelleCDORevisionProvider
- Seit:
- 4.0
-
getFirstSavepoint
- Angegeben von:
getFirstSavepoint
in SchnittstelleCDOTransaction
- Seit:
- 4.1
-
getLastSavepoint
- Angegeben von:
getLastSavepoint
in SchnittstelleCDOTransaction
- Angegeben von:
getLastSavepoint
in SchnittstelleCDOUserTransaction
-
isInvalidationRunnerActive
Veraltet.- Angegeben von:
isInvalidationRunnerActive
in SchnittstelleCDOView
- Seit:
- 4.0
-
isInvalidating
public boolean isInvalidating()- Angegeben von:
isInvalidating
in SchnittstelleCDOView
- Seit:
- 4.7
-
getNewObjects
- Angegeben von:
getNewObjects
in SchnittstelleCDOTransaction
-
getObjects
Beschreibung aus Schnittstelle kopiert:CDOView
Returns 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:
getObjects
in 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:CDOView
Returns the object for the given CDOID. -
getObject
Beschreibung aus Schnittstelle kopiert:CDOView
Returns the object for the given CDOID.Same as
getObject(id, true)
. -
getObject
Beschreibung aus Schnittstelle kopiert:CDOView
Takes 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
CDOObject
it is returned unmodified. - If the view of the given object is contained in a different session an
IllegalArgumentException
is thrown. - If
null
is passednull
is returned.
-
getObjectHandlers
- Angegeben von:
getObjectHandlers
in SchnittstelleCDOView
-
getRegistrationHandlers
- Angegeben von:
getRegistrationHandlers
in SchnittstelleCDOView
- Seit:
- 4.6
-
getOrCreateResource
- Angegeben von:
getOrCreateResource
in SchnittstelleCDOTransaction
-
getOrCreateResourceFolder
- Angegeben von:
getOrCreateResourceFolder
in SchnittstelleCDOTransaction
- Seit:
- 4.0
-
getResource
public CDOResource getResource(String path, boolean loadOnDemand) throws CDOResourceNodeNotFoundException - Angegeben von:
getResource
in SchnittstelleCDOView
- Löst aus:
CDOResourceNodeNotFoundException
- Siehe auch:
-
getResource
Beschreibung aus Schnittstelle kopiert:CDOView
Same asgetResource(String, true)
.- Angegeben von:
getResource
in SchnittstelleCDOView
- Löst aus:
CDOResourceNodeNotFoundException
- Siehe auch:
-
getResourceNode
Beschreibung aus Schnittstelle kopiert:CDOView
Returns the resource node with the given path.- Angegeben von:
getResourceNode
in SchnittstelleCDOView
- Gibt zurück:
- never
null
. - Löst aus:
CDOResourceNodeNotFoundException
-
createTextResource
- Angegeben von:
createTextResource
in SchnittstelleCDOTransaction
- Seit:
- 4.2
-
getOrCreateTextResource
- Angegeben von:
getOrCreateTextResource
in SchnittstelleCDOTransaction
- Seit:
- 4.2
-
createBinaryResource
- Angegeben von:
createBinaryResource
in SchnittstelleCDOTransaction
- Seit:
- 4.2
-
getOrCreateBinaryResource
- Angegeben von:
getOrCreateBinaryResource
in SchnittstelleCDOTransaction
- Seit:
- 4.2
-
getTextResource
- Angegeben von:
getTextResource
in SchnittstelleCDOView
- Löst aus:
CDOResourceNodeNotFoundException
- Seit:
- 4.2
-
getBinaryResource
- Angegeben von:
getBinaryResource
in SchnittstelleCDOView
- Löst aus:
CDOResourceNodeNotFoundException
- Seit:
- 4.2
-
getResourceFolder
- Angegeben von:
getResourceFolder
in SchnittstelleCDOView
- Löst aus:
CDOResourceNodeNotFoundException
- Seit:
- 4.2
-
setResourcePathCache
Beschreibung aus Schnittstelle kopiert:CDOView
Sets the newmap
to 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. Passingnull
disables resource path caching.The default value is
new HashMap<String, CDOID>()
.- Angegeben von:
setResourcePathCache
in SchnittstelleCDOView
- Seit:
- 4.2
- Siehe auch:
-
getResourceSet
Beschreibung aus Schnittstelle kopiert:CDOView
Returns theresource set
this view is associated with.Same as calling getViewSet().getResourceSet().
- Angegeben von:
getResourceSet
in SchnittstelleCDOView
- Siehe auch:
-
getRevisionDeltas
- Angegeben von:
getRevisionDeltas
in SchnittstelleCDOTransaction
-
getRootResource
Beschreibung aus Schnittstelle kopiert:CDOView
Returns the root resource of the repository.The root resource is a special resource with only
CDOResourceNodes
in its contents list. You can use it as the main entry into the new resource and folder structure.- Angegeben von:
getRootResource
in SchnittstelleCDOView
-
getSession
Beschreibung aus Schnittstelle kopiert:CDOView
Returns thesession
this view was opened by.- Angegeben von:
getSession
in SchnittstelleCDOCommonView
- Angegeben von:
getSession
in SchnittstelleCDOView
- Gibt zurück:
- The session this view was opened by, or
null
if this view is closed. - Siehe auch:
-
getProvider
Beschreibung aus Schnittstelle kopiert:CDOView
Returns theprovider
that has opened this view.- Angegeben von:
getProvider
in SchnittstelleCDOView
- Seit:
- 4.4
-
createResourceURI
Beschreibung aus Schnittstelle kopiert:CDOView
Returns aURI
that can be used inResourceSet.getResource(URI, boolean)
to load the resource with the specified path.- Angegeben von:
createResourceURI
in SchnittstelleCDOView
- Seit:
- 4.4
-
getTimeStamp
public long getTimeStamp()Beschreibung aus Schnittstelle kopiert:CDOBranchPoint
Returns the time stamp of this branch point, or the fixed special time stampunspecified
if this branch point marks thehead
of a branch.- Angegeben von:
getTimeStamp
in SchnittstelleCDOBranchPoint
- Angegeben von:
getTimeStamp
in SchnittstelleCDOTimeProvider
-
getDurableLockingID
- Angegeben von:
getDurableLockingID
in SchnittstelleCDOCommonView
- Seit:
- 4.0
-
getTransactionHandlers
- Angegeben von:
getTransactionHandlers
in SchnittstelleCDOTransaction
-
getTransactionHandlers1
- Angegeben von:
getTransactionHandlers1
in SchnittstelleCDOTransaction
- Seit:
- 4.0
-
getTransactionHandlers2
- Angegeben von:
getTransactionHandlers2
in SchnittstelleCDOTransaction
- Seit:
- 4.0
-
getSessionID
public int getSessionID()- Angegeben von:
getSessionID
in SchnittstelleCDOCommonView
- Seit:
- 4.1
-
isDurableView
public boolean isDurableView()- Angegeben von:
isDurableView
in SchnittstelleCDOCommonView
- Seit:
- 4.1
-
getLockOwner
- Angegeben von:
getLockOwner
in SchnittstelleCDOCommonView
- Seit:
- 4.15
-
getURI
-
getViewID
public int getViewID()- Angegeben von:
getViewID
in SchnittstelleCDOCommonView
-
getViewSet
Beschreibung aus Schnittstelle kopiert:CDOView
Returns theview set
this view is associated with.- Angegeben von:
getViewSet
in SchnittstelleCDOView
- Gibt zurück:
- The view set this view is associated with, never
null
. - Siehe auch:
-
getViewLock
- Angegeben von:
getViewLock
in SchnittstelleCDOView
- Seit:
- 4.5
-
syncExec
-
syncExec
-
hasConflict
public boolean hasConflict()Beschreibung aus Schnittstelle kopiert:CDOTransaction
Returnstrue
if this transaction contains local modifications that are conflicting with remote modifications,false
otherwise.- Angegeben von:
hasConflict
in SchnittstelleCDOTransaction
- Angegeben von:
hasConflict
in SchnittstelleCDOView
- Siehe auch:
-
hasResource
Beschreibung aus Schnittstelle kopiert:CDOView
Returnstrue
if a resource with the given path exists in the repository,false
. Applies tofile resources
, as well.- Angegeben von:
hasResource
in SchnittstelleCDOView
- Siehe auch:
-
isClosed
public boolean isClosed()- Angegeben von:
isClosed
in Schnittstelleorg.eclipse.net4j.util.collection.Closeable
-
isObjectRegistered
Beschreibung aus Schnittstelle kopiert:CDOView
- Angegeben von:
isObjectRegistered
in SchnittstelleCDOView
-
refreshLockStates
Veraltet.Beschreibung aus Schnittstelle kopiert:CDOView
Refreshes thelock states
of thisview
with the latest states from the repository. If a lock state consumer is passed it is called for each resulting new lock state.- Angegeben von:
refreshLockStates
in SchnittstelleCDOView
- Seit:
- 4.12
-
getLockStates
Beschreibung aus Schnittstelle kopiert:CDOView
Get an array oflock states
corresponding to the specified collection ofids
. If the collection ofids
is empty,lock states
of all objects are returned.- Angegeben von:
getLockStates
in SchnittstelleCDOView
- Seit:
- 4.6
-
getLockStates
Beschreibung aus Schnittstelle kopiert:CDOView
Get an array oflock states
corresponding to the specified collection ofids
. If the collection ofids
is empty,lock states
of all objects are returned.- Angegeben von:
getLockStates
in SchnittstelleCDOView
-
getLockStatesOfObjects
Beschreibung aus Schnittstelle kopiert:CDOView
Get an array oflock states
corresponding to the specified collection ofobjects
. If the collection ofobjects
is empty,lock states
of all locked objects are returned.- Angegeben von:
getLockStatesOfObjects
in 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:CDOView
Locks the given objects. Once the objects are locked, they will not be changed remotely or go in conflict state.- Angegeben von:
lockObjects
in 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:
lockObjects
in SchnittstelleCDOView
- Löst aus:
InterruptedException
-
options
Beschreibung aus Schnittstelle kopiert:CDOCommonView
Returns theoptions
of this view.- Angegeben von:
options
in SchnittstelleCDOCommonView
- Angegeben von:
options
in SchnittstelleCDOTransaction
- Angegeben von:
options
in SchnittstelleCDOView
- Angegeben von:
options
in Schnittstelleorg.eclipse.net4j.util.options.IOptionsContainer
-
queryResources
public List<CDOResourceNode> queryResources(CDOResourceFolder folder, String name, boolean exactMatch) Beschreibung aus Schnittstelle kopiert:CDOView
Returns 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:
queryResources
in SchnittstelleCDOView
- Parameter:
folder
- The folder to search in, ornull
for top level resource nodes.name
- the name or prefix of the resource nodes to return.exactMatch
-true
if the complete name of the resource must match,false
if 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:CDOView
Returns 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:
queryResourcesAsync
in SchnittstelleCDOView
- Parameter:
folder
- The folder to search in, ornull
for top level resource nodes.name
- the name or prefix of the resource nodes to return.exactMatch
-true
if the complete name of the resource must match,false
if only a common prefix of the name must match.
-
queryInstances
Beschreibung aus Schnittstelle kopiert:CDOView
Returns a list of the instances of the given type.- Angegeben von:
queryInstances
in SchnittstelleCDOView
- Seit:
- 4.3
-
queryInstancesAsync
public <T extends EObject> org.eclipse.net4j.util.collection.CloseableIterator<T> queryInstancesAsync(EClass type) Beschreibung aus Schnittstelle kopiert:CDOView
Returns an iterator over the instances of the given type. The underlying query will be executed asynchronously.- Angegeben von:
queryInstancesAsync
in 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:CDOView
Returns an iterator over the instances of the given type. The underlying query will be executed asynchronously.- Angegeben von:
queryInstancesAsync
in SchnittstelleCDOView
- Seit:
- 4.6
-
queryXRefs
Beschreibung aus Schnittstelle kopiert:CDOView
Returns a list ofobject references
that represent the cross references to the specified target object.- Angegeben von:
queryXRefs
in 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:CDOView
Returns a list ofobject references
that represent the cross references to the specified target objects.- Angegeben von:
queryXRefs
in 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:CDOView
Returns an iterator over theobject references
that represent the cross references to the specified target objects. The underlying query will be executed asynchronously.- Angegeben von:
queryXRefsAsync
in 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:CDOView
Reloads the givenobjects
from the repository. -
removeObjectHandler
- Angegeben von:
removeObjectHandler
in SchnittstelleCDOView
-
removeRegistrationHandler
- Angegeben von:
removeRegistrationHandler
in SchnittstelleCDOView
- Seit:
- 4.6
-
removeTransactionHandler
- Angegeben von:
removeTransactionHandler
in SchnittstelleCDOTransaction
- Seit:
- 4.0
-
revertTo
- Angegeben von:
revertTo
in SchnittstelleCDOTransaction
- Seit:
- 4.15
-
merge
Beschreibung aus Schnittstelle kopiert:CDOTransaction
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
.- Angegeben von:
merge
in SchnittstelleCDOTransaction
- Seit:
- 4.6
- Siehe auch:
-
merge
Beschreibung aus Schnittstelle kopiert:CDOTransaction
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
.- Angegeben von:
merge
in SchnittstelleCDOTransaction
-
merge
Beschreibung aus Schnittstelle kopiert:CDOTransaction
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:
- Angegeben von:
merge
in SchnittstelleCDOTransaction
- Seit:
- 4.0
-
merge
public CDOChangeSetData merge(CDOBranchPoint source, CDOBranchPoint sourceBase, CDOBranchPoint targetBase, CDOMerger merger) Beschreibung aus Schnittstelle kopiert:CDOTransaction
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".
- Angegeben von:
merge
in SchnittstelleCDOTransaction
- Seit:
- 4.6
- Siehe auch:
-
compareRevisions
- Angegeben von:
compareRevisions
in SchnittstelleCDOView
- Seit:
- 4.0
-
getHistory
- Angegeben von:
getHistory
in SchnittstelleCDOCommitHistory.Provider<CDOObject,
CDOObjectHistory> - Seit:
- 4.2
-
getHistory
- Angegeben von:
getHistory
in SchnittstelleCDOCommitHistory.Provider<CDOObject,
CDOObjectHistory> - Seit:
- 4.2
-
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 SchnittstelleCDOTransaction
- Angegeben von:
setSavepoint
in SchnittstelleCDOUserTransaction
-
unlockObjects
public void unlockObjects()Beschreibung aus Schnittstelle kopiert:CDOView
Unlocks all locked objects of this view.- Angegeben von:
unlockObjects
in SchnittstelleCDOView
-
unlockObjects
public void unlockObjects(Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType) Beschreibung aus Schnittstelle kopiert:CDOView
Unlocks the given locked objects of this view.- Angegeben von:
unlockObjects
in SchnittstelleCDOView
-
unlockObjects
public void unlockObjects(Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, boolean recursive) - Angegeben von:
unlockObjects
in SchnittstelleCDOView
-
enableDurableLocking
Veraltet.UseenableDurableLocking()
instead ordisableDurableLocking(boolean)
, respectively.- Angegeben von:
enableDurableLocking
in SchnittstelleCDOView
- Seit:
- 4.0
-
enableDurableLocking
Beschreibung aus Schnittstelle kopiert:CDOView
Enables the storage of all information that's needed toreopen
this 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 atransaction
and all the locks that are acquired or will be acquired while durable locking is enabled.- Angegeben von:
enableDurableLocking
in SchnittstelleCDOView
- Seit:
- 4.1
- Siehe auch:
-
disableDurableLocking
public void disableDurableLocking(boolean releaseLocks) Beschreibung aus Schnittstelle kopiert:CDOView
Disables the storage of all information that's needed toreopen
this 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 iftrue
is passed to thereleaseLocks
parameter.- Angegeben von:
disableDurableLocking
in SchnittstelleCDOView
- Seit:
- 4.1
- Siehe auch:
-
isReadOnly
public boolean isReadOnly()- Angegeben von:
isReadOnly
in SchnittstelleCDOCommonView
-
isHistorical
public boolean isHistorical()- Angegeben von:
isHistorical
in SchnittstelleCDOCommonView
- Seit:
- 4.5
-
getBranch
Beschreibung aus Schnittstelle kopiert:CDOBranchPoint
Returns the branch of this branch point, ornull
if this branch point is thebase
of themain branch
.- Angegeben von:
getBranch
in SchnittstelleCDOBranchPoint
- Angegeben von:
getBranch
in SchnittstelleCDOBranchProvider
-
setBranchPoint
Beschreibung aus Schnittstelle kopiert:CDOView
Sets thebranch
and the point in (repository) time this view should refer to.Objects
provided by this view will bevalid
at this time. The special valueUNSPECIFIED_DATE
denotes a "floating view" that always shows the latest state of the repository.- Angegeben von:
setBranchPoint
in SchnittstelleCDOView
- Gibt zurück:
true
if the branch point was changed,false
otherwise.
-
setBranchPoint
Beschreibung aus Schnittstelle kopiert:CDOView
Same asCDOView.setBranchPoint(CDOBranch, long)
with aIProgressMonitor
.- Angegeben von:
setBranchPoint
in SchnittstelleCDOView
- Seit:
- 4.4
-
setBranchPoint
Beschreibung aus Schnittstelle kopiert:CDOView
Same as callingsetBranchPoint(branchPoint.getBranch(), branchPoint.getTimeStamp())
.- Angegeben von:
setBranchPoint
in SchnittstelleCDOView
-
setBranchPoint
Beschreibung aus Schnittstelle kopiert:CDOView
Same as callingCDOView.setBranchPoint(CDOBranchPoint)
with aIProgressMonitor
.- Angegeben von:
setBranchPoint
in SchnittstelleCDOView
- Seit:
- 4.4
-
setBranch
Beschreibung aus Schnittstelle kopiert:CDOView
Same as callingsetBranchPoint(branch, getTimeStamp())
. -
setBranch
Beschreibung aus Schnittstelle kopiert:CDOView
Same asCDOView.setBranch(CDOBranch)
withIProgressMonitor
. -
setTimeStamp
public boolean setTimeStamp(long timeStamp) Beschreibung aus Schnittstelle kopiert:CDOView
Same as callingsetBranchPoint(getBranch(), timeStamp)
.- Angegeben von:
setTimeStamp
in SchnittstelleCDOView
-
setTimeStamp
Beschreibung aus Schnittstelle kopiert:CDOView
Same asCDOView.setTimeStamp(long)
withIProgressMonitor
.- Angegeben von:
setTimeStamp
in SchnittstelleCDOView
- Seit:
- 4.4
-
getURIHandler
- Angegeben von:
getURIHandler
in SchnittstelleCDOView
-
getUnitManager
- Angegeben von:
getUnitManager
in SchnittstelleCDOView
- Seit:
- 4.5
-
getCommitComment
Beschreibung aus Schnittstelle kopiert:CDOTransaction
Returns the comment to be used in the next commit operation.- Angegeben von:
getCommitComment
in SchnittstelleCDOTransaction
- Siehe auch:
-
setCommitComment
Beschreibung aus Schnittstelle kopiert:CDOTransaction
Sets the comment to be used in the next commit operation.- Angegeben von:
setCommitComment
in SchnittstelleCDOTransaction
- Siehe auch:
-
getCommitProperty
- Angegeben von:
getCommitProperty
in SchnittstelleCDOTransaction
-
setCommitProperty
- Angegeben von:
setCommitProperty
in SchnittstelleCDOTransaction
-
setCommittables
- Angegeben von:
setCommittables
in SchnittstelleCDOTransaction
- Seit:
- 4.0
-
getCommittables
- Angegeben von:
getCommittables
in SchnittstelleCDOTransaction
- Seit:
- 4.0
-
isEmpty
public boolean isEmpty()- Angegeben von:
isEmpty
in Schnittstelleorg.eclipse.net4j.util.container.IContainer<CDOResourceNode>
- Seit:
- 4.2
-
getElements
- Angegeben von:
getElements
in Schnittstelleorg.eclipse.net4j.util.container.IContainer<CDOResourceNode>
- Seit:
- 4.2
-
toString
-
getAdapter
- Angegeben von:
getAdapter
in SchnittstelleIAdaptable
- Seit:
- 4.2
-
createTempFile
- Löst aus:
IOException
-
enableDurableLocking()
instead ordisableDurableLocking(boolean)
, respectively.