|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.cdo.util.CDOUtil
Various static methods that may help in CDO client applications.
Method Summary | |
---|---|
static void |
cleanStaleReference(EObject eObject,
EStructuralFeature eFeature)
|
static void |
cleanStaleReference(EObject eObject,
EStructuralFeature eFeature,
int index)
|
static CDOCollectionLoadingPolicy |
createCollectionLoadingPolicy(int initialChunkSize,
int resolveChunkSize)
|
static CDOFeatureAnalyzer |
createModelBasedFeatureAnalyzer()
|
static CDORevisionPrefetchingPolicy |
createRevisionPrefetchingPolicy(int chunkSize)
|
static CDOFetchRuleManager |
createThreadLocalFetchRuleManager()
|
static CDOFeatureAnalyzer |
createUIFeatureAnalyzer()
|
static CDOFeatureAnalyzer |
createUIFeatureAnalyzer(long maxTimeBetweenOperation)
|
static CDOXATransaction |
createXATransaction(Notifier... notifiers)
|
static CDOObject |
getCDOObject(EObject object)
|
static EObject |
getEObject(EObject object)
|
Map<String,EObject> |
getIntrinsicIDToEObjectMap(CDOResource resource)
Returns the map used to cache the EObject that is identified by the value
of its ID feature. |
static EList<Resource> |
getResources(ResourceSet resourceSet)
|
static CDORevision |
getRevisionByVersion(CDOObject object,
CDOBranch branch,
int version)
|
static CDORevision |
getRevisionByVersion(CDOObject object,
int version)
|
static CDOSession |
getSession(Object object)
|
static CDOViewSet |
getViewSet(Notifier notifier)
|
static CDOXATransaction |
getXATransaction(CDOViewSet viewSet)
|
static boolean |
isInvalidationRunnerActive()
Deprecated. As of 4.0 use CDOView.isInvalidationRunnerActive() |
static boolean |
isLegacyModeDefault()
Deprecated. As of 4.2 the legacy mode is always enabled. |
static boolean |
isLegacyObject(EObject object)
|
static boolean |
isSessionDirty(CDOSession session)
Returns true if the given session contains a dirty transaction , false otherwise. |
static boolean |
isStaleObject(Object object)
|
static void |
load(EObject eObject,
CDOView view)
|
static boolean |
prepareDynamicEPackage(EPackage startPackage)
|
static boolean |
registerResourceFactory(Resource.Factory.Registry registry)
|
static void |
setCredentialsProvider(URI uri,
IPasswordCredentialsProvider provider)
|
void |
setIntrinsicIDToEObjectMap(CDOResource resource,
Map<String,EObject> intrinsicIDToEObjectMap)
Sets the map used to cache the EObject identified by the value of its ID feature. |
static void |
setLegacyModeDefault(boolean on)
Deprecated. As of 4.2 the legacy mode is always enabled. |
static CDOObject |
wrapExternalObject(EObject object,
CDOView view)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean registerResourceFactory(Resource.Factory.Registry registry)
public Map<String,EObject> getIntrinsicIDToEObjectMap(CDOResource resource)
value
of its ID feature.
setIntrinsicIDToEObjectMap(org.eclipse.emf.cdo.eresource.CDOResource, java.util.Map)
public void setIntrinsicIDToEObjectMap(CDOResource resource, Map<String,EObject> intrinsicIDToEObjectMap)
null
.
The map will be lazily loaded by the getEObjectByID
method.
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.
intrinsicIDToEObjectMap
- the new map or null
.getIntrinsicIDToEObjectMap(org.eclipse.emf.cdo.eresource.CDOResource)
public static CDOSession getSession(Object object)
public static boolean prepareDynamicEPackage(EPackage startPackage)
public static CDOCollectionLoadingPolicy createCollectionLoadingPolicy(int initialChunkSize, int resolveChunkSize)
public static CDORevisionPrefetchingPolicy createRevisionPrefetchingPolicy(int chunkSize)
public static CDOFetchRuleManager createThreadLocalFetchRuleManager()
public static CDOFeatureAnalyzer createModelBasedFeatureAnalyzer()
public static CDOFeatureAnalyzer createUIFeatureAnalyzer()
public static CDOFeatureAnalyzer createUIFeatureAnalyzer(long maxTimeBetweenOperation)
public static CDOXATransaction createXATransaction(Notifier... notifiers)
public static CDOXATransaction getXATransaction(CDOViewSet viewSet)
public static CDOViewSet getViewSet(Notifier notifier)
public static boolean isStaleObject(Object object)
public static void cleanStaleReference(EObject eObject, EStructuralFeature eFeature)
public static void cleanStaleReference(EObject eObject, EStructuralFeature eFeature, int index)
public static void load(EObject eObject, CDOView view)
public static CDOObject wrapExternalObject(EObject object, CDOView view)
public static EObject getEObject(EObject object)
public static CDOObject getCDOObject(EObject object)
public static CDORevision getRevisionByVersion(CDOObject object, int version)
public static CDORevision getRevisionByVersion(CDOObject object, CDOBranch branch, int version)
public static EList<Resource> getResources(ResourceSet resourceSet)
public static boolean isSessionDirty(CDOSession session)
true
if the given session
contains a dirty transaction
, false
otherwise.
CDOTransaction
@Deprecated public static boolean isInvalidationRunnerActive()
public static boolean isLegacyObject(EObject object)
@Deprecated public static boolean isLegacyModeDefault()
@Deprecated public static void setLegacyModeDefault(boolean on)
public static void setCredentialsProvider(URI uri, IPasswordCredentialsProvider provider)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |