Package marauroa.server.db.adapter

Examples of marauroa.server.db.adapter.MySQLDatabaseAdapter


    public DatabaseAdapter create() {
    try {
      Configuration configuration = Configuration.getConfiguration();
      String adapter = configuration.get("database_adapter");
      if (adapter == null) {
        return new MySQLDatabaseAdapter(connInfo);
      }
      Class<DatabaseAdapter> clazz= (Class<DatabaseAdapter>) Class.forName(adapter);
      Constructor<DatabaseAdapter> ctor = clazz.getConstructor(Properties.class);
      return ctor.newInstance(connInfo);
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of marauroa.server.db.adapter.MySQLDatabaseAdapter

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.