Package org.eclipse.emf.cdo.util
Klasse CDOUtil
java.lang.Object
org.eclipse.emf.cdo.util.CDOUtil
Various static methods that may help in CDO client applications.
- Autor:
- Eike Stepper
-
Feldübersicht
Felder -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidcleanStaleReference(EObject eObject, EStructuralFeature eFeature) static voidcleanStaleReference(EObject eObject, EStructuralFeature eFeature, int index) static voidconfigureView(CDOView view) static CDOBranchcreateBranch(CDOBranchPoint base, String name) static CDOCollectionLoadingPolicycreateCollectionLoadingPolicy(int initialChunkSize, int resolveChunkSize) static CDOFeatureAnalyzerstatic CDORevisionPrefetchingPolicycreateRevisionPrefetchingPolicy(int chunkSize) static CDOFetchRuleManagerstatic CDOFeatureAnalyzerstatic CDOFeatureAnalyzercreateUIFeatureAnalyzer(long maxTimeBetweenOperation) static CDOXATransactioncreateXATransaction(Notifier... notifiers) filterReadables(Collection<T> collection) static StringgetAnnotation(ModelElement modelElement, String sourceURI, String key) static CDOObjectgetCDOObject(EObject object) static CDOObjectgetCDOObject(EObject object, boolean adaptLegacy) getCDOObjects(Collection<? extends EObject> objects) getCDOObjects(EObject... objects) static StringgetDocumentation(ModelElement modelElement) static EObjectgetEObject(EObject object) getIntrinsicIDToEObjectMap(CDOResource resource) Returns the map used to cache the EObject that is identified by thevalueof its ID feature.static CDOBranchPointRangegetLifetime(CDOObject object) getResources(ResourceSet resourceSet) static CDORevisiongetRevisionByVersion(CDOObject object, int version) static CDORevisiongetRevisionByVersion(CDOObject object, CDOBranch branch, int version) static CDORevisionDeltagetRevisionDelta(CDOObject object) static CDOSessiongetSession(Object object) static CDOViewstatic CDOViewgetView(ResourceSet resourceSet, URI uri) static CDOViewSetgetViewSet(Notifier notifier) static CDOXATransactiongetXATransaction(CDOViewSet viewSet) static booleanisCDOObject(EObject object) static booleanVeraltet.As of 4.0 use CDOView.isInvalidationRunnerActive()static booleanVeraltet.As of 4.2 the legacy mode is always enabled.static booleanisLegacyObject(EObject object) static booleanisReadable(EObject object) static booleanisSessionDirty(CDOSession session) static booleanisStaleObject(Object object) static booleanisWritable(EObject object) static booleanisWritableObject(EObject eObject) Queries whether an object is writable (is permitted to be modified in the current view context).static voidstatic InputStreamopenInputStream(CDOLob<?> lob, String encoding) static InputStreamstatic booleanprepareDynamicEPackage(EPackage startPackage) static booleanstatic AnnotationsetAnnotation(ModelElement modelElement, String sourceURI, String key, String value) static voidsetCredentialsProvider(URI uri, org.eclipse.net4j.util.security.IPasswordCredentialsProvider provider) static AnnotationsetDocumentation(ModelElement modelElement, String value) static voidsetIntrinsicIDToEObjectMap(CDOResource resource, Map<String, EObject> intrinsicIDToEObjectMap) Sets the map used to cache the EObject identified by the value of its ID feature.static voidsetLegacyModeDefault(boolean on) Veraltet.As of 4.2 the legacy mode is always enabled.static voidsetNextViewLock(Lock viewLock) Sets thelockto be used for the next view that is opened in the context of the current thread.static CDOObjectwrapExternalObject(EObject object, CDOView view)
-
Felddetails
-
PROP_VIEW_CONFIGURATOR
- Seit:
- 4.14
- Siehe auch:
-
PROP_VIEW_CONFIGURATOR_TYPE
- Seit:
- 4.14
- Siehe auch:
-
PROP_VIEW_CONFIGURATOR_DESCRIPTION
- Seit:
- 4.14
- Siehe auch:
-
CDO_ANNOTATION_URI
- Seit:
- 4.3
- Siehe auch:
-
DOCUMENTATION_KEY
- Seit:
- 4.3
- Siehe auch:
-
-
Methodendetails
-
registerResourceFactory
- Seit:
- 4.0
-
getIntrinsicIDToEObjectMap
Returns the map used to cache the EObject that is identified by thevalueof its ID feature.- Gibt zurück:
- the map used to cache the EObject that is identified by the value of its ID feature.
- Seit:
- 4.2
- Siehe auch:
-
setIntrinsicIDToEObjectMap
public static void setIntrinsicIDToEObjectMap(CDOResource resource, Map<String, EObject> intrinsicIDToEObjectMap) Sets the map used to cache the EObject identified by the value of its ID feature. This cache is only activated if the map is notnull. The map will be lazily loaded by thegetEObjectByIDmethod. It is up to the client to clear the cache when it becomes invalid, e.g., when the ID of a previously mapped EObject is changed.- Parameter:
intrinsicIDToEObjectMap- the new map ornull.- Seit:
- 4.2
- Siehe auch:
-
getSession
- Seit:
- 3.0
-
setNextViewLock
Sets thelockto be used for the next view that is opened in the context of the current thread.This method is useful, for example, if EMF
adapterscallDisplay.syncExec()in response to CDO notifications. In these cases aDelegableReentrantLockcan be injected into the newview, which does not deadlock when both CDO's invalidation thread and the display thread acquire the view lock.This method involves a
ThreadLocalvariable to avoid method explosion inCDOViewContainerandCDOTransactionContainer. After calling this method make sure to either open a newviewfrom the current thread or callsetNextViewLock(null)to clear theThreadLocalvariable.- Seit:
- 4.5
- Siehe auch:
-
configureView
- Seit:
- 4.4
-
prepareDynamicEPackage
- Seit:
- 2.0
-
createCollectionLoadingPolicy
public static CDOCollectionLoadingPolicy createCollectionLoadingPolicy(int initialChunkSize, int resolveChunkSize) - Seit:
- 2.0
-
createRevisionPrefetchingPolicy
- Seit:
- 2.0
-
createThreadLocalFetchRuleManager
- Seit:
- 4.1
-
createModelBasedFeatureAnalyzer
- Seit:
- 4.1
-
createUIFeatureAnalyzer
- Seit:
- 4.1
-
createUIFeatureAnalyzer
- Seit:
- 4.1
-
createXATransaction
- Seit:
- 4.0
-
getXATransaction
- Seit:
- 2.0
-
getViewSet
- Seit:
- 4.0
-
getView
- Seit:
- 4.4
-
getView
- Seit:
- 4.4
-
isStaleObject
- Seit:
- 3.0
-
cleanStaleReference
- Seit:
- 3.0
-
cleanStaleReference
- Seit:
- 3.0
-
load
- Seit:
- 2.0
-
wrapExternalObject
- Seit:
- 4.2
-
isReadable
- Seit:
- 4.23
-
isWritable
- Seit:
- 4.23
-
getEObject
- Seit:
- 2.0
-
getCDOObject
- Seit:
- 2.0
-
getCDOObject
- Seit:
- 4.4
-
getCDOObjects
- Seit:
- 4.6
-
getCDOObjects
- Seit:
- 4.6
-
isCDOObject
- Seit:
- 4.4
-
createBranch
- Seit:
- 4.6
-
filterReadables
- Seit:
- 4.3
-
getRevisionDelta
- Seit:
- 4.20
-
getLifetime
- Seit:
- 4.4
-
getRevisionByVersion
- Seit:
- 2.0
-
getRevisionByVersion
- Seit:
- 3.0
-
getResources
- Seit:
- 2.0
-
isSessionDirty
- Seit:
- 2.0
- Siehe auch:
-
isInvalidationRunnerActive
Veraltet.As of 4.0 use CDOView.isInvalidationRunnerActive()- Seit:
- 3.0
-
isWritableObject
Queries whether an object is writable (is permitted to be modified in the current view context).- Parameter:
eObject- an object- Gibt zurück:
falseif theeObjectis managed by CDO and does not have write permission;true, otherwise- Seit:
- 4.3
-
isLegacyObject
- Seit:
- 3.0
-
isLegacyModeDefault
Veraltet.As of 4.2 the legacy mode is always enabled.- Seit:
- 3.0
-
setLegacyModeDefault
Veraltet.As of 4.2 the legacy mode is always enabled.- Seit:
- 3.0
-
setCredentialsProvider
public static void setCredentialsProvider(URI uri, org.eclipse.net4j.util.security.IPasswordCredentialsProvider provider) - Seit:
- 4.0
-
getAnnotation
- Seit:
- 4.3
-
setAnnotation
public static Annotation setAnnotation(ModelElement modelElement, String sourceURI, String key, String value) - Seit:
- 4.3
-
getDocumentation
- Seit:
- 4.3
-
setDocumentation
- Seit:
- 4.3
-
openInputStream
- Löst aus:
IOException- Seit:
- 4.13
-
openInputStream
- Löst aus:
IOException- Seit:
- 4.13
-