Class CDOPushTransaction
- java.lang.Object
- 
- org.eclipse.net4j.util.event.Notifier
- 
- org.eclipse.emf.cdo.transaction.CDOPushTransaction
 
 
- 
- All Implemented Interfaces:
- 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
 
 public class CDOPushTransaction extends org.eclipse.net4j.util.event.Notifier implements CDOTransaction Atransactionthat persists changes to the object graph locally on commit and can later load these changes and push them to therepository.- Since:
- 3.0
- Author:
- 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.
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.transaction.CDOTransactionCDOTransaction.CommitResult<T>, CDOTransaction.Options
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainerorg.eclipse.net4j.util.container.IContainer.Modifiable<E extends java.lang.Object>, org.eclipse.net4j.util.container.IContainer.Persistable<E extends java.lang.Object>, org.eclipse.net4j.util.container.IContainer.Persistence<E extends java.lang.Object>
 
- 
 - 
Field Summary- 
Fields inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchPointINVALID_DATE, UNSPECIFIED_DATE
 - 
Fields inherited from interface org.eclipse.emf.cdo.util.CDOUpdatableNO_TIMEOUT
 - 
Fields inherited from interface org.eclipse.emf.cdo.view.CDOViewPROP_TIME_MACHINE_DISABLED
 
- 
 - 
Constructor SummaryConstructors Constructor Description CDOPushTransaction(CDOTransaction delegate)CDOPushTransaction(CDOTransaction delegate, java.io.File file)CDOPushTransaction(CDOTransaction delegate, java.io.File file, boolean reconstructSavepoints)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddListener(org.eclipse.net4j.util.event.IListener listener)voidaddObjectHandler(CDOObjectHandler handler)voidaddRegistrationHandler(CDORegistrationHandler handler)voidaddTransactionHandler(CDOTransactionHandlerBase handler)voidclose()CDOCommitInfocommit()Same ascommit(null).CDOCommitInfocommit(java.lang.Runnable runnable, int attempts, IProgressMonitor monitor)CDOCommitInfocommit(java.lang.Runnable runnable, java.util.function.Predicate<java.lang.Long> retry, IProgressMonitor monitor)CDOCommitInfocommit(java.lang.Runnable runnable, org.eclipse.net4j.util.Predicate<java.lang.Long> retry, IProgressMonitor monitor)Deprecated.<T> CDOTransaction.CommitResult<T>commit(java.util.concurrent.Callable<T> callable, int attempts, IProgressMonitor monitor)<T> CDOTransaction.CommitResult<T>commit(java.util.concurrent.Callable<T> callable, java.util.function.Predicate<java.lang.Long> retry, IProgressMonitor monitor)<T> CDOTransaction.CommitResult<T>commit(java.util.concurrent.Callable<T> callable, org.eclipse.net4j.util.Predicate<java.lang.Long> retry, IProgressMonitor monitor)Deprecated.CDOCommitInfocommit(IProgressMonitor monitor)Commits the modifications of this transaction to the repository and returns acommit infoobject if successful.CDOChangeSetDatacompareRevisions(CDOBranchPoint source)CDOBinaryResourcecreateBinaryResource(java.lang.String path)CDOQuerycreateQuery(java.lang.String language, java.lang.String queryString)Same ascreateQuery(language, queryString, null).CDOQuerycreateQuery(java.lang.String language, java.lang.String queryString, boolean considerDirtyState)CDOQuerycreateQuery(java.lang.String language, java.lang.String queryString, java.lang.Object context)CDOQuerycreateQuery(java.lang.String language, java.lang.String queryString, java.lang.Object context, boolean considerDirtyState)CDOResourcecreateResource(java.lang.String path)CDOResourceFoldercreateResourceFolder(java.lang.String path)org.eclipse.emf.common.util.URIcreateResourceURI(java.lang.String path)Returns aURIthat can be used inResourceSet.getResource(URI, boolean)to load the resource with the specified path.static java.io.FilecreateTempFile(CDOTransaction transaction)CDOTextResourcecreateTextResource(java.lang.String path)voiddisableDurableLocking(boolean releaseLocks)Disables the storage of all information that's needed toreopenthis view at a later point in time.java.lang.StringenableDurableLocking()Enables the storage of all information that's needed toreopenthis view at a later point in time.java.lang.StringenableDurableLocking(boolean enable)Deprecated.UseenableDurableLocking()instead ordisableDurableLocking(boolean), respectively.CDOSavepoint[]exportChanges(java.io.OutputStream out)java.lang.ObjectgetAdapter(java.lang.Class adapter)CDOBinaryResourcegetBinaryResource(java.lang.String path)CDOBranchgetBranch()Returns the branch of this branch point, ornullif this branch point is thebaseof themain branch.CDOChangeSetDatagetChangeSetData()java.lang.StringgetCommitComment()Returns the comment to be used in the next commit operation.java.util.Set<? extends org.eclipse.emf.ecore.EObject>getCommittables()java.util.Set<CDOObject>getConflicts()Returns the set of objects that are conflicting with remote modifications or an empty set ifCDOTransaction.hasConflict()returnsfalse.CDOTransactiongetDelegate()java.util.Map<CDOID,CDOObject>getDetachedObjects()java.util.Map<CDOID,CDOObject>getDirtyObjects()java.lang.StringgetDurableLockingID()CDOResourceNode[]getElements()java.io.FilegetFile()CDOSavepointgetFirstSavepoint()CDOCommitHistorygetHistory()CDOObjectHistorygetHistory(CDOObject object)longgetLastCommitTime()CDOSavepointgetLastSavepoint()longgetLastUpdateTime()Returns the time stamp of the last commit operation.org.eclipse.net4j.util.event.IListener[]getListeners()CDOLockOwnergetLockOwner()CDOLockState[]getLockStates(java.util.Collection<CDOID> ids)Get an array oflock statescorresponding to the specified collection ofids.CDOLockState[]getLockStatesOfObjects(java.util.Collection<? extends CDOObject> objects)Get an array oflock statescorresponding to the specified collection ofobjects.java.util.Map<CDOID,CDOObject>getNewObjects()CDOObjectgetObject(CDOID id)Returns the object for the given CDOID.CDOObjectgetObject(CDOID id, boolean loadOnDemand)Returns the object for the given CDOID.<T extends org.eclipse.emf.ecore.EObject>
 TgetObject(T objectFromDifferentView)Takes an object from a (possibly) different view and contextifies it for the usage with this view.CDOObjectHandler[]getObjectHandlers()java.util.Map<CDOID,CDOObject>getObjects(java.util.Collection<CDOID> ids)Returns the objects with the given CDOIDs.CDOBinaryResourcegetOrCreateBinaryResource(java.lang.String path)CDOResourcegetOrCreateResource(java.lang.String path)CDOResourceFoldergetOrCreateResourceFolder(java.lang.String path)CDOTextResourcegetOrCreateTextResource(java.lang.String path)CDOViewProvidergetProvider()Returns theproviderthat has opened this view.CDORegistrationHandler[]getRegistrationHandlers()CDOResourcegetResource(java.lang.String path)Same asgetResource(String, true).CDOResourcegetResource(java.lang.String path, boolean loadOnDemand)CDOResourceFoldergetResourceFolder(java.lang.String path)CDOResourceNodegetResourceNode(java.lang.String path)Returns the resource node with the given path.org.eclipse.emf.ecore.resource.ResourceSetgetResourceSet()Returns theresource setthis view is associated with.CDORevisiongetRevision(CDOID id)java.util.Map<CDOID,CDORevisionDelta>getRevisionDeltas()CDOResourcegetRootResource()Returns the root resource of the repository.CDOSessiongetSession()Returns thesessionthis view was opened by.intgetSessionID()CDOTextResourcegetTextResource(java.lang.String path)longgetTimeStamp()Returns the time stamp of this branch point, or the fixed special time stampunspecifiedif this branch point marks theheadof a branch.CDOTransactionHandler[]getTransactionHandlers()CDOTransactionHandler1[]getTransactionHandlers1()CDOTransactionHandler2[]getTransactionHandlers2()CDOUnitManagergetUnitManager()org.eclipse.emf.ecore.resource.URIHandlergetURIHandler()intgetViewID()java.util.concurrent.locks.LockgetViewLock()CDOViewSetgetViewSet()Returns theview setthis view is associated with.booleanhasConflict()Returnstrueif this transaction contains local modifications that are conflicting with remote modifications,falseotherwise.booleanhasListeners()booleanhasResource(java.lang.String path)Returnstrueif a resource with the given path exists in the repository,false.CDOSavepoint[]importChanges(java.io.InputStream in, boolean reconstructSavepoints)booleanisClosed()booleanisDirty()Returnstrueif this transaction is not closed and contains uncommitted changes,falseotherwise.booleanisDurableView()booleanisEmpty()booleanisHistorical()booleanisInvalidating()booleanisInvalidationRunnerActive()Deprecated.booleanisLegacyModeEnabled()Deprecated.booleanisObjectRegistered(CDOID id)booleanisReadOnly()voidlockObjects(java.util.Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, long timeout)Locks the given objects.voidlockObjects(java.util.Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, long timeout, boolean recursive)CDOChangeSetDatamerge(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.CDOChangeSetDatamerge(CDOBranchPoint source, CDOBranchPoint sourceBase, CDOMerger merger)Merges the changes between the given source base point and the given source point into this transaction.CDOChangeSetDatamerge(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.CDOChangeSetDatamerge(CDOBranch source, CDOMerger merger)Merges the changes from the given source branch into this transaction and possibly considers previous merges from that branch by inspecting themerge sourceinformation of thecommit history.CDOTransaction.Optionsoptions()Returns theoptionsof this view.org.eclipse.net4j.util.registry.IRegistry<java.lang.String,java.lang.Object>properties()voidpush()voidpush(IProgressMonitor progressMonitor)<T extends org.eclipse.emf.ecore.EObject>
 java.util.List<T>queryInstances(org.eclipse.emf.ecore.EClass type)Returns a list of the instances of the given type.<T extends org.eclipse.emf.ecore.EObject>
 org.eclipse.net4j.util.collection.CloseableIterator<T>queryInstancesAsync(org.eclipse.emf.ecore.EClass type)Returns an iterator over the instances of the given type.<T extends org.eclipse.emf.ecore.EObject>
 org.eclipse.net4j.util.collection.CloseableIterator<T>queryInstancesAsync(org.eclipse.emf.ecore.EClass type, boolean exact)Returns an iterator over the instances of the given type.java.util.List<CDOResourceNode>queryResources(CDOResourceFolder folder, java.lang.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, java.lang.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.java.util.List<CDOObjectReference>queryXRefs(java.util.Set<CDOObject> targetObjects, org.eclipse.emf.ecore.EReference... sourceReferences)Returns a list ofobject referencesthat represent the cross references to the specified target objects.java.util.List<CDOObjectReference>queryXRefs(CDOObject targetObject, org.eclipse.emf.ecore.EReference... sourceReferences)Returns a list ofobject referencesthat represent the cross references to the specified target object.org.eclipse.net4j.util.collection.CloseableIterator<CDOObjectReference>queryXRefsAsync(java.util.Set<CDOObject> targetObjects, org.eclipse.emf.ecore.EReference... sourceReferences)Returns an iterator over theobject referencesthat represent the cross references to the specified target objects.voidrefreshLockStates(java.util.function.Consumer<CDOLockState> consumer)Deprecated.intreload(CDOObject... objects)Deprecated.voidremoveListener(org.eclipse.net4j.util.event.IListener listener)voidremoveObjectHandler(CDOObjectHandler handler)voidremoveRegistrationHandler(CDORegistrationHandler handler)voidremoveTransactionHandler(CDOTransactionHandlerBase handler)CDOChangeSetDatarevertTo(CDOBranchPoint branchPoint)voidrollback()booleanrunAfterUpdate(long updateTime, java.lang.Runnable runnable)booleansetBranch(CDOBranch branch)Same 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(java.lang.String comment)Sets the comment to be used in the next commit operation.voidsetCommittables(java.util.Set<? extends org.eclipse.emf.ecore.EObject> committables)protected voidsetDirty(boolean dirty)voidsetResourcePathCache(java.util.Map<java.lang.String,CDOID> resourcePathCache)Sets the newmapto be used as a cache for variousget*Resource*(String path)methods.CDOSavepointsetSavepoint()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.voidsyncExec(java.lang.Runnable runnable)<V> VsyncExec(java.util.concurrent.Callable<V> callable)java.lang.StringtoString()voidunlockObjects()Unlocks all locked objects of this view.voidunlockObjects(java.util.Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType)Unlocks the given locked objects of this view.voidunlockObjects(java.util.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.
 
- 
- 
- 
Constructor Detail- 
CDOPushTransactionpublic CDOPushTransaction(CDOTransaction delegate) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
CDOPushTransactionpublic CDOPushTransaction(CDOTransaction delegate, java.io.File file) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
CDOPushTransactionpublic CDOPushTransaction(CDOTransaction delegate, java.io.File file, boolean reconstructSavepoints) throws java.io.IOException - Throws:
- java.io.IOException
 
 
- 
 - 
Method Detail- 
getDelegatepublic CDOTransaction getDelegate() 
 - 
getFilepublic java.io.File getFile() 
 - 
propertiespublic final org.eclipse.net4j.util.registry.IRegistry<java.lang.String,java.lang.Object> properties() - Specified by:
- propertiesin interface- org.eclipse.net4j.util.properties.IPropertiesContainer
- Since:
- 4.4
 
 - 
isDirtypublic boolean isDirty() Description copied from interface:CDOTransactionReturnstrueif this transaction is not closed and contains uncommitted changes,falseotherwise.- Specified by:
- isDirtyin interface- CDOTransaction
- Specified by:
- isDirtyin interface- CDOView
- See Also:
- CDOTransaction.isDirty()
 
 - 
setDirtyprotected void setDirty(boolean dirty) 
 - 
commitpublic CDOCommitInfo commit() throws CommitException Description copied from interface:CDOUserTransactionSame ascommit(null).- Specified by:
- commitin interface- CDOUserTransaction
- Throws:
- CommitException
 
 - 
commitpublic CDOCommitInfo commit(IProgressMonitor monitor) throws CommitException Description copied from interface: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.- Specified by:
- commitin interface- CDOUserTransaction
- Throws:
- CommitException
 
 - 
commit@Deprecated public <T> CDOTransaction.CommitResult<T> commit(java.util.concurrent.Callable<T> callable, org.eclipse.net4j.util.Predicate<java.lang.Long> retry, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException, java.lang.Exception Deprecated.- Specified by:
- commitin interface- CDOTransaction
- Throws:
- ConcurrentAccessException
- CommitException
- java.lang.Exception
 
 - 
commitpublic <T> CDOTransaction.CommitResult<T> commit(java.util.concurrent.Callable<T> callable, java.util.function.Predicate<java.lang.Long> retry, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException, java.lang.Exception - Specified by:
- commitin interface- CDOTransaction
- Throws:
- ConcurrentAccessException
- CommitException
- java.lang.Exception
 
 - 
commitpublic <T> CDOTransaction.CommitResult<T> commit(java.util.concurrent.Callable<T> callable, int attempts, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException, java.lang.Exception - Specified by:
- commitin interface- CDOTransaction
- Throws:
- ConcurrentAccessException
- CommitException
- java.lang.Exception
 
 - 
commit@Deprecated public CDOCommitInfo commit(java.lang.Runnable runnable, org.eclipse.net4j.util.Predicate<java.lang.Long> retry, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException Deprecated.- Specified by:
- commitin interface- CDOTransaction
- Throws:
- ConcurrentAccessException
- CommitException
 
 - 
commitpublic CDOCommitInfo commit(java.lang.Runnable runnable, java.util.function.Predicate<java.lang.Long> retry, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException - Specified by:
- commitin interface- CDOTransaction
- Throws:
- ConcurrentAccessException
- CommitException
 
 - 
commitpublic CDOCommitInfo commit(java.lang.Runnable runnable, int attempts, IProgressMonitor monitor) throws ConcurrentAccessException, CommitException - Specified by:
- commitin interface- CDOTransaction
- Throws:
- ConcurrentAccessException
- CommitException
 
 - 
rollbackpublic void rollback() - Specified by:
- rollbackin interface- CDOUserTransaction
 
 - 
pushpublic void push() throws CommitException- Throws:
- CommitException
 
 - 
pushpublic void push(IProgressMonitor progressMonitor) throws CommitException - Throws:
- CommitException
 
 - 
exportChangespublic CDOSavepoint[] exportChanges(java.io.OutputStream out) throws java.io.IOException - Specified by:
- exportChangesin interface- CDOTransaction
- Throws:
- java.io.IOException
 
 - 
importChangespublic CDOSavepoint[] importChanges(java.io.InputStream in, boolean reconstructSavepoints) throws java.io.IOException - Specified by:
- importChangesin interface- CDOTransaction
- Throws:
- java.io.IOException
 
 - 
getLastCommitTimepublic long getLastCommitTime() - Specified by:
- getLastCommitTimein interface- CDOTransaction
 
 - 
addListenerpublic void addListener(org.eclipse.net4j.util.event.IListener listener) - Specified by:
- addListenerin interface- org.eclipse.net4j.util.event.INotifier
- Overrides:
- addListenerin class- org.eclipse.net4j.util.event.Notifier
 
 - 
removeListenerpublic void removeListener(org.eclipse.net4j.util.event.IListener listener) - Specified by:
- removeListenerin interface- org.eclipse.net4j.util.event.INotifier
- Overrides:
- removeListenerin class- org.eclipse.net4j.util.event.Notifier
 
 - 
hasListenerspublic boolean hasListeners() - Specified by:
- hasListenersin interface- org.eclipse.net4j.util.event.INotifier
- Overrides:
- hasListenersin class- org.eclipse.net4j.util.event.Notifier
 
 - 
getListenerspublic org.eclipse.net4j.util.event.IListener[] getListeners() - Specified by:
- getListenersin interface- org.eclipse.net4j.util.event.INotifier
- Overrides:
- getListenersin class- org.eclipse.net4j.util.event.Notifier
 
 - 
addObjectHandlerpublic void addObjectHandler(CDOObjectHandler handler) - Specified by:
- addObjectHandlerin interface- CDOView
 
 - 
addRegistrationHandlerpublic void addRegistrationHandler(CDORegistrationHandler handler) - Specified by:
- addRegistrationHandlerin interface- CDOView
- Since:
- 4.6
 
 - 
addTransactionHandlerpublic void addTransactionHandler(CDOTransactionHandlerBase handler) - Specified by:
- addTransactionHandlerin interface- CDOTransaction
- Since:
- 4.0
 
 - 
closepublic void close() - Specified by:
- closein interface- org.eclipse.net4j.util.collection.Closeable
 
 - 
createQuerypublic CDOQuery createQuery(java.lang.String language, java.lang.String queryString) Description copied from interface:CDOViewSame ascreateQuery(language, queryString, null).- Specified by:
- createQueryin interface- CDOView
- See Also:
- CDOView.createQuery(String, String, Object)
 
 - 
createQuerypublic CDOQuery createQuery(java.lang.String language, java.lang.String queryString, java.lang.Object context) - Specified by:
- createQueryin interface- CDOView
- Since:
- 4.0
 
 - 
createQuerypublic CDOQuery createQuery(java.lang.String language, java.lang.String queryString, boolean considerDirtyState) - Specified by:
- createQueryin interface- CDOTransaction
- Since:
- 4.0
 
 - 
createQuerypublic CDOQuery createQuery(java.lang.String language, java.lang.String queryString, java.lang.Object context, boolean considerDirtyState) - Specified by:
- createQueryin interface- CDOTransaction
- Since:
- 4.0
 
 - 
createResourceFolderpublic CDOResourceFolder createResourceFolder(java.lang.String path) - Specified by:
- createResourceFolderin interface- CDOTransaction
- Since:
- 4.0
 
 - 
createResourcepublic CDOResource createResource(java.lang.String path) - Specified by:
- createResourcein interface- CDOTransaction
- See Also:
- ResourceSet.createResource(URI)
 
 - 
isLegacyModeEnabled@Deprecated public boolean isLegacyModeEnabled() Deprecated.- Specified by:
- isLegacyModeEnabledin interface- CDOView
- See Also:
- CDOUtil.setLegacyModeDefault(boolean)
 
 - 
getLastUpdateTimepublic long getLastUpdateTime() Description copied from interface:CDOUpdatableReturns the time stamp of the last commit operation. May not be accurate ifpassive updatesare disabled.- Specified by:
- getLastUpdateTimein interface- CDOUpdatable
 
 - 
waitForUpdatepublic void waitForUpdate(long updateTime) Description copied from interface:CDOUpdatableBlocks the calling thread until a commit operation with the given time stamp (or higher) has occurred.- Specified by:
- waitForUpdatein interface- CDOUpdatable
 
 - 
waitForUpdatepublic boolean waitForUpdate(long updateTime, long timeoutMillis)Description copied from interface:CDOUpdatableBlocks the calling thread until a commit operation with the given time stamp (or higher) has occurred or the given timeout has expired.- Specified by:
- waitForUpdatein interface- CDOUpdatable
- Returns:
- trueif the specified commit operation has occurred within the given timeout period,- falseotherwise.
 
 - 
runAfterUpdatepublic boolean runAfterUpdate(long updateTime, java.lang.Runnable runnable)- Specified by:
- runAfterUpdatein interface- CDOUpdatable
- Since:
- 4.3
 
 - 
getConflictspublic java.util.Set<CDOObject> getConflicts() Description copied from interface:CDOTransactionReturns the set of objects that are conflicting with remote modifications or an empty set ifCDOTransaction.hasConflict()returnsfalse.- Specified by:
- getConflictsin interface- CDOTransaction
 
 - 
getChangeSetDatapublic CDOChangeSetData getChangeSetData() - Specified by:
- getChangeSetDatain interface- CDOChangeSetDataProvider
- Since:
- 4.0
 
 - 
getDetachedObjectspublic java.util.Map<CDOID,CDOObject> getDetachedObjects() - Specified by:
- getDetachedObjectsin interface- CDOTransaction
 
 - 
getDirtyObjectspublic java.util.Map<CDOID,CDOObject> getDirtyObjects() - Specified by:
- getDirtyObjectsin interface- CDOTransaction
 
 - 
getRevisionpublic CDORevision getRevision(CDOID id) - Specified by:
- getRevisionin interface- CDORevisionProvider
- Since:
- 4.0
 
 - 
getFirstSavepointpublic CDOSavepoint getFirstSavepoint() - Specified by:
- getFirstSavepointin interface- CDOTransaction
- Since:
- 4.1
 
 - 
getLastSavepointpublic CDOSavepoint getLastSavepoint() - Specified by:
- getLastSavepointin interface- CDOTransaction
- Specified by:
- getLastSavepointin interface- CDOUserTransaction
 
 - 
isInvalidationRunnerActive@Deprecated public boolean isInvalidationRunnerActive() Deprecated.- Specified by:
- isInvalidationRunnerActivein interface- CDOView
- Since:
- 4.0
 
 - 
isInvalidatingpublic boolean isInvalidating() - Specified by:
- isInvalidatingin interface- CDOView
- Since:
- 4.7
 
 - 
getNewObjectspublic java.util.Map<CDOID,CDOObject> getNewObjects() - Specified by:
- getNewObjectsin interface- CDOTransaction
 
 - 
getObjectspublic java.util.Map<CDOID,CDOObject> getObjects(java.util.Collection<CDOID> ids) Description copied from interface: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. - Specified by:
- getObjectsin interface- CDOView
- Parameters:
- ids- the collection of CDOIDs that identify the CDOObjects to return.
- Returns:
- a map that contains the CDOObjects with the given CDOIDs.
- Since:
- 4.13
 
 - 
getObjectpublic CDOObject getObject(CDOID id, boolean loadOnDemand) Description copied from interface:CDOViewReturns the object for the given CDOID.
 - 
getObjectpublic CDOObject getObject(CDOID id) Description copied from interface:CDOViewReturns the object for the given CDOID.Same as getObject(id, true).- Specified by:
- getObjectin interface- CDOView
- See Also:
- CDOView.getObject(CDOID, boolean)
 
 - 
getObjectpublic <T extends org.eclipse.emf.ecore.EObject> T getObject(T objectFromDifferentView) Description copied from interface: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.
 
 - 
getObjectHandlerspublic CDOObjectHandler[] getObjectHandlers() - Specified by:
- getObjectHandlersin interface- CDOView
 
 - 
getRegistrationHandlerspublic CDORegistrationHandler[] getRegistrationHandlers() - Specified by:
- getRegistrationHandlersin interface- CDOView
- Since:
- 4.6
 
 - 
getOrCreateResourcepublic CDOResource getOrCreateResource(java.lang.String path) - Specified by:
- getOrCreateResourcein interface- CDOTransaction
 
 - 
getOrCreateResourceFolderpublic CDOResourceFolder getOrCreateResourceFolder(java.lang.String path) - Specified by:
- getOrCreateResourceFolderin interface- CDOTransaction
- Since:
- 4.0
 
 - 
getResourcepublic CDOResource getResource(java.lang.String path, boolean loadOnDemand) throws CDOResourceNodeNotFoundException - Specified by:
- getResourcein interface- CDOView
- Throws:
- CDOResourceNodeNotFoundException
- See Also:
- ResourceSet.getResource(URI, boolean)
 
 - 
getResourcepublic CDOResource getResource(java.lang.String path) throws CDOResourceNodeNotFoundException Description copied from interface:CDOViewSame asgetResource(String, true).- Specified by:
- getResourcein interface- CDOView
- Throws:
- CDOResourceNodeNotFoundException
- See Also:
- ResourceSet.getResource(URI, boolean)
 
 - 
getResourceNodepublic CDOResourceNode getResourceNode(java.lang.String path) throws CDOResourceNodeNotFoundException Description copied from interface:CDOViewReturns the resource node with the given path.- Specified by:
- getResourceNodein interface- CDOView
- Returns:
- never null.
- Throws:
- CDOResourceNodeNotFoundException
 
 - 
createTextResourcepublic CDOTextResource createTextResource(java.lang.String path) - Specified by:
- createTextResourcein interface- CDOTransaction
- Since:
- 4.2
 
 - 
getOrCreateTextResourcepublic CDOTextResource getOrCreateTextResource(java.lang.String path) - Specified by:
- getOrCreateTextResourcein interface- CDOTransaction
- Since:
- 4.2
 
 - 
createBinaryResourcepublic CDOBinaryResource createBinaryResource(java.lang.String path) - Specified by:
- createBinaryResourcein interface- CDOTransaction
- Since:
- 4.2
 
 - 
getOrCreateBinaryResourcepublic CDOBinaryResource getOrCreateBinaryResource(java.lang.String path) - Specified by:
- getOrCreateBinaryResourcein interface- CDOTransaction
- Since:
- 4.2
 
 - 
getTextResourcepublic CDOTextResource getTextResource(java.lang.String path) throws CDOResourceNodeNotFoundException - Specified by:
- getTextResourcein interface- CDOView
- Throws:
- CDOResourceNodeNotFoundException
- Since:
- 4.2
 
 - 
getBinaryResourcepublic CDOBinaryResource getBinaryResource(java.lang.String path) throws CDOResourceNodeNotFoundException - Specified by:
- getBinaryResourcein interface- CDOView
- Throws:
- CDOResourceNodeNotFoundException
- Since:
- 4.2
 
 - 
getResourceFolderpublic CDOResourceFolder getResourceFolder(java.lang.String path) throws CDOResourceNodeNotFoundException - Specified by:
- getResourceFolderin interface- CDOView
- Throws:
- CDOResourceNodeNotFoundException
- Since:
- 4.2
 
 - 
setResourcePathCachepublic void setResourcePathCache(java.util.Map<java.lang.String,CDOID> resourcePathCache) Description copied from interface: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>().- Specified by:
- setResourcePathCachein interface- CDOView
- Since:
- 4.2
- See Also:
- CDOView.getResourceNode(String),- CDOView.getResource(String),- CDOView.getResource(String, boolean),- CDOView.getBinaryResource(String),- CDOView.getTextResource(String),- CDOView.getResourceFolder(String),- CDOView.hasResource(String)
 
 - 
getResourceSetpublic org.eclipse.emf.ecore.resource.ResourceSet getResourceSet() Description copied from interface:CDOViewReturns theresource setthis view is associated with.Same as calling getViewSet().getResourceSet(). - Specified by:
- getResourceSetin interface- CDOView
- See Also:
- CDOViewSet.getResourceSet()
 
 - 
getRevisionDeltaspublic java.util.Map<CDOID,CDORevisionDelta> getRevisionDeltas() - Specified by:
- getRevisionDeltasin interface- CDOTransaction
 
 - 
getRootResourcepublic CDOResource getRootResource() Description copied from interface: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.- Specified by:
- getRootResourcein interface- CDOView
 
 - 
getSessionpublic CDOSession getSession() Description copied from interface:CDOViewReturns thesessionthis view was opened by.- Specified by:
- getSessionin interface- CDOCommonView
- Specified by:
- getSessionin interface- CDOView
- Returns:
- The session this view was opened by, or nullif this view is closed.
- See Also:
- Closeable.close(),- Closeable.isClosed(),- CDOViewContainer.openView(),- CDOTransactionContainer.openTransaction()
 
 - 
getProviderpublic CDOViewProvider getProvider() Description copied from interface:CDOViewReturns theproviderthat has opened this view.- Specified by:
- getProviderin interface- CDOView
- Since:
- 4.4
 
 - 
createResourceURIpublic org.eclipse.emf.common.util.URI createResourceURI(java.lang.String path) Description copied from interface:CDOViewReturns aURIthat can be used inResourceSet.getResource(URI, boolean)to load the resource with the specified path.- Specified by:
- createResourceURIin interface- CDOView
- Since:
- 4.4
 
 - 
getTimeStamppublic long getTimeStamp() Description copied from interface:CDOBranchPointReturns the time stamp of this branch point, or the fixed special time stampunspecifiedif this branch point marks theheadof a branch.- Specified by:
- getTimeStampin interface- CDOBranchPoint
- Specified by:
- getTimeStampin interface- CDOTimeProvider
 
 - 
getDurableLockingIDpublic java.lang.String getDurableLockingID() - Specified by:
- getDurableLockingIDin interface- CDOCommonView
- Since:
- 4.0
 
 - 
getTransactionHandlerspublic CDOTransactionHandler[] getTransactionHandlers() - Specified by:
- getTransactionHandlersin interface- CDOTransaction
 
 - 
getTransactionHandlers1public CDOTransactionHandler1[] getTransactionHandlers1() - Specified by:
- getTransactionHandlers1in interface- CDOTransaction
- Since:
- 4.0
 
 - 
getTransactionHandlers2public CDOTransactionHandler2[] getTransactionHandlers2() - Specified by:
- getTransactionHandlers2in interface- CDOTransaction
- Since:
- 4.0
 
 - 
getSessionIDpublic int getSessionID() - Specified by:
- getSessionIDin interface- CDOCommonView
- Since:
- 4.1
 
 - 
isDurableViewpublic boolean isDurableView() - Specified by:
- isDurableViewin interface- CDOCommonView
- Since:
- 4.1
 
 - 
getLockOwnerpublic CDOLockOwner getLockOwner() - Specified by:
- getLockOwnerin interface- CDOCommonView
- Since:
- 4.15
 
 - 
getViewIDpublic int getViewID() - Specified by:
- getViewIDin interface- CDOCommonView
 
 - 
getViewSetpublic CDOViewSet getViewSet() Description copied from interface:CDOViewReturns theview setthis view is associated with.- Specified by:
- getViewSetin interface- CDOView
- Returns:
- The view set this view is associated with, never null.
- See Also:
- CDOViewSet.getViews()
 
 - 
getViewLockpublic java.util.concurrent.locks.Lock getViewLock() - Specified by:
- getViewLockin interface- CDOView
- Since:
- 4.5
 
 - 
syncExecpublic void syncExec(java.lang.Runnable runnable) 
 - 
syncExecpublic <V> V syncExec(java.util.concurrent.Callable<V> callable) throws java.lang.Exception
 - 
hasConflictpublic boolean hasConflict() Description copied from interface:CDOTransactionReturnstrueif this transaction contains local modifications that are conflicting with remote modifications,falseotherwise.- Specified by:
- hasConflictin interface- CDOTransaction
- Specified by:
- hasConflictin interface- CDOView
- See Also:
- CDOTransaction.hasConflict()
 
 - 
hasResourcepublic boolean hasResource(java.lang.String path) Description copied from interface:CDOViewReturnstrueif a resource with the given path exists in the repository,false. Applies tofile resources, as well.- Specified by:
- hasResourcein interface- CDOView
- See Also:
- CDOView.getResource(String, boolean)
 
 - 
isClosedpublic boolean isClosed() - Specified by:
- isClosedin interface- org.eclipse.net4j.util.collection.Closeable
 
 - 
isObjectRegisteredpublic boolean isObjectRegistered(CDOID id) Description copied from interface:CDOView- Specified by:
- isObjectRegisteredin interface- CDOView
 
 - 
refreshLockStates@Deprecated public void refreshLockStates(java.util.function.Consumer<CDOLockState> consumer) Deprecated.Description copied from interface: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.- Specified by:
- refreshLockStatesin interface- CDOView
- Since:
- 4.12
 
 - 
getLockStatespublic CDOLockState[] getLockStates(java.util.Collection<CDOID> ids) Description copied from interface:CDOViewGet an array oflock statescorresponding to the specified collection ofids. If the collection ofidsis empty,lock statesof all locked objects are returned.- Specified by:
- getLockStatesin interface- CDOView
- Since:
- 4.6
 
 - 
getLockStatesOfObjectspublic CDOLockState[] getLockStatesOfObjects(java.util.Collection<? extends CDOObject> objects) Description copied from interface:CDOViewGet an array oflock statescorresponding to the specified collection ofobjects. If the collection ofobjectsis empty,lock statesof all locked objects are returned.- Specified by:
- getLockStatesOfObjectsin interface- CDOView
- Since:
- 4.6
 
 - 
lockObjectspublic void lockObjects(java.util.Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, long timeout) throws java.lang.InterruptedException Description copied from interface:CDOViewLocks the given objects. Once the objects are locked, they will not be changed remotely or go in conflict state.- Specified by:
- lockObjectsin interface- CDOView
- Throws:
- java.lang.InterruptedException
 
 - 
lockObjectspublic void lockObjects(java.util.Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, long timeout, boolean recursive) throws java.lang.InterruptedException - Specified by:
- lockObjectsin interface- CDOView
- Throws:
- java.lang.InterruptedException
 
 - 
optionspublic CDOTransaction.Options options() Description copied from interface:CDOCommonViewReturns theoptionsof this view.- Specified by:
- optionsin interface- CDOCommonView
- Specified by:
- optionsin interface- CDOTransaction
- Specified by:
- optionsin interface- CDOView
- Specified by:
- optionsin interface- org.eclipse.net4j.util.options.IOptionsContainer
 
 - 
queryResourcespublic java.util.List<CDOResourceNode> queryResources(CDOResourceFolder folder, java.lang.String name, boolean exactMatch) Description copied from interface:CDOViewReturns a list of the resources in the given folder with a name equal to or starting with the value of the name parameter.- Specified by:
- queryResourcesin interface- CDOView
- Parameters:
- folder- The folder to search in, or- nullfor 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.
 
 - 
queryResourcesAsyncpublic org.eclipse.net4j.util.collection.CloseableIterator<CDOResourceNode> queryResourcesAsync(CDOResourceFolder folder, java.lang.String name, boolean exactMatch) Description copied from interface: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.- Specified by:
- queryResourcesAsyncin interface- CDOView
- Parameters:
- folder- The folder to search in, or- nullfor 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.
 
 - 
queryInstancespublic <T extends org.eclipse.emf.ecore.EObject> java.util.List<T> queryInstances(org.eclipse.emf.ecore.EClass type) Description copied from interface:CDOViewReturns a list of the instances of the given type.- Specified by:
- queryInstancesin interface- CDOView
- Since:
- 4.3
 
 - 
queryInstancesAsyncpublic <T extends org.eclipse.emf.ecore.EObject> org.eclipse.net4j.util.collection.CloseableIterator<T> queryInstancesAsync(org.eclipse.emf.ecore.EClass type) Description copied from interface:CDOViewReturns an iterator over the instances of the given type. The underlying query will be executed asynchronously.- Specified by:
- queryInstancesAsyncin interface- CDOView
- Since:
- 4.3
 
 - 
queryInstancesAsyncpublic <T extends org.eclipse.emf.ecore.EObject> org.eclipse.net4j.util.collection.CloseableIterator<T> queryInstancesAsync(org.eclipse.emf.ecore.EClass type, boolean exact)Description copied from interface:CDOViewReturns an iterator over the instances of the given type. The underlying query will be executed asynchronously.- Specified by:
- queryInstancesAsyncin interface- CDOView
- Since:
- 4.6
 
 - 
queryXRefspublic java.util.List<CDOObjectReference> queryXRefs(CDOObject targetObject, org.eclipse.emf.ecore.EReference... sourceReferences) Description copied from interface:CDOViewReturns a list ofobject referencesthat represent the cross references to the specified target object.- Specified by:
- queryXRefsin interface- CDOView
- Parameters:
- targetObject- The target object that referencing objects are requested for. An external target object can be used with the help of- CDOUtil.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.
- Since:
- 4.0
- See Also:
- CDOView.queryXRefs(Set, EReference...),- CDOView.queryXRefsAsync(Set, EReference...),- CDOUtil.wrapExternalObject(EObject, CDOView)
 
 - 
queryXRefspublic java.util.List<CDOObjectReference> queryXRefs(java.util.Set<CDOObject> targetObjects, org.eclipse.emf.ecore.EReference... sourceReferences) Description copied from interface:CDOViewReturns a list ofobject referencesthat represent the cross references to the specified target objects.- Specified by:
- queryXRefsin interface- CDOView
- Parameters:
- targetObjects- The set of target objects that referencing objects are requested for. External target objects can be used with the help of- CDOUtil.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.
- See Also:
- CDOView.queryXRefs(CDOObject, EReference...),- CDOView.queryXRefsAsync(Set, EReference...),- CDOUtil.wrapExternalObject(EObject, CDOView)
 
 - 
queryXRefsAsyncpublic org.eclipse.net4j.util.collection.CloseableIterator<CDOObjectReference> queryXRefsAsync(java.util.Set<CDOObject> targetObjects, org.eclipse.emf.ecore.EReference... sourceReferences) Description copied from interface:CDOViewReturns an iterator over theobject referencesthat represent the cross references to the specified target objects. The underlying query will be executed asynchronously.- Specified by:
- queryXRefsAsyncin interface- CDOView
- Parameters:
- targetObjects- The set of target objects that referencing objects are requested for. External target objects can be used with the help of- CDOUtil.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.
- See Also:
- CDOView.queryXRefs(CDOObject, EReference...),- CDOView.queryXRefs(Set, EReference...),- CDOUtil.wrapExternalObject(EObject, CDOView)
 
 - 
reload@Deprecated public int reload(CDOObject... objects) Deprecated.Description copied from interface:CDOViewReloads the givenobjectsfrom the repository.
 - 
removeObjectHandlerpublic void removeObjectHandler(CDOObjectHandler handler) - Specified by:
- removeObjectHandlerin interface- CDOView
 
 - 
removeRegistrationHandlerpublic void removeRegistrationHandler(CDORegistrationHandler handler) - Specified by:
- removeRegistrationHandlerin interface- CDOView
- Since:
- 4.6
 
 - 
removeTransactionHandlerpublic void removeTransactionHandler(CDOTransactionHandlerBase handler) - Specified by:
- removeTransactionHandlerin interface- CDOTransaction
- Since:
- 4.0
 
 - 
revertTopublic CDOChangeSetData revertTo(CDOBranchPoint branchPoint) - Specified by:
- revertToin interface- CDOTransaction
- Since:
- 4.15
 
 - 
mergepublic CDOChangeSetData merge(CDOBranch source, CDOMerger merger) Description copied from interface: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.- Specified by:
- mergein interface- CDOTransaction
- Since:
- 4.6
- See Also:
- CDOTransaction.merge(CDOBranchPoint, CDOMerger)
 
 - 
mergepublic CDOChangeSetData merge(CDOBranchPoint source, CDOMerger merger) Description copied from interface:CDOTransactionMerges the changes from the given source point into this transaction and possibly considers previous merges from thatbranchby inspecting themerge sourceinformation of thecommit history.- Specified by:
- mergein interface- CDOTransaction
 
 - 
mergepublic CDOChangeSetData merge(CDOBranchPoint source, CDOBranchPoint sourceBase, CDOMerger merger) Description copied from interface: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: - Specified by:
- mergein interface- CDOTransaction
- Since:
- 4.0
 
 - 
mergepublic CDOChangeSetData merge(CDOBranchPoint source, CDOBranchPoint sourceBase, CDOBranchPoint targetBase, CDOMerger merger) Description copied from interface: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". - Specified by:
- mergein interface- CDOTransaction
- Since:
- 4.6
- See Also:
- CDOTransaction.merge(CDOBranchPoint, CDOMerger),- CDOTransaction.merge(CDOBranch, CDOMerger)
 
 - 
compareRevisionspublic CDOChangeSetData compareRevisions(CDOBranchPoint source) - Specified by:
- compareRevisionsin interface- CDOView
- Since:
- 4.0
 
 - 
getHistorypublic CDOCommitHistory getHistory() - Specified by:
- getHistoryin interface- CDOCommitHistory.Provider<CDOObject,CDOObjectHistory>
- Since:
- 4.2
 
 - 
getHistorypublic CDOObjectHistory getHistory(CDOObject object) - Specified by:
- getHistoryin interface- CDOCommitHistory.Provider<CDOObject,CDOObjectHistory>
- Since:
- 4.2
 
 - 
setSavepointpublic CDOSavepoint setSavepoint() Description copied from interface: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. - Specified by:
- setSavepointin interface- CDOTransaction
- Specified by:
- setSavepointin interface- CDOUserTransaction
 
 - 
unlockObjectspublic void unlockObjects() Description copied from interface:CDOViewUnlocks all locked objects of this view.- Specified by:
- unlockObjectsin interface- CDOView
 
 - 
unlockObjectspublic void unlockObjects(java.util.Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType) Description copied from interface:CDOViewUnlocks the given locked objects of this view.- Specified by:
- unlockObjectsin interface- CDOView
 
 - 
unlockObjectspublic void unlockObjects(java.util.Collection<? extends CDOObject> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, boolean recursive) - Specified by:
- unlockObjectsin interface- CDOView
 
 - 
enableDurableLocking@Deprecated public java.lang.String enableDurableLocking(boolean enable) Deprecated.UseenableDurableLocking()instead ordisableDurableLocking(boolean), respectively.- Specified by:
- enableDurableLockingin interface- CDOView
- Since:
- 4.0
 
 - 
enableDurableLockingpublic java.lang.String enableDurableLocking() Description copied from interface: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.- Specified by:
- enableDurableLockingin interface- CDOView
- Since:
- 4.1
- See Also:
- CDOViewContainer.openView(String),- CDOViewOpener.openView(String, ResourceSet),- CDOTransactionContainer.openTransaction(String),- CDOTransactionOpener.openTransaction(String, ResourceSet),- CDOView.disableDurableLocking(boolean)
 
 - 
disableDurableLockingpublic void disableDurableLocking(boolean releaseLocks) Description copied from interface: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.- Specified by:
- disableDurableLockingin interface- CDOView
- Since:
- 4.1
- See Also:
- CDOView.enableDurableLocking()
 
 - 
isReadOnlypublic boolean isReadOnly() - Specified by:
- isReadOnlyin interface- CDOCommonView
 
 - 
isHistoricalpublic boolean isHistorical() - Specified by:
- isHistoricalin interface- CDOCommonView
- Since:
- 4.5
 
 - 
getBranchpublic CDOBranch getBranch() Description copied from interface:CDOBranchPointReturns the branch of this branch point, ornullif this branch point is thebaseof themain branch.- Specified by:
- getBranchin interface- CDOBranchPoint
- Specified by:
- getBranchin interface- CDOBranchProvider
 
 - 
setBranchPointpublic boolean setBranchPoint(CDOBranch branch, long timeStamp) Description copied from interface: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.- Specified by:
- setBranchPointin interface- CDOView
- Returns:
- trueif the branch point was changed,- falseotherwise.
 
 - 
setBranchPointpublic boolean setBranchPoint(CDOBranch branch, long timeStamp, IProgressMonitor monitor) Description copied from interface:CDOViewSame asCDOView.setBranchPoint(CDOBranch, long)with aIProgressMonitor.- Specified by:
- setBranchPointin interface- CDOView
- Since:
- 4.4
 
 - 
setBranchPointpublic boolean setBranchPoint(CDOBranchPoint branchPoint) Description copied from interface:CDOViewSame as callingsetBranchPoint(branchPoint.getBranch(), branchPoint.getTimeStamp()).- Specified by:
- setBranchPointin interface- CDOView
 
 - 
setBranchPointpublic boolean setBranchPoint(CDOBranchPoint branchPoint, IProgressMonitor monitor) Description copied from interface:CDOViewSame as callingCDOView.setBranchPoint(CDOBranchPoint)with aIProgressMonitor.- Specified by:
- setBranchPointin interface- CDOView
- Since:
- 4.4
 
 - 
setBranchpublic boolean setBranch(CDOBranch branch) Description copied from interface:CDOViewSame as callingsetBranchPoint(branch, getTimeStamp()).
 - 
setBranchpublic boolean setBranch(CDOBranch branch, IProgressMonitor monitor) Description copied from interface:CDOViewSame asCDOView.setBranch(CDOBranch)withIProgressMonitor.
 - 
setTimeStamppublic boolean setTimeStamp(long timeStamp) Description copied from interface:CDOViewSame as callingsetBranchPoint(getBranch(), timeStamp).- Specified by:
- setTimeStampin interface- CDOView
 
 - 
setTimeStamppublic boolean setTimeStamp(long timeStamp, IProgressMonitor monitor)Description copied from interface:CDOViewSame asCDOView.setTimeStamp(long)withIProgressMonitor.- Specified by:
- setTimeStampin interface- CDOView
- Since:
- 4.4
 
 - 
getURIHandlerpublic org.eclipse.emf.ecore.resource.URIHandler getURIHandler() - Specified by:
- getURIHandlerin interface- CDOView
 
 - 
getUnitManagerpublic CDOUnitManager getUnitManager() - Specified by:
- getUnitManagerin interface- CDOView
- Since:
- 4.5
 
 - 
getCommitCommentpublic java.lang.String getCommitComment() Description copied from interface:CDOTransactionReturns the comment to be used in the next commit operation.- Specified by:
- getCommitCommentin interface- CDOTransaction
- See Also:
- CDOCommitInfo.getComment()
 
 - 
setCommitCommentpublic void setCommitComment(java.lang.String comment) Description copied from interface:CDOTransactionSets the comment to be used in the next commit operation.- Specified by:
- setCommitCommentin interface- CDOTransaction
- See Also:
- CDOCommitInfo.getComment()
 
 - 
setCommittablespublic void setCommittables(java.util.Set<? extends org.eclipse.emf.ecore.EObject> committables) - Specified by:
- setCommittablesin interface- CDOTransaction
- Since:
- 4.0
 
 - 
getCommittablespublic java.util.Set<? extends org.eclipse.emf.ecore.EObject> getCommittables() - Specified by:
- getCommittablesin interface- CDOTransaction
- Since:
- 4.0
 
 - 
isEmptypublic boolean isEmpty() - Specified by:
- isEmptyin interface- org.eclipse.net4j.util.container.IContainer<CDOResourceNode>
- Since:
- 4.2
 
 - 
getElementspublic CDOResourceNode[] getElements() - Specified by:
- getElementsin interface- org.eclipse.net4j.util.container.IContainer<CDOResourceNode>
- Since:
- 4.2
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
getAdapterpublic java.lang.Object getAdapter(java.lang.Class adapter) - Specified by:
- getAdapterin interface- IAdaptable
- Since:
- 4.2
 
 - 
createTempFilepublic static java.io.File createTempFile(CDOTransaction transaction) throws java.io.IOException - Throws:
- java.io.IOException
 
 
- 
 
-