Project

General

Profile

Revision 3af337bb

ID3af337bb89b22409c5a91c118a133753ea689d17
Parent d621df66
Child 76463827

Added by Andreas Müller about 1 year ago

ref #6794 finalize FeatureTreeMover (update treeindex)

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/update/v55_58/FeatureTreeMover.java
21 21
import eu.etaxonomy.cdm.database.update.ISchemaUpdaterStep;
22 22
import eu.etaxonomy.cdm.database.update.SchemaUpdateResult;
23 23
import eu.etaxonomy.cdm.database.update.SchemaUpdaterStepBase;
24
import eu.etaxonomy.cdm.database.update.TreeIndexUpdater;
24 25

  
25 26
/**
26 27
 * @author a.mueller
......
49 50
    }
50 51

  
51 52

  
53
    @Override
54
    public List<ISchemaUpdaterStep> getInnerSteps() {
55
        List<ISchemaUpdaterStep> result = new ArrayList<>();
56

  
57
        // update tree index for feature node
58
        //note: it could also be enough to only replace the first index entry by graph_id as only the graph_id changed
59
        String stepName = "Update TermTreeNode treeindex";
60
        String tableName = "TermRelation";
61
        String treeIdColumnName = "graph_id";
62
        ISchemaUpdaterStep step = TreeIndexUpdater.NewInstance(stepName, tableName,
63
                treeIdColumnName, "treeIndex", false);  // see comment for TaxonTree
64
        result.add(step);
65

  
66
        return result;
67
    }
68

  
52 69
    /**
53 70
     * {@inheritDoc}
54 71
     */
......
101 118
        updateDescriptiveSystem(featureTreeId, maxIdTermVoc, datasource, monitor, caseType, result);
102 119
        updateTermTreeNode(featureTreeId, maxIdTermVoc, datasource, monitor, caseType, result);
103 120

  
104
        xx  treeIndex update;
121
//        xx  treeIndex update;
122

  
105 123

  
106 124

  
107 125
        return maxIdTermVoc;

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)