edu.princeton.wordnet.orm.hibernate
Class HibernateInterceptor

java.lang.Object
  extended by edu.princeton.wordnet.orm.interceptor.Interceptor
      extended by edu.princeton.wordnet.orm.hibernate.HibernateInterceptor

public class HibernateInterceptor
extends Interceptor

Interceptor instrumentation

Author:
Bernard Bou

Field Summary
private static org.apache.log4j.Logger LOG
          Logger
 
Constructor Summary
HibernateInterceptor()
           
 
Method Summary
static void epilogue(org.hibernate.Session thisSession)
          Method epilogue
protected  java.lang.String[] importedPackages()
           
static org.hibernate.Session prologue(Reference thisReference)
          Method prologue
protected  java.lang.String prologueClass()
           
protected  java.lang.String prologueReturn()
           
 
Methods inherited from class edu.princeton.wordnet.orm.interceptor.Interceptor
intercept, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.log4j.Logger LOG
Logger

Constructor Detail

HibernateInterceptor

public HibernateInterceptor()
Method Detail

prologue

public static org.hibernate.Session prologue(Reference thisReference)
                                      throws org.hibernate.HibernateException,
                                             java.io.FileNotFoundException
Method prologue

Parameters:
thisReference - reference
Returns:
session
Throws:
org.hibernate.HibernateException
java.io.FileNotFoundException

epilogue

public static void epilogue(org.hibernate.Session thisSession)
Method epilogue

Parameters:
thisSession - session

prologueReturn

protected java.lang.String prologueReturn()
Specified by:
prologueReturn in class Interceptor

prologueClass

protected java.lang.String prologueClass()
Specified by:
prologueClass in class Interceptor

importedPackages

protected java.lang.String[] importedPackages()
Specified by:
importedPackages in class Interceptor