org.openxava.hibernate.impl
Class CalculatorsListener

java.lang.Object
  extended by org.openxava.hibernate.impl.CalculatorsListener
All Implemented Interfaces:
java.io.Serializable, org.hibernate.event.PostLoadEventListener, org.hibernate.event.PreDeleteEventListener, org.hibernate.event.PreInsertEventListener, org.hibernate.event.PreUpdateEventListener

public class CalculatorsListener
extends java.lang.Object
implements org.hibernate.event.PreInsertEventListener, org.hibernate.event.PreUpdateEventListener, org.hibernate.event.PreDeleteEventListener, org.hibernate.event.PostLoadEventListener

See Also:
Serialized Form

Constructor Summary
CalculatorsListener()
           
 
Method Summary
static CalculatorsListener getInstance()
           
 void onPostLoad(org.hibernate.event.PostLoadEvent ev)
           
 boolean onPreDelete(org.hibernate.event.PreDeleteEvent ev)
           
 boolean onPreInsert(org.hibernate.event.PreInsertEvent ev)
           
 boolean onPreUpdate(org.hibernate.event.PreUpdateEvent ev)
           
static void setOffForCurrentThread()
           
static void setOnForCurrentThread()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculatorsListener

public CalculatorsListener()
Method Detail

getInstance

public static CalculatorsListener getInstance()

onPostLoad

public void onPostLoad(org.hibernate.event.PostLoadEvent ev)
Specified by:
onPostLoad in interface org.hibernate.event.PostLoadEventListener

onPreInsert

public boolean onPreInsert(org.hibernate.event.PreInsertEvent ev)
Specified by:
onPreInsert in interface org.hibernate.event.PreInsertEventListener

onPreUpdate

public boolean onPreUpdate(org.hibernate.event.PreUpdateEvent ev)
Specified by:
onPreUpdate in interface org.hibernate.event.PreUpdateEventListener

onPreDelete

public boolean onPreDelete(org.hibernate.event.PreDeleteEvent ev)
Specified by:
onPreDelete in interface org.hibernate.event.PreDeleteEventListener

setOffForCurrentThread

public static void setOffForCurrentThread()

setOnForCurrentThread

public static void setOnForCurrentThread()