KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > tests > common > ejbs > stateless > containermanaged > callbacklogger > ItfOperationLoggerAccess


1 /**
2  * EasyBeans
3  * Copyright (C) 2006 Bull S.A.S.
4  * Contact: easybeans@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: ItfOperationLoggerAccess.java 731 2006-06-23 09:12:59Z studzine $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.callbacklogger;
27
28 import org.objectweb.easybeans.tests.common.ejbs.entity.callbacklogger.CallbackType;
29 import org.objectweb.easybeans.tests.common.ejbs.entity.callbacklogger.OperationType;
30
31 /**
32  * Accesses the entity that registers the operations made by a method.
33  * @author Gisele Pinheiro Souza
34  * @author Eduardo Studzinski Estima de Castro
35  */

36 public interface ItfOperationLoggerAccess {
37
38     /**
39      * Creates an instance of OperationLogger with the parameters and the
40      * current time.
41      * @param className the bean class.
42      * @param event the event type.
43      * @param eventClassName the name of the class where the event is defined.
44      * @param operationType the operationType.
45      */

46     void insertOperationLogger(final String JavaDoc className, final CallbackType event, final String JavaDoc eventClassName,
47             final OperationType operationType);
48
49     /**
50      * Creates an instance of OperationLogger with the parameters and the
51      * current time.
52      * @param className the bean class.
53      * @param event the event type.
54      * @param eventClassName the name of the class where the event is defined.
55      * @param operationType the operation type.
56      * @param operationDescription the operation description.
57      */

58     void insertOperationLogger(final String JavaDoc className, final CallbackType event, final String JavaDoc eventClassName,
59             final OperationType operationType, final String JavaDoc operationDescription);
60
61     /**
62      * Deletes all operations from the database.
63      */

64     void deleteAll();
65
66     /**
67      * Verifies if the events for an operation were called and if the invocation
68      * order is correct.
69      * @param className the bean class.
70      * @param event the event type.
71      * @param eventClassNames the list of where the event methods are defined in
72      * the correct invocation order.
73      * @param operationType the operation type.
74      */

75     void verifyOperation(final String JavaDoc className, final CallbackType event, final String JavaDoc[] eventClassNames,
76             final OperationType operationType);
77
78     /**
79      * Verifies if the events for an operation were called and if the invocation
80      * order is correct.
81      * @param className the bean class.
82      * @param event the event type.
83      * @param eventClassNames the list of where the event methods are defined in
84      * the correct invocation order.
85      * @param operationType the operation type.
86      */

87     void verifyOperation(final Class JavaDoc className, final CallbackType event, final String JavaDoc[] eventClassNames,
88             final OperationType operationType);
89
90     /**
91      * Verifies if the events for an operation were called and if the invocation
92      * order is correct.
93      * @param className the bean class.
94      * @param event the event type.
95      * @param eventClassNames the list of where the event methods are defined in
96      * the correct invocation order.
97      * @param operationType the operation type.
98      * @param descriptions the operations description.
99      */

100     void verifyOperation(final Class JavaDoc className, final CallbackType event, final String JavaDoc[] eventClassNames,
101             final OperationType operationType, final String JavaDoc[] descriptions);
102
103     /**
104      * Verifies if the events for an operation were called and if the invocation
105      * order is correct.
106      * @param className the bean class.
107      * @param event the event type.
108      * @param eventClassNames the list of where the event methods are defined in
109      * the correct invocation order.
110      * @param operationType the operation type.
111      * @param descriptions the operations description.
112      */

113     void verifyOperation(final String JavaDoc className, final CallbackType event, final String JavaDoc[] eventClassNames,
114             final OperationType operationType, final String JavaDoc[] descriptions);
115
116 }
117
Popular Tags