Package org.jboss.jbossts.qa.JDBCLocals01Impls

Examples of org.jboss.jbossts.qa.JDBCLocals01Impls.InfoTable


          JDBCProfileStore.databaseUser(profileName);
      String databasePassword = JDBCProfileStore.databasePassword(profileName);
      String databaseDynamicClass = JDBCProfileStore.databaseDynamicClass(profileName);
      int databaseTimeout = JDBCProfileStore.timeout(profileName);

      InfoTable infoTable = null;
      boolean tableTwo = false;

      for (int i = 0; i < args.length; i++)
      {
        if (args[i].equals("-table2"))
        {
          tableTwo = true;
        }
      }

      if (!tableTwo)
      {
        infoTable = new JDBCInfoTableImpl01(databaseURL, databaseUser, databasePassword, databaseDynamicClass, databaseTimeout);
      }
      else
      {
        infoTable = new JDBCInfoTableImpl02(databaseURL, databaseUser, databasePassword, databaseDynamicClass, databaseTimeout);
      }

      boolean correct = true;

      transactionManager = com.arjuna.ats.jta.TransactionManager.transactionManager();

      transactionManager.begin();

      for (int index = 0; index < 10; index++)
      {
        String name = "Name_" + index;
        String value = "Value_" + index;

        try
        {
          infoTable.insert(name, value);
        }
        catch (Exception e)
        {
          correct = false;
          System.err.println("Error in insert : " + e);
          e.printStackTrace(System.err);
        }
      }

      transactionManager.commit();

      transactionManager.begin();

      try
      {
        infoTable.update("Name_4", "Value_6");
      }
      catch (Exception e)
      {
        correct = false;
        System.err.println("Error in update : " + e);
        e.printStackTrace(System.err);
      }

      transactionManager.commit();

      try
      {
        infoTable.update("Name_4", "Value_4");
      }
      catch (Exception e)
      {
        correct = false;
        System.err.println("Error in update : " + e);
        e.printStackTrace(System.err);
      }

      transactionManager.begin();

      for (int index = 0; correct && (index < 10); index++)
      {
        String name = "Name_" + index;
        String value = "Value_" + index;
        String newValue = "";

        try
        {
          newValue = infoTable.select(name);
        }
        catch (Exception e)
        {
        }
View Full Code Here


          JDBCProfileStore.databaseUser(profileName);
      String databasePassword = JDBCProfileStore.databasePassword(profileName);
      String databaseDynamicClass = JDBCProfileStore.databaseDynamicClass(profileName);
      int databaseTimeout = JDBCProfileStore.timeout(profileName);

      InfoTable infoTable = null;
      boolean tableTwo = false;

      for (int i = 0; i < args.length; i++)
      {
        if (args[i].equals("-table2"))
        {
          tableTwo = true;
        }
      }

      if (!tableTwo)
      {
        infoTable = new JDBCInfoTableImpl01(databaseURL, databaseUser, databasePassword, databaseDynamicClass, databaseTimeout);
      }
      else
      {
        infoTable = new JDBCInfoTableImpl02(databaseURL, databaseUser, databasePassword, databaseDynamicClass, databaseTimeout);
      }

      boolean correct = true;

      transactionManager = com.arjuna.ats.jta.TransactionManager.transactionManager();

      transactionManager.begin();

      for (int index = 0; index < 10; index++)
      {
        String name = "Name_" + index;
        String value = "Value_" + index;

        try
        {
          infoTable.insert(name, value);
        }
        catch (Exception e)
        {
          correct = false;
          System.err.println("Error in insert : " + e);
          e.printStackTrace(System.err);
        }
      }

      transactionManager.commit();

      transactionManager.begin();

      try
      {
        infoTable.update("Name_3", "Value_8");
      }
      catch (Exception e)
      {
        correct = false;
        System.err.println("Error in update : " + e);
        e.printStackTrace(System.err);
      }

      transactionManager.rollback();

      transactionManager.begin();

      for (int index = 0; correct && (index < 10); index++)
      {
        String name = "Name_" + index;
        String value = "Value_" + index;
        String newValue = "";

        try
        {
          newValue = infoTable.select(name);
        }
        catch (Exception e)
        {
        }
View Full Code Here

          JDBCProfileStore.databaseUser(profileName);
      String databasePassword = JDBCProfileStore.databasePassword(profileName);
      String databaseDynamicClass = JDBCProfileStore.databaseDynamicClass(profileName);
      int databaseTimeout = JDBCProfileStore.timeout(profileName);

      InfoTable infoTable = null;
      boolean tableTwo = false;

      for (int i = 0; i < args.length; i++)
      {
        if (args[i].equals("-table2"))
        {
          tableTwo = true;
        }
      }

      if (!tableTwo)
      {
        infoTable = new JDBCInfoTableImpl01(databaseURL, databaseUser, databasePassword, databaseDynamicClass, databaseTimeout);
      }
      else
      {
        infoTable = new JDBCInfoTableImpl02(databaseURL, databaseUser, databasePassword, databaseDynamicClass, databaseTimeout);
      }

      boolean correct = true;

      transactionManager = com.arjuna.ats.jta.TransactionManager.transactionManager();

      transactionManager.begin();

      for (int index = 0; index < 10; index++)
      {
        String name = "Name_" + index;
        String value = "Value_" + index;

        try
        {
          infoTable.insert(name, value);
        }
        catch (Exception e)
        {
          correct = false;
          System.err.println("Error in insert : " + e);
          e.printStackTrace(System.err);
        }
      }

      transactionManager.commit();

      infoTable.update("Name_4", "Value_6");

      transactionManager.begin();

      try
      {
        infoTable.update("Name_4", "Value_4");
      }
      catch (Exception e)
      {
        correct = false;
        System.err.println("Error in update : " + e);
        e.printStackTrace(System.err);
      }

      transactionManager.commit();

      transactionManager.begin();

      for (int index = 0; correct && (index < 10); index++)
      {
        String name = "Name_" + index;
        String value = "Value_" + index;
        String newValue = "";

        try
        {
          newValue = infoTable.select(name);
        }
        catch (Exception e)
        {
        }
View Full Code Here

      String databaseUser = JDBCProfileStore.databaseUser(profileName);
      String databasePassword = JDBCProfileStore.databasePassword(profileName);
      String databaseDynamicClass = JDBCProfileStore.databaseDynamicClass(profileName);
      int databaseTimeout = JDBCProfileStore.timeout(profileName);

      InfoTable infoTable = null;
      boolean tableTwo = false;

      for (int i = 0; i < args.length; i++)
      {
        if (args[i].equals("-table2"))
        {
          tableTwo = true;
        }
      }

      if (!tableTwo)
      {
        infoTable = new JDBCInfoTableImpl01(databaseURL, databaseUser, databasePassword, databaseDynamicClass, databaseTimeout);
      }
      else
      {
        infoTable = new JDBCInfoTableImpl02(databaseURL, databaseUser, databasePassword, databaseDynamicClass, databaseTimeout);
      }

      boolean correct = true;

      for (int index = 0; index < 10; index++)
      {
        String name = "Name_" + index;
        String value = "Value_" + index;

        infoTable.insert(name, value);
      }

      for (int index = 0; correct && (index < 10); index++)
      {
        String name = "Name_" + index;
        String value = "Value_" + index;
        String newValue = infoTable.select(name);

        correct = correct && value.equals(newValue);
      }

      if (correct)
View Full Code Here

          JDBCProfileStore.databaseUser(profileName);
      String databasePassword = JDBCProfileStore.databasePassword(profileName);
      String databaseDynamicClass = JDBCProfileStore.databaseDynamicClass(profileName);
      int databaseTimeout = JDBCProfileStore.timeout(profileName);

      InfoTable infoTable = null;
      boolean tableTwo = false;

      for (int i = 0; i < args.length; i++)
      {
        if (args[i].equals("-table2"))
        {
          tableTwo = true;
        }
      }

      if (!tableTwo)
      {
        infoTable = new JDBCInfoTableImpl01(databaseURL, databaseUser, databasePassword, databaseDynamicClass, databaseTimeout);
      }
      else
      {
        infoTable = new JDBCInfoTableImpl02(databaseURL, databaseUser, databasePassword, databaseDynamicClass, databaseTimeout);
      }

      boolean correct = true;

      transactionManager = com.arjuna.ats.jta.TransactionManager.transactionManager();

      transactionManager.begin();

      for (int index = 0; index < 10; index++)
      {
        String name = "Name_" + index;
        String value = "Value_" + index;

        try
        {
          infoTable.insert(name, value);
        }
        catch (Exception e)
        {
          correct = false;
          System.err.println("Error in insert : " + e);
          e.printStackTrace(System.err);
        }

      }

      transactionManager.commit();

      transactionManager.begin();

      for (int index = 0; correct && (index < 10); index++)
      {
        String name = "Name_" + index;
        String value = "Value_" + index;
        String newValue = "";

        try
        {
          newValue = infoTable.select(name);
        }
        catch (Exception e)
        {
        }
View Full Code Here

          JDBCProfileStore.databaseUser(profileName);
      String databasePassword = JDBCProfileStore.databasePassword(profileName);
      String databaseDynamicClass = JDBCProfileStore.databaseDynamicClass(profileName);
      int databaseTimeout = JDBCProfileStore.timeout(profileName);

      InfoTable infoTable = null;
      boolean tableTwo = false;

      for (int i = 0; i < args.length; i++)
      {
        if (args[i].equals("-table2"))
        {
          tableTwo = true;
        }
      }

      if (!tableTwo)
      {
        infoTable = new JDBCInfoTableImpl01(databaseURL, databaseUser, databasePassword, databaseDynamicClass, databaseTimeout);
      }
      else
      {
        infoTable = new JDBCInfoTableImpl02(databaseURL, databaseUser, databasePassword, databaseDynamicClass, databaseTimeout);
      }

      boolean correct = true;

      transactionManager = com.arjuna.ats.jta.TransactionManager.transactionManager();

      transactionManager.begin();

      for (int index = 0; index < 10; index++)
      {
        String name = "Name_" + index;
        String value = "Value_" + index;

        try
        {
          infoTable.insert(name, value);
        }
        catch (Exception e)
        {
          correct = false;
          System.err.println("Error in insert : " + e);
          e.printStackTrace(System.err);
        }
      }

      transactionManager.commit();

      transactionManager.begin();

      try
      {
        infoTable.delete("Name_3");
      }
      catch (Exception e)
      {
        correct = false;
        System.err.println("Error in delete : " + e);
        e.printStackTrace(System.err);
      }

      transactionManager.rollback();

      transactionManager.begin();

      for (int index = 0; correct && (index < 10); index++)
      {
        String name = "Name_" + index;
        String value = "Value_" + index;
        String newValue = "";

        try
        {
          newValue = infoTable.select(name);
        }
        catch (Exception e)
        {
        }
View Full Code Here

TOP

Related Classes of org.jboss.jbossts.qa.JDBCLocals01Impls.InfoTable

Copyright © 2018 www.massapicom. 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.