Package org.jboss.test.jca.interfaces

Examples of org.jboss.test.jca.interfaces.PreparedStatementHome.create()


   public void testPreparedStatementCache() throws Exception
   {
      log.info("+++ testPreparedStatementCache");
      InitialContext ctx = new InitialContext();
      PreparedStatementHome home = (PreparedStatementHome) ctx.lookup("PreparedStatementBean");
      PreparedStatementRemote bean = home.create("key1", "name1");
      bean.testPreparedStatementCache();
      bean.remove();
   }

   public void testPreparedStatementCacheDoubleClose() throws Exception
View Full Code Here


   public void testPreparedStatementCacheDoubleClose() throws Exception
   {
      log.info("+++ testPreparedStatementCacheDoubleClose");
      InitialContext ctx = new InitialContext();
      PreparedStatementHome home = (PreparedStatementHome) ctx.lookup("PreparedStatementBean");
      PreparedStatementRemote bean = home.create("key1", "name1");
      bean.testPreparedStatementCache();
      bean.remove();
   }

   public void testBasicPreparedStatement() throws Exception
View Full Code Here

   public void testBasicPreparedStatement() throws Exception
   {
      log.info("+++ testBasicPreparedStatement");
      InitialContext ctx = new InitialContext();
      PreparedStatementHome home = (PreparedStatementHome) ctx.lookup("PreparedStatementBean");
      PreparedStatementRemote bean = home.create("key1", "name1");
      bean.hashEntityTable();
      bean.remove();
   }

   public void testCallableStatementCache() throws Exception
View Full Code Here

   public void testCallableStatementCache() throws Exception
   {
      log.info("+++ testCallableStatementCache");
      InitialContext ctx = new InitialContext();
      PreparedStatementHome home = (PreparedStatementHome) ctx.lookup("PreparedStatementBean");
      PreparedStatementRemote bean = home.create("key2", "name2");
      bean.testCallableStatementCache("callIdentitySQL");
      bean.remove();
   }

   public void testCallableStatementCacheDoubleClose() throws Exception
View Full Code Here

   public void testCallableStatementCacheDoubleClose() throws Exception
   {
      log.info("+++ testCallableStatementCacheDobuleClose");
      InitialContext ctx = new InitialContext();
      PreparedStatementHome home = (PreparedStatementHome) ctx.lookup("PreparedStatementBean");
      PreparedStatementRemote bean = home.create("key2", "name2");
      bean.testCallableStatementCache("callIdentitySQL");
      bean.remove();
   }
  
   public void testBasicCallableStatement() throws Exception
View Full Code Here

   public void testBasicCallableStatement() throws Exception
   {
      log.info("+++ testBasicCallableStatement");
      InitialContext ctx = new InitialContext();
      PreparedStatementHome home = (PreparedStatementHome) ctx.lookup("PreparedStatementBean");
      PreparedStatementRemote bean = home.create("key2", "name2");
      String result = bean.executeStoredProc("callIdentitySQL");
      log.info("callIdentitySQL result="+result);
      bean.remove();
   }
  
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.