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(java.lang.Class<T>, java.lang.Object)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.enumDefines the values of thejakarta.persistence.lock.scopeproperty for pessimistic locking.classSpecifies a timeout for a database request.Methods in jakarta.persistence with parameters of type FindOptionModifier and TypeMethodDescription<T> TEntityManager.find(EntityGraph<T> entityGraph, Object primaryKey, FindOption... options) Find an instance of the root entity of the givenEntityGraphby primary key, using the specified options, and interpreting theEntityGraphas a load graph.<T> TEntityManager.find(Class<T> entityClass, Object primaryKey, FindOption... options) Find an instance of the given entity class by primary key, using the specified options.