java.lang.Object
io.ebeaninternal.server.query.DefaultOrmQueryEngine
- All Implemented Interfaces:
OrmQueryEngine
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultOrmQueryEngine(CQueryEngine queryEngine, Binder binder) Create the Finder. -
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) Find a single bean using its unique id.<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<?> cls) 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.
-
Constructor Details
-
DefaultOrmQueryEngine
Create the Finder.
-
-
Method Details
-
translate
public <T> jakarta.persistence.PersistenceException translate(OrmQueryRequest<T> request, String bindLog, String sql, SQLException e) Description copied from interface:OrmQueryEngineTranslate the SQLException to a specific persistence exception type if possible.- Specified by:
translatein interfaceOrmQueryEngine
-
forwardOnlyFetchSize
public int forwardOnlyFetchSize()- Specified by:
forwardOnlyFetchSizein interfaceOrmQueryEngine
-
isMultiValueSupported
Description copied from interface:OrmQueryEngineReturn true if multi-value bind is supported for this type (and current platform).- Specified by:
isMultiValueSupportedin interfaceOrmQueryEngine
-
delete
Description copied from interface:OrmQueryEngineExecute the query as a delete statement.- Specified by:
deletein interfaceOrmQueryEngine
-
update
Description copied from interface:OrmQueryEngineExecute the query as a update statement.- Specified by:
updatein interfaceOrmQueryEngine
-
findResultSet
Description copied from interface:OrmQueryEngineExecute the ORM query returning the JDBC ResultSet (for DTO query processing).- Specified by:
findResultSetin interfaceOrmQueryEngine
-
findCount
Description copied from interface:OrmQueryEngineExecute the row count query.- Specified by:
findCountin interfaceOrmQueryEngine
-
findIds
Description copied from interface:OrmQueryEngineExecute the find id's query.- Specified by:
findIdsin interfaceOrmQueryEngine
-
findSingleAttributeCollection
public <A extends Collection<?>> A findSingleAttributeCollection(OrmQueryRequest<?> request, A collection) Description copied from interface:OrmQueryEngineExecute the findSingleAttributeCollection query.- Specified by:
findSingleAttributeCollectionin interfaceOrmQueryEngine
-
findIterate
Description copied from interface:OrmQueryEngineExecute the query using a QueryIterator.- Specified by:
findIteratein interfaceOrmQueryEngine
-
findVersions
Description copied from interface:OrmQueryEngineExecute the findVersions query.- Specified by:
findVersionsin interfaceOrmQueryEngine
-
findMany
Description copied from interface:OrmQueryEngineExecute the findList, findSet, findMap query returning an appropriate BeanCollection.- Specified by:
findManyin interfaceOrmQueryEngine
-
findId
Find a single bean using its unique id.- Specified by:
findIdin interfaceOrmQueryEngine
-