public final class BundleManager extends Object
| Constructor and Description |
|---|
BundleManager(com.tinkerpop.frames.FramedGraph<?> graph)
Constructor with system scope.
|
BundleManager(com.tinkerpop.frames.FramedGraph<?> graph,
Collection<String> scopeIds)
Constructor with a given scope.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Entity> |
create(Bundle bundle,
Class<T> cls)
Entry-point for creating a bundle.
|
<T extends Entity> |
createOrUpdate(Bundle bundle,
Class<T> cls)
Entry point for creating or updating a bundle, depending on whether it has a supplied id.
|
int |
delete(Bundle bundle)
Delete a bundle and dependent items, returning the total number of vertices deleted.
|
<T extends Entity> |
update(Bundle bundle,
Class<T> cls)
Entry-point for updating a bundle.
|
BundleManager |
withScopeIds(Collection<String> scopeIds) |
public BundleManager(com.tinkerpop.frames.FramedGraph<?> graph,
Collection<String> scopeIds)
graph - The graphscopeIds - The ID set for the current scope.public BundleManager(com.tinkerpop.frames.FramedGraph<?> graph)
graph - The graphpublic <T extends Entity> Mutation<T> update(Bundle bundle, Class<T> cls) throws ValidationError, ItemNotFound
bundle - The bundle to create or updatecls - The frame class of the return typeValidationErrorItemNotFoundpublic <T extends Entity> T create(Bundle bundle, Class<T> cls) throws ValidationError
bundle - The bundle to create or updatecls - The frame class of the return typeValidationErrorpublic <T extends Entity> Mutation<T> createOrUpdate(Bundle bundle, Class<T> cls) throws ValidationError
bundle - The bundle to create or updatecls - The frame class of the return typeValidationErrorpublic int delete(Bundle bundle)
bundle - The bundle to deletepublic BundleManager withScopeIds(Collection<String> scopeIds)
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.