Interface CDOSession.Options

    • Method Detail

      • isGeneratedPackageEmulationEnabled

        boolean isGeneratedPackageEmulationEnabled()
      • setGeneratedPackageEmulationEnabled

        void setGeneratedPackageEmulationEnabled​(boolean generatedPackageEmulationEnabled)
      • getCollectionLoadingPolicy

        CDOCollectionLoadingPolicy getCollectionLoadingPolicy()
        The 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:

        1. How many CDOIDs to fill when an object is loaded for the first time;
        2. 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.

      • isDelegableViewLockEnabled

        boolean isDelegableViewLockEnabled()
      • setDelegableViewLockEnabled

        void setDelegableViewLockEnabled​(boolean delegableViewLockEnabled)
        This method is useful, for example, if EMF 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.
        See Also: