Interface TinkerPopRepository<T,ID>

Type Parameters:
T - the entity type
ID - the ID type
All Superinterfaces:
jakarta.data.repository.BasicRepository<T,ID>, jakarta.data.repository.CrudRepository<T,ID>, jakarta.data.repository.DataRepository<T,ID>, org.eclipse.jnosql.mapping.NoSQLRepository<T,ID>

public interface TinkerPopRepository<T,ID> extends org.eclipse.jnosql.mapping.NoSQLRepository<T,ID>
A repository interface for executing Gremlin queries using Apache TinkerPop (Gremlin).

This interface is meant to be extended by user-defined repositories that want to execute Gremlin traversals against a graph database such as JanusGraph, Neptune, or TinkerGraph.

Example usage:


 public interface BookRepository extends TinkerPopRepository<Book, String> {

     @Gremlin("g.V().hasLabel('Book').has('title', @title)")
     List<Book> findByTitle(@Param("title") String title);
 }
 
  • Method Summary

    Methods inherited from interface jakarta.data.repository.BasicRepository

    delete, deleteAll, deleteById, findAll, findAll, findById, save, saveAll

    Methods inherited from interface jakarta.data.repository.CrudRepository

    insert, insertAll, update, updateAll

    Methods inherited from interface org.eclipse.jnosql.mapping.NoSQLRepository

    countBy, deleteAll, deleteByIdIn, existsById, findByIdIn