KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > tests > common > ejbs > stateful > containermanaged > xmldescriptor > ItfTransAttributeDefinition


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: ItfTransAttributeDefinition.java 659 2006-06-15 13:41:59Z pinheirg $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.xmldescriptor;
27
28 import javax.ejb.TransactionAttribute JavaDoc;
29 import javax.ejb.TransactionAttributeType JavaDoc;
30
31 /**
32  * Has the definition of the transaction attributed in the deployment
33  * descriptor. Class used to verify the override, and, also the definition for
34  * each attribute.
35  * @author Gisele Pinheiro Souza
36  * @author Eduardo Studzinski Estima de Castro
37  */

38 public interface ItfTransAttributeDefinition {
39
40     /**
41      * Inserts a table the database. The transaction attribute is defined in the
42      * deployment descriptor.
43      * @param dbName is the name of the database in the registry.
44      * @param tableName is the table name.
45      * @throws Exception if an error occurs.
46      */

47     void insertTableCorrect(final String JavaDoc dbName, final String JavaDoc tableName) throws Exception JavaDoc;
48
49     /**
50      * Inserts a table the database. The transaction attribute is defined in the
51      * deployment descriptor.
52      * @param dbName is the name of the database in the registry.
53      * @param tableName is the table name.
54      * @throws Exception if an error occurs.
55      */

56     void insertTableError(final String JavaDoc dbName, final String JavaDoc tableName) throws Exception JavaDoc;
57
58     /**
59      * Inserts a table the database. The transaction attribute is defined in the
60      * deployment descriptor.
61      * @param dbName is the name of the database in the registry.
62      * @param tableName is the table name.
63      * @throws Exception if an error occurs.
64      */

65     @TransactionAttribute JavaDoc(TransactionAttributeType.MANDATORY)
66     void insertTableCorrectMandatory(final String JavaDoc dbName, final String JavaDoc tableName) throws Exception JavaDoc;
67
68     /**
69      * Inserts a table the database. The transaction attribute is defined in the
70      * deployment descriptor.
71      * @param dbName is the name of the database in the registry.
72      * @param tableName is the table name.
73      * @throws Exception if an error occurs.
74      */

75     @TransactionAttribute JavaDoc(TransactionAttributeType.MANDATORY)
76     void insertTableErrorMandatory(final String JavaDoc dbName, final String JavaDoc tableName) throws Exception JavaDoc;
77
78 }
79
Popular Tags