1 25 package org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged; 26 27 import java.sql.SQLException ; 28 29 import javax.ejb.Remote ; 30 import javax.ejb.Stateless ; 31 import javax.naming.NamingException ; 32 33 import org.objectweb.easybeans.tests.common.db.TableManager; 34 35 40 @Stateless (name="SLSBDatabaseManager") 41 @Remote (ItfDatabaseManager.class) 42 public class SLSBDatabaseManager implements ItfDatabaseManager { 43 44 52 public void deleteTable(final String dbName, final String tableName) throws NamingException , SQLException { 53 TableManager tableManager = new TableManager(dbName); 55 tableManager.deleteTable(tableName); 56 } 57 58 66 public void verifyTable(final String dbName, final String tableName) throws NamingException , SQLException { 67 TableManager tableManager = new TableManager(dbName); 69 tableManager.verifyTable(tableName); 70 } 71 72 80 public void insertTable(final String dbName, final String tableName) throws NamingException , SQLException { 81 TableManager tableManager = new TableManager(dbName); 82 tableManager.insertTable(tableName); 83 } 84 85 } 86 | Popular Tags |