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 FindOption
    Modifier and Type
    Class
    Description
    enum 
    Specifies how the EntityManager interacts with the second-level cache when data is read from the database via the EntityManager.find(Class, Object, Map) methods and execution of queries.
    enum 
    Specifies how the EntityManager interacts with the second-level cache when data is read from the database and when data is written to the database.
    enum 
    Enumerates the kinds of optimistic or pessimistic lock which may be obtained on an entity instance.
    enum 
    Controls how a pessimistic lock applied to an entity affects associated collections and relationships.
    class 
    Specifies a timeout for a database request.
    Methods in jakarta.persistence with parameters of type FindOption
    Modifier and Type
    Method
    Description
    <T> T
    EntityHandler.find(EntityGraph<T> graph, Object id, FindOption... options)
    Retrieve an instance of the root entity of the given EntityGraph representing the record with the given identifier, or return null if there is no such record in the database, using the specified options and interpreting the EntityGraph as a load graph.
    <T> T
    EntityHandler.find(Class<T> entityClass, Object id, FindOption... options)
    Retrieve an entity representing the record with the given identifier, or return null if 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 given EntityGraph, using the specified options and interpreting the EntityGraph as 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> T
    EntityHandler.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> T
    EntityHandler.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.