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 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.