Interface HibernateContentQueryFactory
- All Known Implementing Classes:
FindAllByContentIdHibernateQueryFactory
,FindAllByContentIdsAndKeysHibernateQueryFactory
,FindAllBySpaceKeyHibernateQueryFactory
,FindByContentIdAndKeyHibernateQueryFactory
,FindBySpaceKeyAndKeyHibernateQueryFactory
,FindPluginCustomContentModuleKeyQueryFactory
public interface HibernateContentQueryFactory
Interface that needs to be implemented by a HibernateContentQuery plugin module.
-
Method Summary
Modifier and TypeMethodDescriptiondefault jakarta.persistence.Query
getQuery
(JpaQueryFactory queryFactory, Object... parameters) A jakarta.persistence equivalent ofgetQuery(EntityManager, Object...)
for future support of that API.default jakarta.persistence.Query
A jakarta.persistence equivalent ofgetQuery(EntityManager, Object...)
for future support of that API.javax.persistence.Query
Get the JPA implementation of the query this factory wishes to generate.
-
Method Details
-
getQuery
javax.persistence.Query getQuery(javax.persistence.EntityManager entityManager, Object... parameters) throws javax.persistence.PersistenceException Get the JPA implementation of the query this factory wishes to generate. Any parameters for the query should be set, as should whether the query is cacheable or not. Limits (offset/max results) will be set by the DAO.- Parameters:
entityManager
- the JPA entityManager in which to create the queryparameters
- the parameters to be set on the query- Returns:
- the JPA implementation of the query
- Throws:
javax.persistence.PersistenceException
- Since:
- 6.1.0
-
getQuery
default jakarta.persistence.Query getQuery(jakarta.persistence.EntityManager entityManager, Object... parameters) A jakarta.persistence equivalent ofgetQuery(EntityManager, Object...)
for future support of that API. Currently unused, but provided as a compatibility hook.- Since:
- 9.3
-
getQuery
A jakarta.persistence equivalent ofgetQuery(EntityManager, Object...)
for future support of that API. Currently unused, but provided as a compatibility hook.- Since:
- 9.3
-