Example usage for org.hibernate Interceptor interface-usage

List of usage examples for org.hibernate Interceptor interface-usage

Introduction

In this page you can find the example usage for org.hibernate Interceptor interface-usage.

Usage

From source file org.archiviststoolkit.hibernate.AuditInterceptor.java

public class AuditInterceptor extends EmptyInterceptor implements Interceptor, Serializable {

    private String userName;

    public AuditInterceptor(Users user) {
        if (user == null) {

From source file org.compass.gps.device.hibernate.CompassTransactionInterceptor.java

/**
 * <p>A Compass Hibernate interceptor to manage Compass transactions based on Hibernate
 * Interceptor transaction lifecycle callbacks. Useful when working with Compass Local
 * transactions and Hibernate JDBC transaction manager.
 *
 * <p>In order to use this interceptor call {@link #injectInterceptor(org.hibernate.SessionFactory, CompassTransactionInterceptor)}

From source file org.jboss.test.hibernate.SimpleInterceptor.java

/**
 * Implementation of SimpleInterceptor.
 *
 * @author Steve Ebersole
 */
public class SimpleInterceptor implements Interceptor {

From source file org.olat.core.commons.persistence.AuditInterceptor.java

/**
 * @author Andreas Ch. Kapp
 */
public class AuditInterceptor extends EmptyInterceptor implements Interceptor, Serializable {

    private int updates;

From source file org.openmrs.api.db.hibernate.ChainingInterceptor.java

/**
 * Used by the {@link HibernateSessionFactoryBean} to keep track of multiple interceptors <br>
 * Each of the methods in {@link Interceptor} are called for each interceptor that is added to this
 * class
 * 
 * @since 1.9

From source file org.riotfamily.common.hibernate.SessionFactoryAwareInterceptor.java

/**
 * Interface that can be implemented by an {@link Interceptor} that needs
 * a reference to the SessionFactory.
 * 
 * @see RiotSessionFactoryBean
 */

From source file org.springmodules.orm.hibernate3.support.PolevValidatingInterceptor.java

/**
 * <p>Hibernate 3 interceptor that implements the persistent object life-cycle event validation (POLEV) pattern on three life-cyle events
 * within the Hibernate session:
 * 
 * <ul>
 *       <li>onFlushDirty - occurs before a domain object is flushed to the database. This should be considered as an update of an existing object.

From source file org.tynamo.hibernate.TynamoInterceptor.java

/**
 * Class required by Hibernate when you have an object with composite primary key. The isUnsaved() method is what we're
 * interested in here.
 */
public class TynamoInterceptor extends EmptyInterceptor implements Interceptor, Serializable {