/*
* JBoss, Home of Professional Open Source
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
// $Id: SimpleInterceptor.java,v 1.1.2.2 2005/05/02 22:49:01 starksm Exp $
package org.jboss.test.hibernate;

import org.hibernate.Interceptor;
import org.hibernate.CallbackException;
import org.hibernate.EntityMode;
import org.hibernate.Transaction;
import org.hibernate.type.Type;

import java.io.Serializable;
import java.util.Iterator;

/**
 * Implementation of SimpleInterceptor.
 *
 * @author Steve Ebersole
 */
public class SimpleInterceptor implements Interceptor
{
   public boolean onLoad(Object o, Serializable serializable, Object[] objects, String[] strings, Type[] types) throws CallbackException
   {
      return false;
   }

   public boolean onFlushDirty(Object o, Serializable serializable, Object[] objects, Object[] objects1, String[] strings, Type[] types) throws CallbackException
   {
      return false;
   }

   public boolean onSave(Object o, Serializable serializable, Object[] objects, String[] strings, Type[] types) throws CallbackException
   {
      return false;
   }

   public void onDelete(Object o, Serializable serializable, Object[] objects, String[] strings, Type[] types) throws CallbackException
   {
   }

   public void preFlush(Iterator iterator) throws CallbackException
   {
   }

   public void postFlush(Iterator iterator) throws CallbackException
   {
   }

   public Boolean isTransient(Object o)
   {
      return null;
   }

   public int[] findDirty(Object o, Serializable serializable, Object[] objects, Object[] objects1, String[] strings, Type[] types)
   {
      return null;
   }

   public Object instantiate(String name, EntityMode entityMode, Serializable serializable) throws CallbackException
   {
      return null;
   }

   public String getEntityName(Object o) throws CallbackException
   {
      return null;
   }

   public Object getEntity(String name, Serializable serializable) throws CallbackException
   {
      return null;
   }

   public void afterTransactionBegin(Transaction transaction)
   {
   }

   public void beforeTransactionCompletion(Transaction transaction)
   {
   }

   public void afterTransactionCompletion(Transaction transaction)
   {
   }
}