com.atlassian.confluence.content.persistence.hibernate
Interface HibernateContentQueryFactory

All Known Implementing Classes:
FindInSpaceByMessageIdQueryFactory, FindNextInSpaceHibernateQueryFactory, FindPreviousInSpaceHibernateQueryFactory

public interface HibernateContentQueryFactory

Interface that needs to be implemented by a HibernateContentQuery plugin module.


Method Summary
 net.sf.hibernate.Query getQuery(net.sf.hibernate.Session session, Object... parameters)
          Get the hibernate implementation of the query this factory wishes to generate.
 

Method Detail

getQuery

net.sf.hibernate.Query getQuery(net.sf.hibernate.Session session,
                                Object... parameters)
                                throws net.sf.hibernate.HibernateException
Get the hibernate 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:
session - the hibernate session in which to create the query
parameters - the parameters to be set on the query
Returns:
the hibernate implementation of the query
Throws:
net.sf.hibernate.HibernateException


Copyright © 2003-2013 Atlassian. All Rights Reserved.