exportEntitiesWithImportDirectives
public void exportEntitiesWithImportDirectives(java.io.OutputStream out,
java.util.Set<ESPK> startNodes,
ExportEngine.Directives d)
throws EntityStoreException
Export the contents of the entity store. The export file with have
specific instructions to the importing store to say which Entities should
be added if they don't exist in the target store, overridden by those in
the import set should they exist, and which Entities should be
removed from the target store should they exist there. The additions/
overrides/removalBranches will usually be specified as the result of
an analysis of this store w.r.t. another specific store following
an analysis with DiffNodes.
- Parameters:
out
- startNodes
- flags
- additions
- Explicitly define the subset of Entities which must
be added on import if they don't already exist.
This set cannot contain the root PK.overrides
- A set of keys indicating the Entities in this store
which will be flagged in the export file for overridding. If an
equivalent Entity exists in the target entity store on import, the
definition in the import file will replace the one in the target store.
This set cannot contain the root PK.removalBranches
- A set of store-neutral keys which will indicate
Entities to be cut from the target import store if they exist. The Entity
and all its children will be cut from the target store tree, nullifying
any references to deleted entities from any remaining Entities in the
store.
This set cannot contain the root PK.
- Throws:
EntityStoreException