- All Known Implementing Classes:
DefaultOrmQueryEngine
public interface OrmQueryEngine
The Object Relational query execution API.
-
Method Summary
Modifier and TypeMethodDescription<T> intdelete(OrmQueryRequest<T> request) Execute the query as a delete statement.<T> intfindCount(OrmQueryRequest<T> request) Execute the row count query.<T> TfindId(OrmQueryRequest<T> request) Execute the 'find by id' query returning a single bean.<A> List<A> findIds(OrmQueryRequest<?> request) Execute the find id's query.<T> QueryIterator<T> findIterate(OrmQueryRequest<T> request) Execute the query using a QueryIterator.<T> BeanCollection<T> findMany(OrmQueryRequest<T> request) Execute the findList, findSet, findMap query returning an appropriate BeanCollection.<T> SpiResultSetfindResultSet(OrmQueryRequest<T> request) Execute the ORM query returning the JDBC ResultSet (for DTO query processing).<A extends Collection<?>>
AfindSingleAttributeCollection(OrmQueryRequest<?> request, A collection) Execute the findSingleAttributeCollection query.findVersions(OrmQueryRequest<T> request) Execute the findVersions query.intbooleanisMultiValueSupported(Class<?> valueType) Return true if multi-value bind is supported for this type (and current platform).<T> jakarta.persistence.PersistenceExceptiontranslate(OrmQueryRequest<T> request, String bindLog, String sql, SQLException e) Translate the SQLException to a specific persistence exception type if possible.<T> intupdate(OrmQueryRequest<T> request) Execute the query as a update statement.
-
Method Details
-
findResultSet
Execute the ORM query returning the JDBC ResultSet (for DTO query processing). -
findId
Execute the 'find by id' query returning a single bean. -
findMany
Execute the findList, findSet, findMap query returning an appropriate BeanCollection. -
findSingleAttributeCollection
Execute the findSingleAttributeCollection query. -
findVersions
Execute the findVersions query. -
findIterate
Execute the query using a QueryIterator. -
findCount
Execute the row count query. -
findIds
Execute the find id's query. -
delete
Execute the query as a delete statement. -
update
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
Return true if multi-value bind is supported for this type (and current platform). -
forwardOnlyFetchSize
int forwardOnlyFetchSize()
-