public class JpaSpecificationExecutorFactory
Factory class to create new JpaSpecificationExecutor from EntityManager and the given Entity Class.
public static JpaSpecificationExecutorFactory INSTANCE
Factory class to create new JpaSpecificationExecutor from EntityManager and the given Entity Class.
public void init(@NotNull javax.persistence.EntityManager entityManager)
Initialize the Factory with the given EntityManager.
entityManager
- EntityManager sed to initialize the Factory.public boolean isInitialized()
Check if the Factory is initialized (Check if the inner EntityManager is not null and open).
public void reset()
Reset the Factory.
If this method is called, isInitialized
method will return false
.
The init
method must then be called to re-initialize the Factory.
isInitialized
,
init
@NotNull public <T> org.springframework.data.jpa.repository.JpaSpecificationExecutor<T> getJpaSpecificationExecutor(@NotNull java.lang.Class<T> entityClass)
Returns a new JpaSpecificationExecutor instance for the given Entity Class.
entityClass
- Entity Class used to initialize the JpaSpecificationExecutor