Code example for EmptyInterceptor

0
 
/** 
 * This interceptor delegates to others in the chain.  Most of the meat 
 * is in {@link HypericInterceptorTarget}  
 */ 
public class HypericInterceptor  
    extends EmptyInterceptor 
{ 
    private final HibernateInterceptorChain _chainer =  
        Bootstrap.getBean(HibernateInterceptorChain.class); 
         
    private final HypericInterceptorTarget _target =  
        new HypericInterceptorTarget(); 
     
    public String onPrepareStatement(String sql) { 
        return _chainer.onPrepareStatement(null, _target, sql); 
    } 
 
    public boolean onFlushDirty(Object entity, Serializable id,  
                                Object[] currentState, Object[] previousState,