public class ExportEngine
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ExportEngine.Directives |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DIRECTIVE_ADD_IF_ABSENT |
static java.lang.String |
DIRECTIVE_ADD_OR_REPLACE |
static java.lang.String |
DIRECTIVE_CUT_BRANCH |
| Constructor and Description |
|---|
ExportEngine(EntityStore store) |
| Modifier and Type | Method and Description |
|---|---|
void |
exportContents(java.io.OutputStream out,
java.util.Collection<ESPK> rootPKs,
int flags) |
void |
exportContents(java.io.OutputStream out,
java.util.Collection<ESPK> rootPKs,
int flags,
java.util.Set<ESPK> additions,
java.util.Set<ESPK> overrides,
java.util.Set<PortableESPK> removalBranches)
Export the contents of the entity store.
|
void |
exportEntitiesWithImportDirectives(java.io.OutputStream out,
java.util.Set<ESPK> startNodes,
ExportEngine.Directives d) |
protected Entity |
retrieveEntity(ESPK pk)
Override this method if your instance of the engine has a more efficient
way of retrieving the Entity.
|
public static final java.lang.String DIRECTIVE_ADD_IF_ABSENT
public static final java.lang.String DIRECTIVE_ADD_OR_REPLACE
public static final java.lang.String DIRECTIVE_CUT_BRANCH
public ExportEngine(EntityStore store)
public void exportEntitiesWithImportDirectives(java.io.OutputStream out,
java.util.Set<ESPK> startNodes,
ExportEngine.Directives d)
throws EntityStoreException
EntityStoreExceptionpublic void exportContents(java.io.OutputStream out,
java.util.Collection<ESPK> rootPKs,
int flags)
throws EntityStoreException
EntityStoreExceptionpublic void exportContents(java.io.OutputStream out,
java.util.Collection<ESPK> rootPKs,
int flags,
java.util.Set<ESPK> additions,
java.util.Set<ESPK> overrides,
java.util.Set<PortableESPK> removalBranches)
throws EntityStoreException
out - The OutputStream to export to.rootPKs - The targeted nodes to export, or null if root.flags - Export flags affecting what gets exported and how. See EntityStore for values.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.EntityStoreExceptionprotected Entity retrieveEntity(ESPK pk) throws EntityStoreException
pk - The Entity's ESPKEntityStoreException
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel