diff --git a/core/src/main/java/uk/gov/gchq/magmacore/service/MagmaCoreService.java b/core/src/main/java/uk/gov/gchq/magmacore/service/MagmaCoreService.java index 77308fa6..46075179 100644 --- a/core/src/main/java/uk/gov/gchq/magmacore/service/MagmaCoreService.java +++ b/core/src/main/java/uk/gov/gchq/magmacore/service/MagmaCoreService.java @@ -54,6 +54,22 @@ /** * Service for interacting with a {@link MagmaCoreDatabase}. + * + *
+ * Note that Transaction control is manual unless using any of the following: + *
+ *+ * Nested transactions are not supported so ensure that no transaction is in progress before + * using any of the above methods. + *
*/ public class MagmaCoreService { @@ -675,6 +691,24 @@ public void create(final Thing thing) { database.create(thing); } + /** + * Delete an entity from the collection. + * + * @param object Entity to delete. + */ + void delete(final Thing object) { + database.delete(object); + } + + /** + * Apply a set of deletes to the database. + * + * @param deletes a {@link List} of {@link DbDeleteOperation} + */ + void delete(final List