Interface IdTransformer<ID,​E extends Entity>

    • Method Detail

      • toGraphId

        long toGraphId​(ID id)
        Transform a custom ID to internal Neo4j ID.
        Parameters:
        id - to transform. Can be null, which represents a new entity not yet persisted to the database.
        Returns:
        internal Neo4j ID. DetachedEntity.NEW should be returned in case the id parameter is null.
      • fromEntity

        ID fromEntity​(E entity)
        Transform an internal Neo4j node ID of a Entity to a custom ID.
        Parameters:
        entity - to take the ID to transform from. Must not be null.
        Returns:
        transformed custom ID. Never null.