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

java.lang.Object
  extended by edu.princeton.wordnet.orm.hibernate.Querier<X>
      extended by edu.princeton.wordnet.orm.hibernate.GenericQuery<X>

public class GenericQuery<X>
extends Querier<X>

Generic query

Author:
Bernard Bou

Field Summary
private static java.io.PrintStream thePrintStream
          Printstream for SQL statements
private  java.lang.String theStatement
          Statement
 
Constructor Summary
GenericQuery(java.lang.String thisStatement)
          Constructor
 
Method Summary
 java.util.Collection<X> getThings()
          Get things
protected  org.hibernate.Query make(org.hibernate.Session thisSession)
          Make Hibernate query
static void setPrintStream(java.io.PrintStream thisPrintStream)
          Set print stream
 
Methods inherited from class edu.princeton.wordnet.orm.hibernate.Querier
run, runXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theStatement

private final java.lang.String theStatement
Statement


thePrintStream

private static java.io.PrintStream thePrintStream
Printstream for SQL statements

Constructor Detail

GenericQuery

public GenericQuery(java.lang.String thisStatement)
Constructor

Parameters:
thisStatement - statement
Method Detail

make

protected org.hibernate.Query make(org.hibernate.Session thisSession)
Description copied from class: Querier
Make Hibernate query

Specified by:
make in class Querier<X>
Parameters:
thisSession - Hibernate session
Returns:
Hibernate query

getThings

public java.util.Collection<X> getThings()
                                  throws java.lang.Exception
Get things

Returns:
collection of X
Throws:
java.lang.Exception

setPrintStream

public static void setPrintStream(java.io.PrintStream thisPrintStream)
Set print stream

Parameters:
thisPrintStream - printstream to set