public static interface CDOSession.Options extends CDOCommonSession.Options
session configuration options.
The session options can fire the following events:
CDOSession.Options.GeneratedPackageEmulationEvent after the generated
package emulation mode has changed.
CDOSession.Options.CollectionLoadingPolicyEvent after the collection loading policy has changed.
CDOSession.Options.LobCacheEvent after the large object cache has changed.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
CDOSession.Options.CollectionLoadingPolicyEvent
|
static interface |
CDOSession.Options.DelegableViewLockEvent
|
static interface |
CDOSession.Options.GeneratedPackageEmulationEvent
An
options event fired when the
generated package emulation enabled option of a
session has changed. |
static interface |
CDOSession.Options.LobCacheEvent
|
static interface |
CDOSession.Options.PermissionUpdaterEvent
|
CDOCommonSession.Options.LockNotificationMode, CDOCommonSession.Options.LockNotificationModeEvent, CDOCommonSession.Options.PassiveUpdateEvent, CDOCommonSession.Options.PassiveUpdateMode| Modifier and Type | Method and Description |
|---|---|
CDOCollectionLoadingPolicy |
getCollectionLoadingPolicy()
The
collection loading policy of this session controls how
a list gets populated. |
CDOSession |
getContainer()
Returns the
session of this options object. |
CDOLobStore |
getLobCache()
Returns the
large object cache currently being used by this session. |
CDOPermissionUpdater |
getPermissionUpdater()
Returns the
permission updater currently being used by this session. |
boolean |
isDelegableViewLockEnabled() |
boolean |
isGeneratedPackageEmulationEnabled() |
void |
setCollectionLoadingPolicy(CDOCollectionLoadingPolicy policy)
Sets the
collection loading to be used by this session. |
void |
setDelegableViewLockEnabled(boolean delegableViewLockEnabled)
This method is useful, for example, if EMF
adapters call Display.syncExec() in response to CDO notifications. |
void |
setGeneratedPackageEmulationEnabled(boolean generatedPackageEmulationEnabled) |
void |
setLobCache(CDOLobStore lobCache)
Sets the
large object cache to be used by this session. |
void |
setPermissionUpdater(CDOPermissionUpdater permissionUpdater)
Sets the
permission updater to be used by this session. |
getLockNotificationMode, getPassiveUpdateMode, isPassiveUpdateEnabled, setLockNotificationMode, setPassiveUpdateEnabled, setPassiveUpdateModeaddListener, getListeners, hasListeners, removeListenerCDOSession getContainer()
session of this options object.getContainer in interface CDOCommonSession.OptionsgetContainer in interface IOptionsboolean isGeneratedPackageEmulationEnabled()
void setGeneratedPackageEmulationEnabled(boolean generatedPackageEmulationEnabled)
CDOCollectionLoadingPolicy getCollectionLoadingPolicy()
collection loading policy of this session 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:
CDOUtil.createCollectionLoadingPolicy(initialElements, subsequentElements);
The user can also provide its own implementation of the CDOCollectionLoadingPolicy interface.
void setCollectionLoadingPolicy(CDOCollectionLoadingPolicy policy)
collection loading to be used by this session.CDOLobStore getLobCache()
large object cache currently being used by this session.void setLobCache(CDOLobStore lobCache)
large object cache to be used by this session.CDOPermissionUpdater getPermissionUpdater()
permission updater currently being used by this session.void setPermissionUpdater(CDOPermissionUpdater permissionUpdater)
permission updater to be used by this session.boolean isDelegableViewLockEnabled()
void setDelegableViewLockEnabled(boolean delegableViewLockEnabled)
adapters call Display.syncExec() in response to CDO notifications.
In these cases a DelegableReentrantLock can be injected into the new view,
which does not deadlock when both CDO's invalidation thread and the display thread acquire the view lock.CDOUtil.setNextViewLock(Lock)Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html