Introduce methods to get a specific option on the following interfaces:
jakarta.persistence.TypedQuery
jakarta.persistence.Statement
jakarta.persistence.StoredProcedureQuery
and
jakarta.persistence.EntityManager
jakarta.persistence.EntityAgent
Currently, these interfaces provide the user with a way to get all options at once: Set<Option> getOptions(); Let's add:
<T extends Option> T getOption(Class<T> optionType);
where the user can ask for a specific option rather than all at once.
Introduce methods to get a specific option on the following interfaces:
jakarta.persistence.TypedQueryjakarta.persistence.Statementjakarta.persistence.StoredProcedureQueryand
jakarta.persistence.EntityManagerjakarta.persistence.EntityAgentCurrently, these interfaces provide the user with a way to get all options at once:
Set<Option> getOptions();Let's add:where the user can ask for a specific option rather than all at once.