public final class HibernateSearch extends Object implements org.springframework.orm.hibernate.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(net.sf.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(net.sf.hibernate.Session session) throws net.sf.hibernate.HibernateException
doInHibernate
in interface org.springframework.orm.hibernate.HibernateCallback
net.sf.hibernate.HibernateException
Copyright © 2003–2015 Atlassian. All rights reserved.