Uses of Interface
jakarta.persistence.FindOption
Packages that use FindOption
Package
Description
Jakarta Persistence is the API for the management for persistence and object/relational mapping.
-
Uses of FindOption in jakarta.persistence
Classes in jakarta.persistence that implement FindOptionModifier and TypeClassDescriptionenumSpecifies how theEntityManagerinteracts with the second-level cache when data is read from the database via theEntityManager.find(Class, Object, Map)methods and execution of queries.enumSpecifies how theEntityManagerinteracts with the second-level cache when data is read from the database and when data is written to the database.enumEnumerates the kinds of optimistic or pessimistic lock which may be obtained on an entity instance.enumControls how a pessimistic lock applied to an entity affects associated collections and relationships.classSpecifies a timeout for a database request.Methods in jakarta.persistence with parameters of type FindOptionModifier and TypeMethodDescription<T> TEntityHandler.find(EntityGraph<T> graph, Object id, FindOption... options) Retrieve an instance of the root entity of the givenEntityGraphrepresenting the record with the given identifier, or returnnullif there is no such record in the database, using the specified options and interpreting theEntityGraphas a load graph.<T> TEntityHandler.find(Class<T> entityClass, Object id, FindOption... options) Retrieve an entity representing the record with the given identifier, or returnnullif there is no such record in the database, using the specified options.<T> List<T> EntityHandler.findMultiple(EntityGraph<T> graph, List<?> ids, FindOption... options) Retrieve entity instances representing the records with the given identifiers of the root entity of the givenEntityGraph, using the specified options and interpreting theEntityGraphas a load graph, returning entity instances in a list where the position of an instance in the list matches the position of its identifier in the given array, and the list contains a null value if there is no record matching a given identifier.<T> List<T> EntityHandler.findMultiple(Class<T> entityClass, List<?> ids, FindOption... options) Retrieve entity instances representing the records with the given identifiers, using the specified options, returning the instances in a list where the position of an instance in the list matches the position of its identifier in the given array, and the list contains a null value if there is no record matching a given identifier.<T> TEntityHandler.get(EntityGraph<T> graph, Object id, FindOption... options) Retrieve an entity representing the record with the given identifier, fetching associations specified by the given load graph, and using the specified options.<T> TEntityHandler.get(Class<T> entityClass, Object id, FindOption... options) Retrieve an entity representing the record with the given identifier, using the specified options.<T> List<T> EntityHandler.getMultiple(EntityGraph<T> graph, List<?> ids, FindOption... options) Retrieve entity instances representing the records with the given identifiers of the root entity of the given load graph, using the specified options, and returning the instances in a list where the position of an instance in the list matches the position of its identifier in the given array, and fetching associations specified by the load graph.<T> List<T> EntityHandler.getMultiple(Class<T> entityClass, List<?> ids, FindOption... options) Retrieve entity instances representing the records with the given identifiers, using the specified options, and returning the instances in a list where the position of an instance in the list matches the position of its identifier in the given array.