KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > tests > common > ejbs > stateless > containermanaged > transaction > ItfTransactionMisc00


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: ItfTransactionMisc00.java 808 2006-07-03 13:58:29Z pinheirg $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.transaction;
27
28 import java.sql.SQLException JavaDoc;
29
30 import javax.ejb.TransactionAttribute JavaDoc;
31 import javax.ejb.TransactionAttributeType JavaDoc;
32 import javax.naming.NamingException JavaDoc;
33
34 /**
35  * Creates the test table with different transaction attributes.
36  * @author Gisele Pinheiro Souza
37  * @author Eduardo Studzinski Estima de Castro
38  *
39  */

40 public interface ItfTransactionMisc00 {
41
42     /**
43      * Table used during the tests.
44      */

45     String JavaDoc TABLE = "SLSBTransactionMisc00";
46
47     /**
48      * Inserts the table test in the database with the transaction attribute REQUIRED.
49      * @param dbName is the name of the database in the registry.
50      * @throws SQLException if a databse error occurs.
51      * @throws NamingException if a lookup error occurs.
52      */

53     @TransactionAttribute JavaDoc(value = TransactionAttributeType.REQUIRED)
54     void insertTableWithRequired(final String JavaDoc dbName) throws SQLException JavaDoc, NamingException JavaDoc;
55
56     /**
57      * Inserts the table test in the database with the transaction attribute NOT_SUPPORTED.
58      * @param dbName is the name of the database in the registry.
59      * @throws SQLException if a databse error occurs.
60      * @throws NamingException if a lookup error occurs.
61      */

62     @TransactionAttribute JavaDoc(value = TransactionAttributeType.NOT_SUPPORTED)
63     void insertTableWithNotSupported(final String JavaDoc dbName) throws SQLException JavaDoc, NamingException JavaDoc;
64
65 }
66
Popular Tags