|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.net4j.util.event.Notifier
org.eclipse.emf.cdo.transaction.CDOPushTransaction

A transaction that persists changes to the object graph locally on commit and can later load
these changes and push them to the repository.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.transaction.CDOTransaction |
|---|
CDOTransaction.Options |
| Nested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainer |
|---|
IContainer.Modifiable<E> |
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.emf.cdo.util.CDOUpdatable |
|---|
NO_TIMEOUT |
| Fields inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchPoint |
|---|
INVALID_DATE, UNSPECIFIED_DATE |
| Constructor Summary | |
|---|---|
CDOPushTransaction(CDOTransaction delegate)
|
|
CDOPushTransaction(CDOTransaction delegate,
File file)
|
|
CDOPushTransaction(CDOTransaction delegate,
File file,
boolean reconstructSavepoints)
|
|
| Method Summary | ||
|---|---|---|
void |
addListener(IListener listener)
|
|
void |
addObjectHandler(CDOObjectHandler handler)
|
|
void |
addTransactionHandler(CDOTransactionHandlerBase handler)
|
|
void |
close()
|
|
CDOCommitInfo |
commit()
Same as commit(null). |
|
CDOCommitInfo |
commit(IProgressMonitor progressMonitor)
Commits the modifications of this transaction to the repository and returns a commit info object if successful. |
|
CDOChangeSetData |
compareRevisions(CDOBranchPoint source)
|
|
CDOBinaryResource |
createBinaryResource(String path)
|
|
CDOQuery |
createQuery(String language,
String queryString)
Same as createQuery(language, queryString, null). |
|
CDOQuery |
createQuery(String language,
String queryString,
boolean considerDirtyState)
|
|
CDOQuery |
createQuery(String language,
String queryString,
Object context)
|
|
CDOQuery |
createQuery(String language,
String queryString,
Object context,
boolean considerDirtyState)
|
|
CDOResource |
createResource(String path)
|
|
CDOResourceFolder |
createResourceFolder(String path)
|
|
static File |
createTempFile(CDOTransaction transaction)
|
|
CDOTextResource |
createTextResource(String path)
|
|
void |
disableDurableLocking(boolean releaseLocks)
Disables the storage of all information that's needed to reopen this view at a
later point in time. |
|
String |
enableDurableLocking()
Enables the storage of all information that's needed to reopen this view at a
later point in time. |
|
String |
enableDurableLocking(boolean enable)
Deprecated. Use enableDurableLocking() instead or disableDurableLocking(boolean), respectively. |
|
CDOSavepoint[] |
exportChanges(OutputStream out)
|
|
Object |
getAdapter(Class adapter)
|
|
CDOBinaryResource |
getBinaryResource(String path)
|
|
CDOBranch |
getBranch()
Returns the branch of this branch point, or null if this branch point is the
base of the main branch. |
|
CDOChangeSetData |
getChangeSetData()
|
|
String |
getCommitComment()
Returns the comment to be used in the next commit operation. |
|
Set<? extends EObject> |
getCommittables()
|
|
Set<CDOObject> |
getConflicts()
|
|
CDOTransaction |
getDelegate()
|
|
Map<CDOID,CDOObject> |
getDetachedObjects()
|
|
Map<CDOID,CDOObject> |
getDirtyObjects()
|
|
String |
getDurableLockingID()
|
|
CDOResourceNode[] |
getElements()
|
|
File |
getFile()
|
|
CDOSavepoint |
getFirstSavepoint()
|
|
CDOCommitHistory |
getHistory()
|
|
CDOObjectHistory |
getHistory(CDOObject object)
|
|
long |
getLastCommitTime()
|
|
CDOSavepoint |
getLastSavepoint()
|
|
long |
getLastUpdateTime()
Returns the time stamp of the last commit operation. |
|
IListener[] |
getListeners()
|
|
Map<CDOID,CDOObject> |
getNewObjects()
|
|
CDOObject |
getObject(CDOID id)
Returns the object for the given CDOID. |
|
CDOObject |
getObject(CDOID id,
boolean loadOnDemand)
Returns the object for the given CDOID. |
|
|
getObject(T objectFromDifferentView)
Takes an object from a (possibly) different view and contextifies it for the usage with this view. |
|
CDOObjectHandler[] |
getObjectHandlers()
|
|
CDOBinaryResource |
getOrCreateBinaryResource(String path)
|
|
CDOResource |
getOrCreateResource(String path)
|
|
CDOResourceFolder |
getOrCreateResourceFolder(String path)
|
|
CDOTextResource |
getOrCreateTextResource(String path)
|
|
CDOResource |
getResource(String path)
Same as getResource(String, true). |
|
CDOResource |
getResource(String path,
boolean loadOnDemand)
|
|
CDOResourceFolder |
getResourceFolder(String path)
|
|
CDOResourceNode |
getResourceNode(String path)
Returns the resource node with the given path. |
|
ResourceSet |
getResourceSet()
Returns the resource set this view is associated with. |
|
CDORevision |
getRevision(CDOID id)
|
|
Map<CDOID,CDORevisionDelta> |
getRevisionDeltas()
|
|
CDOResource |
getRootResource()
Returns the root resource of the repository. |
|
CDOSession |
getSession()
Returns the session this view was opened by. |
|
int |
getSessionID()
|
|
CDOTextResource |
getTextResource(String path)
|
|
long |
getTimeStamp()
Returns the time stamp of this branch point, or the fixed special time stamp unspecified if this branch point marks the head of a branch. |
|
CDOTransactionHandler[] |
getTransactionHandlers()
|
|
CDOTransactionHandler1[] |
getTransactionHandlers1()
|
|
CDOTransactionHandler2[] |
getTransactionHandlers2()
|
|
URIHandler |
getURIHandler()
|
|
int |
getViewID()
|
|
CDOViewSet |
getViewSet()
Returns the view set this view is associated with. |
|
boolean |
hasConflict()
Returns true if this transaction contains local modifications that are conflicting with remote
modifications, false otherwise. |
|
boolean |
hasListeners()
|
|
boolean |
hasResource(String path)
Returns true if a resource with the given path exists in the repository, false. |
|
CDOSavepoint[] |
importChanges(InputStream in,
boolean reconstructSavepoints)
|
|
boolean |
isClosed()
|
|
boolean |
isDirty()
Returns true if this transaction is not closed and contains uncommitted changes, false
otherwise. |
|
boolean |
isDurableView()
|
|
boolean |
isEmpty()
|
|
boolean |
isInvalidationRunnerActive()
|
|
boolean |
isLegacyModeEnabled()
Deprecated. |
|
boolean |
isObjectRegistered(CDOID id)
Returns true if an object with the given id is currently registered in
this view, false otherwise. |
|
boolean |
isReadOnly()
|
|
void |
lockObjects(Collection<? extends CDOObject> objects,
IRWLockManager.LockType lockType,
long timeout)
Locks the given objects. |
|
void |
lockObjects(Collection<? extends CDOObject> objects,
IRWLockManager.LockType lockType,
long timeout,
boolean recursive)
|
|
CDOChangeSetData |
merge(CDOBranchPoint source,
CDOBranchPoint sourceBase,
CDOMerger merger)
|
|
CDOChangeSetData |
merge(CDOBranchPoint source,
CDOMerger merger)
|
|
CDOTransaction.Options |
options()
Returns the options of this view. |
|
void |
push()
|
|
void |
push(IProgressMonitor progressMonitor)
|
|
List<CDOResourceNode> |
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. |
|
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. |
|
List<CDOObjectReference> |
queryXRefs(CDOObject targetObject,
EReference... sourceReferences)
Returns a list of object references that represent the cross references to the specified
target object. |
|
List<CDOObjectReference> |
queryXRefs(Set<CDOObject> targetObjects,
EReference... sourceReferences)
Returns a list of object references that represent the cross references to the specified
target objects. |
|
CloseableIterator<CDOObjectReference> |
queryXRefsAsync(Set<CDOObject> targetObjects,
EReference... sourceReferences)
Returns an iterator over the object references that represent the cross references to
the specified target objects. |
|
int |
reload(CDOObject... objects)
Reloads the given objects from the repository. |
|
void |
removeListener(IListener listener)
|
|
void |
removeObjectHandler(CDOObjectHandler handler)
|
|
void |
removeTransactionHandler(CDOTransactionHandlerBase handler)
|
|
void |
rollback()
|
|
boolean |
setBranch(CDOBranch branch)
Same as calling setBranchPoint(branch, getTimeStamp()). |
|
boolean |
setBranchPoint(CDOBranch branch,
long timeStamp)
Sets the branch and the point in (repository) time this view should refer to. |
|
boolean |
setBranchPoint(CDOBranchPoint branchPoint)
Same as calling setBranchPoint(branchPoint.getBranch(),
branchPoint.getTimeStamp()). |
|
void |
setCommitComment(String comment)
Sets the comment to be used in the next commit operation. |
|
void |
setCommittables(Set<? extends EObject> committables)
|
|
protected void |
setDirty(boolean dirty)
|
|
void |
setResourcePathCache(Map<String,CDOID> resourcePathCache)
Sets the new map to be used as a cache for various get*Resource*(String path) methods. |
|
CDOSavepoint |
setSavepoint()
Creates a save point in the CDOTransaction that can be used to roll back a part of the transaction
Save points do not involve the server side, everything is done on the client side. |
|
boolean |
setTimeStamp(long timeStamp)
Same as calling setBranchPoint(getBranch(), timeStamp). |
|
String |
toString()
|
|
void |
unlockObjects()
Unlocks all locked objects of this view. |
|
void |
unlockObjects(Collection<? extends CDOObject> objects,
IRWLockManager.LockType lockType)
Unlocks the given locked objects of this view. |
|
void |
unlockObjects(Collection<? extends CDOObject> objects,
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 occured. |
|
boolean |
waitForUpdate(long updateTime,
long timeoutMillis)
Blocks the calling thread until a commit operation with the given time stamp (or higher) has occured or the given timeout has expired. |
|
| Methods inherited from class org.eclipse.net4j.util.event.Notifier |
|---|
fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getNotificationService, lastListenerRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CDOPushTransaction(CDOTransaction delegate)
throws IOException
IOException
public CDOPushTransaction(CDOTransaction delegate,
File file)
throws IOException
IOException
public CDOPushTransaction(CDOTransaction delegate,
File file,
boolean reconstructSavepoints)
throws IOException
IOException| Method Detail |
|---|
public CDOTransaction getDelegate()
public File getFile()
public boolean isDirty()
CDOTransactiontrue if this transaction is not closed and contains uncommitted changes, false
otherwise.
isDirty in interface CDOTransactionisDirty in interface CDOViewCDOTransaction.isDirty()protected void setDirty(boolean dirty)
public CDOCommitInfo commit()
throws CommitException
CDOUserTransactioncommit(null).
commit in interface CDOUserTransactionCommitException
public CDOCommitInfo commit(IProgressMonitor progressMonitor)
throws CommitException
CDOUserTransactioncommit 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 handle containment cycle exceptions. The following example shows how
write robust transactions:
CDOTransaction transaction = null;
try
{
transaction = session.openTransaction();
for (;;)
{
try
{
synchronized (transaction)
{
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
{
if (transaction != null)
{
transaction.close();
}
}
Note that the transaction stays functional after a any call to the commit() methods. If the transaction is not closed after a commit
it can be used to apply additional modifications to the model.
commit in interface CDOUserTransactionCommitExceptionpublic void rollback()
rollback in interface CDOUserTransaction
public void push()
throws CommitException
CommitException
public void push(IProgressMonitor progressMonitor)
throws CommitException
CommitException
public CDOSavepoint[] exportChanges(OutputStream out)
throws IOException
exportChanges in interface CDOTransactionIOException
public CDOSavepoint[] importChanges(InputStream in,
boolean reconstructSavepoints)
throws IOException
importChanges in interface CDOTransactionIOExceptionpublic long getLastCommitTime()
getLastCommitTime in interface CDOTransactionpublic void addListener(IListener listener)
addListener in interface INotifieraddListener in class Notifierpublic void removeListener(IListener listener)
removeListener in interface INotifierremoveListener in class Notifierpublic boolean hasListeners()
hasListeners in interface INotifierhasListeners in class Notifierpublic IListener[] getListeners()
getListeners in interface INotifiergetListeners in class Notifierpublic void addObjectHandler(CDOObjectHandler handler)
addObjectHandler in interface CDOViewpublic void addTransactionHandler(CDOTransactionHandlerBase handler)
addTransactionHandler in interface CDOTransactionpublic void close()
close in interface Closeable
public CDOQuery createQuery(String language,
String queryString)
CDOViewcreateQuery(language, queryString, null).
createQuery in interface CDOViewCDOView.createQuery(String, String, Object)
public CDOQuery createQuery(String language,
String queryString,
Object context)
createQuery in interface CDOView
public CDOQuery createQuery(String language,
String queryString,
boolean considerDirtyState)
createQuery in interface CDOTransaction
public CDOQuery createQuery(String language,
String queryString,
Object context,
boolean considerDirtyState)
createQuery in interface CDOTransactionpublic CDOResourceFolder createResourceFolder(String path)
createResourceFolder in interface CDOTransactionpublic CDOResource createResource(String path)
createResource in interface CDOTransactionResourceSet.createResource(URI)@Deprecated public boolean isLegacyModeEnabled()
isLegacyModeEnabled in interface CDOViewCDOUtil.setLegacyModeDefault(boolean)public long getLastUpdateTime()
CDOUpdatablepassive updates are disabled.
getLastUpdateTime in interface CDOUpdatablepublic void waitForUpdate(long updateTime)
CDOUpdatable
waitForUpdate in interface CDOUpdatable
public boolean waitForUpdate(long updateTime,
long timeoutMillis)
CDOUpdatable
waitForUpdate in interface CDOUpdatabletrue if the specified commit operation has occured within the given timeout period,
false otherwise.public Set<CDOObject> getConflicts()
getConflicts in interface CDOTransactionpublic CDOChangeSetData getChangeSetData()
getChangeSetData in interface CDOChangeSetDataProviderpublic Map<CDOID,CDOObject> getDetachedObjects()
getDetachedObjects in interface CDOTransactionpublic Map<CDOID,CDOObject> getDirtyObjects()
getDirtyObjects in interface CDOTransactionpublic CDORevision getRevision(CDOID id)
getRevision in interface CDORevisionProviderpublic CDOSavepoint getFirstSavepoint()
getFirstSavepoint in interface CDOTransactionpublic CDOSavepoint getLastSavepoint()
getLastSavepoint in interface CDOTransactiongetLastSavepoint in interface CDOUserTransactionpublic boolean isInvalidationRunnerActive()
isInvalidationRunnerActive in interface CDOViewpublic Map<CDOID,CDOObject> getNewObjects()
getNewObjects in interface CDOTransaction
public CDOObject getObject(CDOID id,
boolean loadOnDemand)
CDOView
getObject in interface CDOViewloadOnDemand - whether to create and load the object, if it doesn't already exist.
null, or null if there isn't
one and loadOnDemand is false.public CDOObject getObject(CDOID id)
CDOView
Same as getObject(id, true).
getObject in interface CDOViewCDOView.getObject(CDOID, boolean)public <T extends EObject> T getObject(T objectFromDifferentView)
CDOViewCDOObject it is returned unmodified.
IllegalArgumentException is
thrown.
null is passed null is returned.
getObject in interface CDOViewpublic CDOObjectHandler[] getObjectHandlers()
getObjectHandlers in interface CDOViewpublic CDOResource getOrCreateResource(String path)
getOrCreateResource in interface CDOTransactionpublic CDOResourceFolder getOrCreateResourceFolder(String path)
getOrCreateResourceFolder in interface CDOTransaction
public CDOResource getResource(String path,
boolean loadOnDemand)
getResource in interface CDOViewResourceSet.getResource(URI, boolean)public CDOResource getResource(String path)
CDOViewgetResource(String, true).
getResource in interface CDOViewResourceSet.getResource(URI, boolean)public CDOResourceNode getResourceNode(String path)
CDOView
getResourceNode in interface CDOViewnull.public CDOTextResource createTextResource(String path)
createTextResource in interface CDOTransactionpublic CDOTextResource getOrCreateTextResource(String path)
getOrCreateTextResource in interface CDOTransactionpublic CDOBinaryResource createBinaryResource(String path)
createBinaryResource in interface CDOTransactionpublic CDOBinaryResource getOrCreateBinaryResource(String path)
getOrCreateBinaryResource in interface CDOTransactionpublic CDOTextResource getTextResource(String path)
getTextResource in interface CDOViewpublic CDOBinaryResource getBinaryResource(String path)
getBinaryResource in interface CDOViewpublic CDOResourceFolder getResourceFolder(String path)
getResourceFolder in interface CDOViewpublic void setResourcePathCache(Map<String,CDOID> resourcePathCache)
CDOViewmap to be used as a cache for various get*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.
Passing null disables resource path caching.
The default value is new HashMap<String, CDOID>().
setResourcePathCache in interface CDOViewCDOView.getResourceNode(String),
CDOView.getResource(String),
CDOView.getResource(String, boolean),
CDOView.getBinaryResource(String),
CDOView.getTextResource(String),
CDOView.getResourceFolder(String),
CDOView.hasResource(String)public ResourceSet getResourceSet()
CDOViewresource set this view is associated with.
Same as calling getViewSet().getResourceSet().
getResourceSet in interface CDOViewCDOViewSet.getResourceSet()public Map<CDOID,CDORevisionDelta> getRevisionDeltas()
getRevisionDeltas in interface CDOTransactionpublic CDOResource getRootResource()
CDOView
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.
getRootResource in interface CDOViewpublic CDOSession getSession()
CDOViewsession this view was opened by.
getSession in interface CDOCommonViewgetSession in interface CDOViewnull if this view is closed.Closeable.close(),
Closeable.isClosed(),
CDOViewContainer.openView(),
CDOTransactionContainer.openTransaction()public long getTimeStamp()
CDOBranchPointunspecified if this branch point marks the head of a branch.
getTimeStamp in interface CDOBranchPointgetTimeStamp in interface CDOTimeProviderpublic String getDurableLockingID()
getDurableLockingID in interface CDOCommonViewgetDurableLockingID in interface CDOLockOwnerpublic CDOTransactionHandler[] getTransactionHandlers()
getTransactionHandlers in interface CDOTransactionpublic CDOTransactionHandler1[] getTransactionHandlers1()
getTransactionHandlers1 in interface CDOTransactionpublic CDOTransactionHandler2[] getTransactionHandlers2()
getTransactionHandlers2 in interface CDOTransactionpublic int getSessionID()
getSessionID in interface CDOLockOwnerpublic boolean isDurableView()
isDurableView in interface CDOLockOwnerpublic int getViewID()
getViewID in interface CDOCommonViewgetViewID in interface CDOLockOwnerpublic CDOViewSet getViewSet()
CDOViewview set this view is associated with.
getViewSet in interface CDOViewnull.CDOViewSet.getViews()public boolean hasConflict()
CDOTransactiontrue if this transaction contains local modifications that are conflicting with remote
modifications, false otherwise.
hasConflict in interface CDOTransactionhasConflict in interface CDOViewCDOTransaction.hasConflict()public boolean hasResource(String path)
CDOViewtrue if a resource with the given path exists in the repository, false.
Applies to file resources, as well.
hasResource in interface CDOViewCDOView.getResource(String, boolean)public boolean isClosed()
isClosed in interface Closeablepublic boolean isObjectRegistered(CDOID id)
CDOViewtrue if an object with the given id is currently registered in
this view, false otherwise.
isObjectRegistered in interface CDOView
public void lockObjects(Collection<? extends CDOObject> objects,
IRWLockManager.LockType lockType,
long timeout)
throws InterruptedException
CDOView
lockObjects in interface CDOViewInterruptedException
public void lockObjects(Collection<? extends CDOObject> objects,
IRWLockManager.LockType lockType,
long timeout,
boolean recursive)
throws InterruptedException
lockObjects in interface CDOViewInterruptedExceptionpublic CDOTransaction.Options options()
CDOCommonViewoptions of this view.
options in interface CDOCommonViewoptions in interface CDOTransactionoptions in interface CDOViewoptions in interface IOptionsContainer
public List<CDOResourceNode> queryResources(CDOResourceFolder folder,
String name,
boolean exactMatch)
CDOView
queryResources in interface CDOViewfolder - The folder to search in, or null 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.
public CloseableIterator<CDOResourceNode> queryResourcesAsync(CDOResourceFolder folder,
String name,
boolean exactMatch)
CDOView
queryResourcesAsync in interface CDOViewfolder - The folder to search in, or null 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.
public List<CDOObjectReference> queryXRefs(CDOObject targetObject,
EReference... sourceReferences)
CDOViewobject references that represent the cross references to the specified
target object.
queryXRefs in interface CDOViewtargetObject - 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.CDOView.queryXRefs(Set, EReference...),
CDOView.queryXRefsAsync(Set, EReference...),
CDOUtil.wrapExternalObject(EObject, CDOView)
public List<CDOObjectReference> queryXRefs(Set<CDOObject> targetObjects,
EReference... sourceReferences)
CDOViewobject references that represent the cross references to the specified
target objects.
queryXRefs in interface CDOViewtargetObjects - 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.CDOView.queryXRefs(CDOObject, EReference...),
CDOView.queryXRefsAsync(Set, EReference...),
CDOUtil.wrapExternalObject(EObject, CDOView)
public CloseableIterator<CDOObjectReference> queryXRefsAsync(Set<CDOObject> targetObjects,
EReference... sourceReferences)
CDOViewobject references that represent the cross references to
the specified target objects. The underlying query will be executed asynchronously.
queryXRefsAsync in interface CDOViewtargetObjects - 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.CDOView.queryXRefs(CDOObject, EReference...),
CDOView.queryXRefs(Set, EReference...),
CDOUtil.wrapExternalObject(EObject, CDOView)public int reload(CDOObject... objects)
CDOViewobjects from the repository.
reload in interface CDOViewpublic void removeObjectHandler(CDOObjectHandler handler)
removeObjectHandler in interface CDOViewpublic void removeTransactionHandler(CDOTransactionHandlerBase handler)
removeTransactionHandler in interface CDOTransaction
public CDOChangeSetData merge(CDOBranchPoint source,
CDOMerger merger)
merge in interface CDOTransaction
public CDOChangeSetData merge(CDOBranchPoint source,
CDOBranchPoint sourceBase,
CDOMerger merger)
merge in interface CDOTransactionpublic CDOChangeSetData compareRevisions(CDOBranchPoint source)
compareRevisions in interface CDOViewpublic CDOCommitHistory getHistory()
getHistory in interface CDOCommitHistory.Provider<CDOObject,CDOObjectHistory>public CDOObjectHistory getHistory(CDOObject object)
getHistory in interface CDOCommitHistory.Provider<CDOObject,CDOObjectHistory>public CDOSavepoint setSavepoint()
CDOUserTransactionCDOTransaction that can be used to roll back a part of the transaction
Save points do not involve the server side, everything is done on the client side.
setSavepoint in interface CDOTransactionsetSavepoint in interface CDOUserTransactionpublic void unlockObjects()
CDOView
unlockObjects in interface CDOView
public void unlockObjects(Collection<? extends CDOObject> objects,
IRWLockManager.LockType lockType)
CDOView
unlockObjects in interface CDOView
public void unlockObjects(Collection<? extends CDOObject> objects,
IRWLockManager.LockType lockType,
boolean recursive)
unlockObjects in interface CDOView@Deprecated public String enableDurableLocking(boolean enable)
enableDurableLocking() instead or disableDurableLocking(boolean), respectively.
enableDurableLocking in interface CDOViewpublic String enableDurableLocking()
CDOViewreopen this view at a
later point in time. This information includes the branch point, the user ID of the
session, whether it's a read-only view or a transaction and all the locks
that are acquired or will be acquired while durable locking is enabled.
enableDurableLocking in interface CDOViewCDOViewContainer.openView(String),
CDOViewContainer.openView(String, ResourceSet),
CDOTransactionContainer.openTransaction(String),
CDOTransactionContainer.openTransaction(String, ResourceSet),
CDOView.disableDurableLocking(boolean)public void disableDurableLocking(boolean releaseLocks)
CDOViewreopen 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 if true is passed to the releaseLocks parameter.
disableDurableLocking in interface CDOViewCDOView.enableDurableLocking()public boolean isReadOnly()
isReadOnly in interface CDOCommonViewpublic CDOBranch getBranch()
CDOBranchPointnull if this branch point is the
base of the main branch.
getBranch in interface CDOBranchPoint
public boolean setBranchPoint(CDOBranch branch,
long timeStamp)
CDOViewbranch and the point in (repository) time this view should refer to. Objects provided by this view will be valid at this time. The special value
UNSPECIFIED_DATE denotes a "floating view" that always shows the latest
state of the repository.
setBranchPoint in interface CDOViewtrue if the branch point was changed, false otherwise.public boolean setBranchPoint(CDOBranchPoint branchPoint)
CDOViewsetBranchPoint(branchPoint.getBranch(),
branchPoint.getTimeStamp()).
setBranchPoint in interface CDOViewpublic boolean setBranch(CDOBranch branch)
CDOViewsetBranchPoint(branch, getTimeStamp()).
setBranch in interface CDOViewpublic boolean setTimeStamp(long timeStamp)
CDOViewsetBranchPoint(getBranch(), timeStamp).
setTimeStamp in interface CDOViewpublic URIHandler getURIHandler()
getURIHandler in interface CDOViewpublic String getCommitComment()
CDOTransaction
getCommitComment in interface CDOTransactionCDOCommitInfo.getComment()public void setCommitComment(String comment)
CDOTransaction
setCommitComment in interface CDOTransactionCDOCommitInfo.getComment()public void setCommittables(Set<? extends EObject> committables)
setCommittables in interface CDOTransactionpublic Set<? extends EObject> getCommittables()
getCommittables in interface CDOTransactionpublic boolean isEmpty()
isEmpty in interface IContainer<CDOResourceNode>public CDOResourceNode[] getElements()
getElements in interface IContainer<CDOResourceNode>public String toString()
toString in class Objectpublic Object getAdapter(Class adapter)
getAdapter in interface IAdaptable
public static File createTempFile(CDOTransaction transaction)
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||