Package org.apache.empire.db.mysql

Examples of org.apache.empire.db.mysql.DBDatabaseDriverMySQL


     */
    private static DBDatabaseDriver getDatabaseDriver(String provider)
    {
        if (provider.equalsIgnoreCase("mysql"))
        {
            DBDatabaseDriverMySQL driver = new DBDatabaseDriverMySQL();
            // Set Driver specific properties (if any)
            driver.setDatabaseName(config.getSchemaName());
            return driver;
        }
        else if (provider.equalsIgnoreCase("oracle"))
        {
            DBDatabaseDriverOracle driver = new DBDatabaseDriverOracle();
            // Set Driver specific properties (if any)
            return driver;
        }
        else if (provider.equalsIgnoreCase("sqlserver"))
        {
            DBDatabaseDriverMSSQL driver = new DBDatabaseDriverMSSQL();
            // Set Driver specific properties (if any)
            driver.setDatabaseName(config.getSchemaName());
            return driver;
        }
        else if (provider.equalsIgnoreCase("hsqldb"))
        {
            DBDatabaseDriverHSql driver = new DBDatabaseDriverHSql();
            // Set Driver specific properties (if any)
            return driver;
        }
        else if (provider.equalsIgnoreCase("postgresql"))
        {
            DBDatabaseDriverPostgreSQL driver = new DBDatabaseDriverPostgreSQL();
            // Set Driver specific properties (if any)
            driver.setDatabaseName(config.getSchemaName());
            return driver;
        }
        else if (provider.equalsIgnoreCase("h2"))
        {
            DBDatabaseDriverH2 driver = new DBDatabaseDriverH2();
            // Set Driver specific properties (if any)
            driver.setDatabaseName(config.getSchemaName());
            return driver;
        }
        else if (provider.equalsIgnoreCase("derby"))
        {
            DBDatabaseDriverDerby driver = new DBDatabaseDriverDerby();
            // Set Driver specific properties (if any)
            driver.setDatabaseName(config.getSchemaName());
            return driver;
        }
        else
        {   // Unknown Provider
            throw new RuntimeException("Unknown Database Provider " + provider);
View Full Code Here


   */
  private DBDatabaseDriver getDatabaseDriver(String provider)
    {
        if (provider.equalsIgnoreCase("mysql"))
        {
            DBDatabaseDriverMySQL driver = new DBDatabaseDriverMySQL();
            // Set Driver specific properties (if any)
            driver.setDatabaseName(config.getSchemaName());
            return driver;
        }
        else if (provider.equalsIgnoreCase("oracle"))
        {
            DBDatabaseDriverOracle driver = new DBDatabaseDriverOracle();
            // Set Driver specific properties (if any)
            return driver;
        }
        else if (provider.equalsIgnoreCase("sqlserver"))
        {
            DBDatabaseDriverMSSQL driver = new DBDatabaseDriverMSSQL();
            // Set Driver specific properties (if any)
            driver.setDatabaseName(config.getSchemaName());
            return driver;
        }
        else if (provider.equalsIgnoreCase("hsqldb"))
        {
            DBDatabaseDriverHSql driver = new DBDatabaseDriverHSql();
View Full Code Here

  /*
   * getDatabaseDriver
   */
  private DBDatabaseDriver getDatabaseDriver(String provider) {
    if (provider.equalsIgnoreCase("mysql")) {
      DBDatabaseDriverMySQL driver = new DBDatabaseDriverMySQL();
      // Set Driver specific properties (if any)
      driver.setDatabaseName(config.getSchemaName());
      return driver;
    } else if (provider.equalsIgnoreCase("oracle")) {
      DBDatabaseDriverOracle driver = new DBDatabaseDriverOracle();
      // Set Driver specific properties (if any)
      return driver;
    } else if (provider.equalsIgnoreCase("sqlserver")) {
      DBDatabaseDriverMSSQL driver = new DBDatabaseDriverMSSQL();
      // Set Driver specific properties (if any)
      driver.setDatabaseName(config.getSchemaName());
      return driver;
    } else if (provider.equalsIgnoreCase("hsqldb")) {
      DBDatabaseDriverHSql driver = new DBDatabaseDriverHSql();
      // Set Driver specific properties (if any)
      return driver;
View Full Code Here

  /*
   * getDatabaseDriver
   */
  private DBDatabaseDriver getDatabaseDriver(String provider) {
    if (provider.equalsIgnoreCase("mysql")) {
      DBDatabaseDriverMySQL driver = new DBDatabaseDriverMySQL();
      // Set Driver specific properties (if any)
      driver.setDatabaseName(config.getSchemaName());
      return driver;
    } else if (provider.equalsIgnoreCase("oracle")) {
      DBDatabaseDriverOracle driver = new DBDatabaseDriverOracle();
      // Set Driver specific properties (if any)
      return driver;
    } else if (provider.equalsIgnoreCase("sqlserver")) {
      DBDatabaseDriverMSSQL driver = new DBDatabaseDriverMSSQL();
      // Set Driver specific properties (if any)
      driver.setDatabaseName(config.getSchemaName());
      return driver;
    } else if (provider.equalsIgnoreCase("hsqldb")) {
      DBDatabaseDriverHSql driver = new DBDatabaseDriverHSql();
      // Set Driver specific properties (if any)
      return driver;
View Full Code Here

TOP

Related Classes of org.apache.empire.db.mysql.DBDatabaseDriverMySQL

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.