Package org.apache.empire.db.hsql

Examples of org.apache.empire.db.hsql.DBDatabaseDriverHSql


            driver.setDatabaseName(schema);
            return driver;
        }
        else if (isClass(DBDatabaseDriverHSql.class, driverclass))
        {
            DBDatabaseDriverHSql driver = new DBDatabaseDriverHSql();
            // Set Driver specific properties (if any)
            return driver;
        }
        else if (isClass(DBDatabaseDriverPostgreSQL.class, driverclass))
        {
            DBDatabaseDriverPostgreSQL driver = new DBDatabaseDriverPostgreSQL();
            // Set Driver specific properties (if any)
            driver.setDatabaseName(schema);
            // Create the reverse function that is needed by this sample
            Connection conn = getConnection();
            driver.createReverseFunction(conn);
            releaseConnection(conn);
            return driver;
        }
        else if (isClass(DBDatabaseDriverH2.class, driverclass))
        {
            DBDatabaseDriverH2 driver = new DBDatabaseDriverH2();
            // Set Driver specific properties (if any)
            driver.setDatabaseName(schema);
            return driver;
        }
        else if (isClass(DBDatabaseDriverDerby.class, driverclass))
        {
            DBDatabaseDriverDerby driver = new DBDatabaseDriverDerby();
            // Set Driver specific properties (if any)
            driver.setDatabaseName(schema);
            return driver;
        }
        else
        {   // Unknown Provider
            throw new RuntimeException("Unknown Database Driver " + driverclass);
View Full Code Here


  public void useGeneratedCode() throws Exception {

    MyDB db = MyDB.get();
    EMPLOYEES EMP = db.EMPLOYEES;

    DBDatabaseDriver driver = new DBDatabaseDriverHSql();
    db.open(driver, conn);
    DBCommand cmd = db.createCommand();
    cmd.select(EMP.EMPLOYEE_ID, EMP.FIRSTNAME);

    int rowCount = 0;
View Full Code Here

            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

            driver.setDatabaseName(config.getSchemaName());
            return driver;
        }
        else if (provider.equalsIgnoreCase("hsqldb"))
        {
            DBDatabaseDriverHSql driver = new DBDatabaseDriverHSql();
            // Set Driver specific properties (if any)
            return driver;
        }
        else
        {   // Unknown Provider
View Full Code Here

      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 { // Unknown Provider
      throw new RuntimeException("Unknown Database Provider " + provider);
    }
View Full Code Here

      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 { // Unknown Provider
      throw new RuntimeException("Unknown Database Provider " + provider);
    }
View Full Code Here

TOP

Related Classes of org.apache.empire.db.hsql.DBDatabaseDriverHSql

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.