Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368532

Summary: Provide API to set CDOFetchRuleManager and CDOFetchAnalyzer
Product: [Modeling] EMF Reporter: Ronald Krijgsheld <rkrijgsheld>
Component: cdo.coreAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: enhancement    
Priority: P3 CC: stepper
Version: 4.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: Power to the People

Description Ronald Krijgsheld CLA 2012-01-13 06:00:28 EST
Build Identifier: 

((InternalCDOSession)s).setFetchRuleManager(new CDOFetchRuleManagerThreadLocal());

The cast to InternalCDOSession is at the moment necessary to be able to the the FRM. 

for setting the fetch analyzer we need to cast the transaction to InternalCDOTransaction.

These methods should be in the API.

Reproducible: Always
Comment 1 Eike Stepper CLA 2012-01-13 07:57:26 EST
    CDONet4jSessionConfiguration config = CDONet4jUtil.createNet4jSessionConfiguration();
    config.setConnector(connector);
    config.setRepositoryName("myrepo");
    config.setFetchRuleManager(CDOUtil.createThreadLocalFetchRuleManager());
    
    CDONet4jSession session = config.openNet4jSession();
    
    CDOTransaction transaction = session.openTransaction();
    transaction.options().setFeatureAnalyzer(CDOUtil.createModelBasedFeatureAnalyzer());
Comment 2 Eike Stepper CLA 2012-01-13 08:06:42 EST
commit 5ffb65135123ae3b507f23fd1f7fcb0f5d46ee84
Comment 3 Eike Stepper CLA 2012-09-21 07:18:46 EDT
Closing.