KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > hibernate > SimpleInterceptor


1 /*
2 * JBoss, Home of Professional Open Source
3 *
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
6 */

7 // $Id: SimpleInterceptor.java,v 1.1.2.2 2005/05/02 22:49:01 starksm Exp $
8
package org.jboss.test.hibernate;
9
10 import org.hibernate.Interceptor;
11 import org.hibernate.CallbackException;
12 import org.hibernate.EntityMode;
13 import org.hibernate.Transaction;
14 import org.hibernate.type.Type;
15
16 import java.io.Serializable JavaDoc;
17 import java.util.Iterator JavaDoc;
18
19 /**
20  * Implementation of SimpleInterceptor.
21  *
22  * @author Steve Ebersole
23  */

24 public class SimpleInterceptor implements Interceptor
25 {
26    public boolean onLoad(Object JavaDoc o, Serializable JavaDoc serializable, Object JavaDoc[] objects, String JavaDoc[] strings, Type[] types) throws CallbackException
27    {
28       return false;
29    }
30
31    public boolean onFlushDirty(Object JavaDoc o, Serializable JavaDoc serializable, Object JavaDoc[] objects, Object JavaDoc[] objects1, String JavaDoc[] strings, Type[] types) throws CallbackException
32    {
33       return false;
34    }
35
36    public boolean onSave(Object JavaDoc o, Serializable JavaDoc serializable, Object JavaDoc[] objects, String JavaDoc[] strings, Type[] types) throws CallbackException
37    {
38       return false;
39    }
40
41    public void onDelete(Object JavaDoc o, Serializable JavaDoc serializable, Object JavaDoc[] objects, String JavaDoc[] strings, Type[] types) throws CallbackException
42    {
43    }
44
45    public void preFlush(Iterator JavaDoc iterator) throws CallbackException
46    {
47    }
48
49    public void postFlush(Iterator JavaDoc iterator) throws CallbackException
50    {
51    }
52
53    public Boolean JavaDoc isTransient(Object JavaDoc o)
54    {
55       return null;
56    }
57
58    public int[] findDirty(Object JavaDoc o, Serializable JavaDoc serializable, Object JavaDoc[] objects, Object JavaDoc[] objects1, String JavaDoc[] strings, Type[] types)
59    {
60       return null;
61    }
62
63    public Object JavaDoc instantiate(String JavaDoc name, EntityMode entityMode, Serializable JavaDoc serializable) throws CallbackException
64    {
65       return null;
66    }
67
68    public String JavaDoc getEntityName(Object JavaDoc o) throws CallbackException
69    {
70       return null;
71    }
72
73    public Object JavaDoc getEntity(String JavaDoc name, Serializable JavaDoc serializable) throws CallbackException
74    {
75       return null;
76    }
77
78    public void afterTransactionBegin(Transaction transaction)
79    {
80    }
81
82    public void beforeTransactionCompletion(Transaction transaction)
83    {
84    }
85
86    public void afterTransactionCompletion(Transaction transaction)
87    {
88    }
89 }
90
Popular Tags