Java tutorial
/*$Id: DummyInterceptorH3.java 11967 2008-12-03 13:46:39Z jens $*/ /* **************************************************************************** * * * (c) Copyright 2008 ABM-utvikling * * * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * * * * This program is distributed in the hope that it will be useful, but * * WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * * Public License for more details. http://www.gnu.org/licenses/gpl.html * * * **************************************************************************** */ package no.abmu.util.hibernate3; import java.io.Serializable; import java.util.Iterator; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.hibernate.EmptyInterceptor; import org.hibernate.SessionFactory; import org.hibernate.type.Type; /** * DummyInterceptorH3. * * @author Jens Vindvad, Jens.Vindvad@abm-utvikling.no * @author $Author:jens $ * @version $Rev: 11967 $ * $Date: 2008-12-03 14:46:39 +0100 (Wed, 03 Dec 2008) $ * copyright ABM-Utvikling * @since 2004-12-04 (Rev. 300) */ public class DummyInterceptorH3 extends EmptyInterceptor { private static final Log logger = (Log) LogFactory.getLog(DummyInterceptorH3.class); private SessionFactory sessionFactory; /** * Create a new Interceptor, recording the changes under the given userName. */ public DummyInterceptorH3() { } public SessionFactory getSessionFactory() { return sessionFactory; } public void setSessionFactory(SessionFactory sessionFactory) { this.sessionFactory = sessionFactory; } public boolean onLoad(Object obj, Serializable id, Object[] values, String[] properties, Type[] types) { return false; } public boolean onFlushDirty(Object obj, Serializable id, Object[] newValues, Object[] oldValues, String[] properties, Type[] types) { return false; } public boolean onSave(Object obj, Serializable id, Object[] newValues, String[] properties, Type[] types) { return false; } public void onDelete(Object obj, Serializable id, Object[] newValues, String[] properties, Type[] types) { } public void preFlush(Iterator it) { } public void postFlush(Iterator it) { } public Boolean isUnsaved(Object arg0) { return null; } public int[] findDirty(Object obj, Serializable id, Object[] newValues, Object[] oldValues, String[] properties, Type[] types) { return null; } public Object instantiate(Class arg0, Serializable arg1) { return null; } }