Example usage for org.hibernate EmptyInterceptor subclass-usage

List of usage examples for org.hibernate EmptyInterceptor subclass-usage

Introduction

In this page you can find the example usage for org.hibernate EmptyInterceptor subclass-usage.

Usage

From source file com.cnd.greencube.server.interceptor.Test.java

public class Test extends EmptyInterceptor {
    @Override
    public String onPrepareStatement(String sql) {
        //System.out.println(sql); //TODO 1
        return super.onPrepareStatement(sql);
    }

From source file com.db4o.drs.hibernate.impl.ObjectLifeCycleEventsListenerImpl.java

public class ObjectLifeCycleEventsListenerImpl extends EmptyInterceptor implements ObjectLifeCycleEventsListener {

    private final static String DELETE_SQL = "delete from " + ObjectReference.Table.NAME + " where "
            + Uuid.Table.CREATED + "= ? " + " AND " + Uuid.Table.PROVIDER + " = ?";

    private final Set<ObjectReference> _dirtyNewRefs = new HashSet<ObjectReference>();

From source file com.erinors.hpb.tests.integration.HibernateInterceptor.java

public class HibernateInterceptor extends EmptyInterceptor {
    private static final long serialVersionUID = 1L;

    @Override
    public Boolean isTransient(Object entity) {
        if (entity instanceof BaseEntity) {

From source file com.eryansky.core.HibernateAspectInterceptor.java

/**
 * Hibernate .
 * 
 * @author &Eryan eryanwcp@gmail.com
 * @date 2013-3-21 ?12:30:54
 * 

From source file com.evolveum.midpoint.repo.sql.testing.QueryCountInterceptor.java

/**
 * Created by Viliam Repan (lazyman).
 */
public class QueryCountInterceptor extends EmptyInterceptor {

    private ThreadLocal<Integer> queryCount = new ThreadLocal<>();

From source file com.evolveum.midpoint.repo.sql.testing.TestInterceptor.java

/**
 * Created by Viliam Repan (lazyman).
 */
public class TestInterceptor extends EmptyInterceptor {

    @Autowired

From source file com.fiveamsolutions.nci.commons.audit.AuditLogInterceptor.java

/**
 * Interceptor that adds audit log records for audits.  The username that identifies
 * the actor of the change request is determined with {@link UsernameHolder}.
 * Don't forget to define a sequence {@value #SEQUENCE_NAME}, if your database supports it.
 * @see UsernameHolder
 */

From source file com.fiveamsolutions.nci.commons.util.CountingInterceptior.java

/**
 * Testing interceptor that keeps count of the number of times methods have been called.
 */
public class CountingInterceptior extends EmptyInterceptor {

    private static final long serialVersionUID = 1L;

From source file com.fiveamsolutions.nci.commons.util.ModifyingInterceptor.java

/**
 * Interceptor that acts as a backstop for the interception chain.  IE, should
 * stop processing for all methods in composite interceptor that stop after
 * some condition based upon the return value of the method.  It also says
 * things are modified for methods that return boolean args.
 */

From source file com.github.carlomicieli.service.hibernate.SessionEventInterceptor.java

/**
 * Hibernate interceptor class for entity events.
 * @author Carlo P. Micieli
 *
 */
public class SessionEventInterceptor extends EmptyInterceptor {