Interface OrmQueryEngine

All Known Implementing Classes:
DefaultOrmQueryEngine

public interface OrmQueryEngine
The Object Relational query execution API.
  • Method Details

    • findResultSet

      <T> SpiResultSet findResultSet(OrmQueryRequest<T> request)
      Execute the ORM query returning the JDBC ResultSet (for DTO query processing).
    • findId

      <T> T findId(OrmQueryRequest<T> request)
      Execute the 'find by id' query returning a single bean.
    • findMany

      <T> BeanCollection<T> findMany(OrmQueryRequest<T> request)
      Execute the findList, findSet, findMap query returning an appropriate BeanCollection.
    • findSingleAttributeCollection

      <A extends Collection<?>> A findSingleAttributeCollection(OrmQueryRequest<?> request, A collection)
      Execute the findSingleAttributeCollection query.
    • findVersions

      <T> List<Version<T>> findVersions(OrmQueryRequest<T> request)
      Execute the findVersions query.
    • findIterate

      <T> QueryIterator<T> findIterate(OrmQueryRequest<T> request)
      Execute the query using a QueryIterator.
    • findCount

      <T> int findCount(OrmQueryRequest<T> request)
      Execute the row count query.
    • findIds

      <A> List<A> findIds(OrmQueryRequest<?> request)
      Execute the find id's query.
    • delete

      <T> int delete(OrmQueryRequest<T> request)
      Execute the query as a delete statement.
    • update

      <T> int update(OrmQueryRequest<T> request)
      Execute the query as a update statement.
    • translate

      <T> jakarta.persistence.PersistenceException translate(OrmQueryRequest<T> request, String bindLog, String sql, SQLException e)
      Translate the SQLException to a specific persistence exception type if possible.
    • isMultiValueSupported

      boolean isMultiValueSupported(Class<?> valueType)
      Return true if multi-value bind is supported for this type (and current platform).
    • forwardOnlyFetchSize

      int forwardOnlyFetchSize()