Class RepositorySupport

java.lang.Object
io.quarkus.spring.data.runtime.RepositorySupport

public final class RepositorySupport extends Object
  • Method Details

    • findByIds

      public static List<?> findByIds(io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations<PanacheQuery<?>> operations, Class<?> entityClass, Iterable<?> ids)
    • findByIds

      public static List<?> findByIds(io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations<PanacheQuery<?>> operations, Class<?> entityClass, String idField, Iterable<Long> ids)
    • deleteAll

      public static void deleteAll(io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations<PanacheQuery<?>> operations, Iterable<?> entities)
    • getOne

      @Deprecated public static Object getOne(io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations<PanacheQuery<?>> operations, Class<?> entityClass, Object id)
      Deprecated.
      use {@link RepositorySupport#getReferenceById)} instead.
      Add call to the Panache method implementing the actual retrieving of a reference to an entity with the given class and identifier.
      Parameters:
      operations - an instance of AbstractJpaOperations used to perform JPA operations
      entityClass - the Class object of the entity type to be retrieved
      id - the identifier of the entity to be retrieved
      Returns:
      a reference to the entity of the specified class with the given identifier
    • getById

      @Deprecated public static Object getById(io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations<PanacheQuery<?>> operations, Class<?> entityClass, Object id)
      Deprecated.
      use {@link RepositorySupport#getReferenceById)} instead.
      Add call to the Panache method implementing the actual retrieving of a reference to an entity with the given class and identifier.
      Parameters:
      operations - an instance of AbstractJpaOperations used to perform JPA operations
      entityClass - the Class object of the entity type to be retrieved
      id - the identifier of the entity to be retrieved
      Returns:
      a reference to the entity of the specified class with the given identifier
    • getReferenceById

      public static Object getReferenceById(io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations<PanacheQuery<?>> operations, Class<?> entityClass, Object id)
    • clear

      public static void clear(Class<?> clazz)
    • flush

      public static void flush(Class<?> clazz)