KickJava   Java API By Example, From Geeks To Geeks.

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


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: SFSBCMTDeployDesc.java 658 2006-06-15 08:47:22Z pinheirg $
23  * --------------------------------------------------------------------------
24  */

25 package org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.xmldescriptor;
26
27 import org.objectweb.easybeans.tests.common.db.TableManager;
28
29 /**
30  * Used to verify the definition of transaction by the deployment descriptor.
31  * @author Gisele Pinheiro Souza
32  * @author Eduardo Studzinski Estima de Castro
33  *
34  */

35 public class SFSBCMTDeployDesc implements ItfCMTDeployDesc {
36
37     /**
38      * Inserts a table the database.
39      * @param dbName is the name of the database in the registry.
40      * @param tableName is the table name.
41      * @throws Exception if an error occurs.
42      */

43     protected void insertTable(final String JavaDoc dbName, final String JavaDoc tableName) throws Exception JavaDoc {
44         TableManager tableManager = new TableManager(dbName);
45         tableManager.insertTable(tableName);
46     }
47
48     /**
49      * Inserts a table the database. The transaction attribute is defined in the
50      * deployment descriptor.
51      * @param dbName is the name of the database in the registry.
52      * @param tableName is the table name.
53      * @throws Exception if an error occurs.
54      */

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

66     public void insertTable02(final String JavaDoc dbName, final String JavaDoc tableName) throws Exception JavaDoc{
67         insertTable(dbName, tableName);
68     }
69
70     /**
71      * Inserts a table the database. The transaction attribute is defined in the
72      * deployment descriptor.
73      * @param dbName is the name of the database in the registry.
74      * @param tableName is the table name.
75      * @param dummy is used to provide two methods with the same name.
76      * @throws Exception if an error occurs.
77      */

78     public void insertTable02(final String JavaDoc dbName, final String JavaDoc tableName, final int dummy) throws Exception JavaDoc{
79         insertTable(dbName, tableName);
80     }
81
82     /**
83      * Inserts a table the database. The transaction attribute is defined in the
84      * deployment descriptor.
85      * @param dbName is the name of the database in the registry.
86      * @param tableName is the table name.
87      * @throws Exception if an error occurs.
88      */

89     public void insertTable03(final String JavaDoc dbName, final String JavaDoc tableName) throws Exception JavaDoc{
90         insertTable(dbName, tableName);
91     }
92
93     /**
94      * Inserts a table the database. The transaction attribute is defined in the
95      * deployment descriptor.
96      * @param dbName is the name of the database in the registry.
97      * @param tableName is the table name.
98      * @param dummy is used to provide two methods with the same name.
99      * @throws Exception if an error occurs.
100      */

101     public void insertTable03(final String JavaDoc dbName, final String JavaDoc tableName, final int dummy) throws Exception JavaDoc{
102         insertTable(dbName, tableName);
103     }
104 }
105
Popular Tags