Package io.quarkus.spring.data.runtime
Class RepositorySupport
java.lang.Object
io.quarkus.spring.data.runtime.RepositorySupport
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voiddeleteAll(io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations<PanacheQuery<?>> operations, Iterable<?> entities) static List<?>findByIds(io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations<PanacheQuery<?>> operations, Class<?> entityClass, Iterable<?> ids) static List<?>findByIds(io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations<PanacheQuery<?>> operations, Class<?> entityClass, String idField, Iterable<Long> ids) static voidstatic ObjectgetById(io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations<PanacheQuery<?>> operations, Class<?> entityClass, Object id) Deprecated.use {@link RepositorySupport#getReferenceById)} instead.static ObjectgetOne(io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations<PanacheQuery<?>> operations, Class<?> entityClass, Object id) Deprecated.use {@link RepositorySupport#getReferenceById)} instead.static ObjectgetReferenceById(io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations<PanacheQuery<?>> operations, Class<?> entityClass, Object id)
-
Method Details
-
findByIds
public static List<?> findByIds(io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations<PanacheQuery<?>> operations, Class<?> entityClass, Iterable<?> ids) -
findByIds
-
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 ofAbstractJpaOperationsused to perform JPA operationsentityClass- theClassobject of the entity type to be retrievedid- 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 ofAbstractJpaOperationsused to perform JPA operationsentityClass- theClassobject of the entity type to be retrievedid- 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
-
flush
-