KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > tests > common > ejbs > stateless > containermanaged > entitymanager > ItfEntityManagerTester01


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: ItfEntityManagerTester01.java 822 2006-07-04 14:35:35Z pinheirg $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.entitymanager;
27
28 /**
29  * Verifies if the container provides a correct implementation of the methods:
30  * merge, contains and refresh.
31  * @author Gisele Pinheiro Souza
32  * @author Eduardo Studzinski Estima de Castro
33  */

34 public interface ItfEntityManagerTester01 {
35
36     /**
37      * Verifies if the container can make a merge in a detached entity.
38      * @param id the bean primary key.
39      * @param name the bean name.
40      * @param newName the bean name after it became dectached.
41      */

42     void mergeEBStore(final int id, final String JavaDoc name, final String JavaDoc newName);
43
44     /**
45      * Verifies if the conatins method return the correct bean.
46      * @param id the bean primary key.
47      * @param name the bean name.
48      */

49     void containsEBStore(final int id, final String JavaDoc name);
50
51     /**
52      * Verifies if the container makes a refresh of a modified bean.
53      * @param id the entity primary key.
54      * @param name the bean name.
55      * @param newName the bean name after it became detached.
56      */

57     void refreshEBStore(final int id, final String JavaDoc name, final String JavaDoc newName);
58
59     /**
60      * Removes the entity that is in the database.
61      * @param id the entity primary key.
62      */

63     void removeEBStore(final int id);
64
65 }
66
Popular Tags