|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Encapsulates a set of notifying transaction
configuration options.
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.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.common.CDOCommonView.Options |
---|
isLockNotificationEnabled, setLockNotificationEnabled |
Methods inherited from interface org.eclipse.net4j.util.event.INotifier |
---|
addListener, getListeners, hasListeners, removeListener |
Method Detail |
---|
CDOTransaction getContainer()
transaction
of this options object.
getContainer
in interface CDOView.Options
getContainer
in interface IOptions
CDOConflictResolver[] getConflictResolvers()
void setConflictResolvers(CDOConflictResolver[] resolvers)
void addConflictResolver(CDOConflictResolver resolver)
void removeConflictResolver(CDOConflictResolver resolver)
boolean isAutoReleaseLocksEnabled()
CDOUserTransaction.commit()
or
CDOUserTransaction.rollback()
is called.
Default value is true.
void setAutoReleaseLocksEnabled(boolean on)
CDOUserTransaction.commit()
or
CDOUserTransaction.rollback()
is called.
If false all locks are kept.
Default value is true.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |