edu.princeton.wordnet.orm.hibernate
Class Querier<X>

java.lang.Object
  extended by edu.princeton.wordnet.orm.hibernate.Querier<X>
Direct Known Subclasses:
GenericQuery, WordQueryFromLemma, WordQueryFromLikeness

public abstract class Querier<X>
extends java.lang.Object

Wrapper class

Author:
Bernard Bou

Constructor Summary
protected Querier()
          Constructor
 
Method Summary
protected abstract  org.hibernate.Query make(org.hibernate.Session thisSession)
          Make Hibernate query
 java.util.Collection<X> run(org.hibernate.Session thisSession)
          Run query and process
 java.util.Collection<org.dom4j.Element> runXml(org.hibernate.Session thatSession)
          Run query and process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Querier

protected Querier()
Constructor

Method Detail

make

protected abstract org.hibernate.Query make(org.hibernate.Session thisSession)
                                     throws java.lang.RuntimeException
Make Hibernate query

Parameters:
thisSession - Hibernate session
Returns:
Hibernate query
Throws:
java.lang.RuntimeException

run

public final java.util.Collection<X> run(org.hibernate.Session thisSession)
Run query and process

Parameters:
thisSession - session

runXml

public final java.util.Collection<org.dom4j.Element> runXml(org.hibernate.Session thatSession)
Run query and process

Parameters:
thatSession - session