Package org.eclipse.emf.cdo.session
Schnittstelle CDOSession.Options
- Alle Superschnittstellen:
CDOCommonSession.Options
,org.eclipse.net4j.util.event.INotifier
,org.eclipse.net4j.util.options.IOptions
- Alle bekannten Unterschnittstellen:
CDONet4jSession.Options
,CDOSession.Options
- Umschließende Schnittstelle:
CDOSession
Encapsulates a set of notifying
session
configuration options.
The session options can fire the following events:
-
CDOSession.Options.GeneratedPackageEmulationEvent
after thegenerated package emulation mode
has changed. -
CDOSession.Options.CollectionLoadingPolicyEvent
after thecollection loading policy
has changed. -
CDOSession.Options.LobCacheEvent
after thelarge object cache
has changed.
- Autor:
- Simon McDuff
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic interface
static interface
static interface
Anoptions event
fired when thegenerated package emulation enabled
option of asession
has changed.static interface
static interface
static interface
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.emf.cdo.common.CDOCommonSession.Options
CDOCommonSession.Options.LockNotificationEvent, CDOCommonSession.Options.LockNotificationMode, CDOCommonSession.Options.LockNotificationModeEvent, CDOCommonSession.Options.PassiveUpdateEvent, CDOCommonSession.Options.PassiveUpdateMode
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungThecollection loading policy
of thissession
controls how a list gets populated.Returns thesession
of this options object.Returns thelarge object cache
currently being used by this session.Returns thepermission updater
currently being used by this session.int
boolean
boolean
void
Sets thecollection loading
to be used by this session.void
setDelegableViewLockEnabled
(boolean delegableViewLockEnabled) This method is useful, for example, if EMFadapters
callDisplay.syncExec()
in response to CDO notifications.void
setGeneratedPackageEmulationEnabled
(boolean generatedPackageEmulationEnabled) void
setLobCache
(CDOLobStore lobCache) Sets thelarge object cache
to be used by this session.void
setPermissionUpdater
(CDOPermissionUpdater permissionUpdater) Sets thepermission updater
to be used by this session.void
setPrefetchSendMaxRevisionKeys
(int prefetchSendMaxRevisionKeys) Von Schnittstelle geerbte Methoden org.eclipse.emf.cdo.common.CDOCommonSession.Options
getLockNotificationMode, getPassiveUpdateMode, isLockNotificationEnabled, isPassiveUpdateEnabled, setLockNotificationEnabled, setLockNotificationMode, setPassiveUpdateEnabled, setPassiveUpdateMode
Von Schnittstelle geerbte Methoden org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Methodendetails
-
getContainer
CDOSession getContainer()Returns thesession
of this options object.- Angegeben von:
getContainer
in SchnittstelleCDOCommonSession.Options
- Angegeben von:
getContainer
in Schnittstelleorg.eclipse.net4j.util.options.IOptions
- Seit:
- 4.0
-
isGeneratedPackageEmulationEnabled
boolean isGeneratedPackageEmulationEnabled() -
setGeneratedPackageEmulationEnabled
void setGeneratedPackageEmulationEnabled(boolean generatedPackageEmulationEnabled) -
getCollectionLoadingPolicy
CDOCollectionLoadingPolicy getCollectionLoadingPolicy()Thecollection loading policy
of thissession
controls how a list gets populated. By default, when an object is fetched, all its elements are filled with the proper values.This could be time-consuming, especially if the reference list does not need to be accessed. In CDO it is possible to partially load collections. The default list implementation that is shipped with CDO makes a distinction between the two following situations:
- How many CDOIDs to fill when an object is loaded for the first time;
- Which elements to fill with CDOIDs when the accessed element is not yet filled.
CDOUtil.createCollectionLoadingPolicy(initialElements, subsequentElements);
The user can also provide its own implementation of the CDOCollectionLoadingPolicy interface.
-
setCollectionLoadingPolicy
Sets thecollection loading
to be used by this session. -
getLobCache
CDOLobStore getLobCache()Returns thelarge object cache
currently being used by this session.- Seit:
- 4.0
-
setLobCache
Sets thelarge object cache
to be used by this session.- Seit:
- 4.0
-
getPermissionUpdater
CDOPermissionUpdater getPermissionUpdater()Returns thepermission updater
currently being used by this session.- Seit:
- 4.3
-
setPermissionUpdater
Sets thepermission updater
to be used by this session.- Seit:
- 4.3
-
isDelegableViewLockEnabled
boolean isDelegableViewLockEnabled()- Seit:
- 4.5
-
setDelegableViewLockEnabled
void setDelegableViewLockEnabled(boolean delegableViewLockEnabled) This method is useful, for example, if EMFadapters
callDisplay.syncExec()
in response to CDO notifications. In these cases aDelegableReentrantLock
can be injected into the newview
, which does not deadlock when both CDO's invalidation thread and the display thread acquire the view lock.- Seit:
- 4.5
- Siehe auch:
-
getPrefetchSendMaxRevisionKeys
int getPrefetchSendMaxRevisionKeys()- Seit:
- 4.26
-
setPrefetchSendMaxRevisionKeys
void setPrefetchSendMaxRevisionKeys(int prefetchSendMaxRevisionKeys) - Seit:
- 4.26
-