Package com.arcadedb.event
Interface BeforeRecordCreateListener
-
public interface BeforeRecordCreateListener
Listener to receive events before a new record (documents, vertices and edges) is created.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 creation operations.
- Author:
- Luca Garulli ([email protected])
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
onBeforeCreate(Record record)
Callback invoked right before a new record (documents, vertices and edges) has been saved.
-
-
-
Method Detail
-
onBeforeCreate
boolean onBeforeCreate(Record record)
Callback invoked right before a new record (documents, vertices and edges) has been saved.- Returns:
- true if the record must be saved, otherwise false to prevent the record to be created.
-
-