Examples of DBUtil


Examples of org.apache.airavata.common.utils.DBUtil

        try {
          String url = RegistrySettings.getSetting("registry.jdbc.url");
          String driver = RegistrySettings.getSetting("registry.jdbc.driver");
          String username = RegistrySettings.getSetting("registry.jdbc.user");
          String password = RegistrySettings.getSetting("registry.jdbc.password");
          DBUtil dbConnector = new DBUtil(url,username,password,driver);
            return dbConnector;
        } catch (InstantiationException e) {
          logger.error("Error while accesing registrty settings ", e);
          throw new RegException("Error while accesing registrty settings ", e);
        } catch (IllegalAccessException e) {
View Full Code Here

Examples of org.apache.airavata.common.utils.DBUtil

    private static ConfigurationReader configurationReader;

    public void init() throws ServletException {

        DBUtil dbUtil;

        try {
            dbUtil = DBUtil.getCredentialStoreDBUtil();
        } catch (Exception e) {
            throw new ServletException("Error initializing database operations.", e);
View Full Code Here

Examples of org.apache.airavata.common.utils.DBUtil

        try {
          String url = RegistrySettings.getSetting("registry.jdbc.url");
          String driver = RegistrySettings.getSetting("registry.jdbc.driver");
          String username = RegistrySettings.getSetting("registry.jdbc.user");
          String password = RegistrySettings.getSetting("registry.jdbc.password");
          DBUtil dbConnector = new DBUtil(url,username,password,driver);
            return dbConnector;
        } catch (InstantiationException e) {
          logger.error("Error while accesing registrty settings ", e);
          throw new RegistryException("Error while accesing registrty settings ", e);
        } catch (IllegalAccessException e) {
View Full Code Here

Examples of org.apache.airavata.common.utils.DBUtil

    }

    @Before
    public void setUp() throws Exception {

        DBUtil dbUtil = new DBUtil(getJDBCUrl(), getUserName(), getPassword(), getDriver());

        localUserStore = new LocalUserStore(dbUtil);
    }
View Full Code Here

Examples of org.apache.airavata.common.utils.DBUtil

    public LocalUserStore(ServletContext servletContext) throws Exception {
        // Properties properties = WebAppUtil.getAiravataProperties(servletContext);

        hashMethod = RegistrySettings.getSetting("default.registry.password.hash.method");

        dbUtil = new DBUtil(RegistrySettings.getSetting("registry.jdbc.url"),
                RegistrySettings.getSetting("registry.jdbc.user"),
                RegistrySettings.getSetting("registry.jdbc.password"),
                RegistrySettings.getSetting("registry.jdbc.driver"));

    }
View Full Code Here

Examples of org.apache.airavata.common.utils.DBUtil


        String jdbcUrl = getJDBCUrl(host, port, userName, password);

        // Create the dbutil class
        dbUtil = new DBUtil(jdbcUrl,
                userName,
                password,
                driver);

        if (!databaseStarted) {
View Full Code Here

Examples of org.apache.airavata.common.utils.DBUtil

                .append("/persistent_data;create=true;user=").append(user).append(";password=")
                .append(password).toString();
    }

    private static void waitTillServerStarts(String jdbcUrl, String userName, String password, String driver) {
        DBUtil dbUtil = null;

        try {
            dbUtil = new DBUtil(jdbcUrl, userName, password, driver);
        } catch (Exception e) {
            // ignore
        }

        Connection connection = null;
        try {
            if (dbUtil != null) {
                connection = dbUtil.getConnection();
            }
        } catch (Throwable e) {
            // ignore
        }

        while (connection == null) {
            try {
                Thread.sleep(1000);
                try {
                    if (dbUtil != null) {
                        connection = dbUtil.getConnection();
                    }
                } catch (SQLException e) {
                    // ignore
                }
            } catch (InterruptedException e) {
View Full Code Here

Examples of org.apache.derbyTesting.system.nstest.utils.DbUtil

  private DbUtil dbutil;

  public Initializer(String name) {
    this.thread_id = name;
    dbutil = new DbUtil(this.thread_id);
  }
View Full Code Here

Examples of org.apache.derbyTesting.system.nstest.utils.DbUtil

  // messages
  //
  // *******************************************************************************
  public TesterObject(String name) {
    this.thread_id = name;
    dbutil = new DbUtil(getThread_id());
    NsTest.logger.println("==========> " + getThread_id()
        + " THREAD starting <======");
  }
View Full Code Here

Examples of org.apache.derbyTesting.system.nstest.utils.DbUtil

  // messages
  //
  // *******************************************************************************
  public TesterObject(String name) {
    this.thread_id = name;
    dbutil = new DbUtil(getThread_id());
    System.out.println("==========> " + getThread_id()
        + " THREAD starting <======");
  }
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.