Code example for EmptyInterceptor

0
 * 
 * One use case is to set creation and modified time on 
 * on save, merge or collection cascades 
 */ 
@SuppressWarnings("serial") 
public class HypericInterceptorTarget extends EmptyInterceptor {
    private final Log _log = LogFactory.getLog(HypericInterceptor.class);
         
    public String onPrepareStatement(String sql) {
        return sql;
    } 
 
    private boolean entHasContainerManagedTimestamp(Object o) { 
        return o instanceof ContainerManagedTimestampTrackable; 
    } 
     
    public boolean onFlushDirty(Object entity, Serializable id, 
                                Object[] currentState, Object[] previousState,  
                                String[] propertyNames, Type[] types) {
        try {