org.eclipse.emf.cdo.transaction
Interface CDOTransaction.Options

All Superinterfaces:
CDOCommonView.Options, CDOView.Options, INotifier, IOptions
Enclosing interface:
CDOTransaction

public static interface CDOTransaction.Options
extends CDOView.Options

Encapsulates a set of notifying transaction configuration options.

No Implement
This interface is not intended to be implemented by clients.
No Extend
This interface is not intended to be extended by clients.

Nested Class Summary
static interface CDOTransaction.Options.AutoReleaseLocksEvent
          An options event fired from transaction options when the auto release locks option has changed.
static interface CDOTransaction.Options.ConflictResolversEvent
          An options event fired from transaction options when the conflict resolvers option has changed.
 
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.view.CDOView.Options
CDOView.Options.CacheReferenceTypeEvent, CDOView.Options.ChangeSubscriptionPoliciesEvent, CDOView.Options.DetachmentNotificationEvent, CDOView.Options.FeatureAnalyzerEvent, CDOView.Options.InvalidationNotificationEvent, CDOView.Options.InvalidationPolicyEvent, CDOView.Options.LoadNotificationEvent, CDOView.Options.ReferencePolicyEvent, CDOView.Options.RevisionPrefetchingPolicyEvent, CDOView.Options.StaleReferencePolicyEvent, CDOView.Options.StrongReferencePolicyEvent
 
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.common.CDOCommonView.Options
CDOCommonView.Options.LockNotificationEvent
 
Field Summary
 
Fields inherited from interface org.eclipse.emf.cdo.view.CDOView.Options
DEFAULT_REVISION_PREFETCHING, NO_REVISION_PREFETCHING
 
Method Summary
 void addConflictResolver(CDOConflictResolver resolver)
          Adds a conflict resolver to the list of conflict resolvers of this transaction.
 CDOConflictResolver[] getConflictResolvers()
          Returns a copy of the conflict resolver list of this transaction.
 CDOTransaction getContainer()
          Returns the transaction of this options object.
 boolean isAutoReleaseLocksEnabled()
          Returns true if locks in this view will be removes when CDOUserTransaction.commit() or CDOUserTransaction.rollback() is called.
 void removeConflictResolver(CDOConflictResolver resolver)
          Removes a conflict resolver from the list of conflict resolvers of this transaction.
 void setAutoReleaseLocksEnabled(boolean on)
          Specifies whether locks in this view will be removed when CDOUserTransaction.commit() or CDOUserTransaction.rollback() is called.
 void setConflictResolvers(CDOConflictResolver[] resolvers)
          Sets the conflict resolver list of this transaction.
 
Methods inherited from interface org.eclipse.emf.cdo.view.CDOView.Options
addChangeSubscriptionPolicy, getCacheReferenceType, getChangeSubscriptionPolicies, getFeatureAnalyzer, getInvalidationPolicy, getRevisionPrefetchingPolicy, getStaleReferenceBehaviour, getStaleReferencePolicy, getStrongReferencePolicy, isDetachmentNotificationEnabled, isInvalidationNotificationEnabled, isLoadNotificationEnabled, removeChangeSubscriptionPolicy, setCacheReferenceType, setDetachmentNotificationEnabled, setFeatureAnalyzer, setInvalidationNotificationEnabled, setInvalidationPolicy, setLoadNotificationEnabled, setRevisionPrefetchingPolicy, setStaleReferenceBehaviour, setStaleReferencePolicy, setStrongReferencePolicy
 
Methods inherited from interface org.eclipse.emf.cdo.common.CDOCommonView.Options
isLockNotificationEnabled, setLockNotificationEnabled
 
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
 

Method Detail

getContainer

CDOTransaction getContainer()
Returns the transaction of this options object.

Specified by:
getContainer in interface CDOView.Options
Specified by:
getContainer in interface IOptions
Since:
4.0

getConflictResolvers

CDOConflictResolver[] getConflictResolvers()
Returns a copy of the conflict resolver list of this transaction.


setConflictResolvers

void setConflictResolvers(CDOConflictResolver[] resolvers)
Sets the conflict resolver list of this transaction.


addConflictResolver

void addConflictResolver(CDOConflictResolver resolver)
Adds a conflict resolver to the list of conflict resolvers of this transaction.


removeConflictResolver

void removeConflictResolver(CDOConflictResolver resolver)
Removes a conflict resolver from the list of conflict resolvers of this transaction.


isAutoReleaseLocksEnabled

boolean isAutoReleaseLocksEnabled()
Returns true if locks in this view will be removes when CDOUserTransaction.commit() or CDOUserTransaction.rollback() is called.

Default value is true.


setAutoReleaseLocksEnabled

void setAutoReleaseLocksEnabled(boolean on)
Specifies whether locks in this view will be removed when CDOUserTransaction.commit() or CDOUserTransaction.rollback() is called.

If false all locks are kept.

Default value is true.



Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.