Package com.arcadedb.event
Interface BeforeRecordDeleteListener
-
public interface BeforeRecordDeleteListener
Listener to receive events before a record (documents, vertices and edges) is deleted.NOTE: the callback is invoked synchronously. For this reason the execution should be as fast as possible. Even with a fast implementation, using this callback may cause a sensible slowdown of delete operations.
- Author:
- Luca Garulli ([email protected])
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
onBeforeDelete(Record record)
Callback invoked right before a record (documents, vertices and edges) is deleted.
-
-
-
Method Detail
-
onBeforeDelete
boolean onBeforeDelete(Record record)
Callback invoked right before a record (documents, vertices and edges) is deleted.- Returns:
- true if the record must be deleted, otherwise false to prevent the record deletion.
-
-