public final class HibernateSearch extends Object implements org.springframework.orm.hibernate5.HibernateCallback
HQLQuery
against the database, converting parameters
and results to the correct types.
Construction is via two static methods, depending on the type of query. For user, group and directory
queries, use forEntities(long, EntityQuery)
. For membership queries, use
forMemberships(long, MembershipQuery)
.
Modifier and Type | Method and Description |
---|---|
Object |
doInHibernate(org.hibernate.Session session) |
static HibernateSearch |
forEntities(com.atlassian.crowd.search.query.entity.EntityQuery query)
Returns a HibernateSearch instance for a user, group or directory query across all directories.
|
static HibernateSearch |
forEntities(long directoryId,
com.atlassian.crowd.search.query.entity.EntityQuery query)
Returns a HibernateSearch instance for a user or group query in a particular directory.
|
static HibernateSearch |
forMemberships(long directoryId,
com.atlassian.crowd.search.query.membership.MembershipQuery query)
Returns a HibernateSearch instance for a membership query in a particular directory.
|
public static HibernateSearch forEntities(long directoryId, com.atlassian.crowd.search.query.entity.EntityQuery query)
public static HibernateSearch forEntities(com.atlassian.crowd.search.query.entity.EntityQuery query)
public static HibernateSearch forMemberships(long directoryId, com.atlassian.crowd.search.query.membership.MembershipQuery query)
public Object doInHibernate(org.hibernate.Session session)
doInHibernate
in interface org.springframework.orm.hibernate5.HibernateCallback
Copyright © 2003–2017 Atlassian. All rights reserved.