Package siena.jdbc

Examples of siena.jdbc.PostgresqlPersistenceManager


            final String dbUrl = Play.configuration.getProperty("db.url");
            if((db==null || db=="" ) && (dbUrl == null || dbUrl == "")){
              throw new UnexpectedException("SienaPlugin : not using GAE requires at least a db config");
            }
            if(dbType.contains("postgresql")){
              persistenceManager = new PostgresqlPersistenceManager(new PlayConnectionManager(), null);
              ddlType = "postgresql";
              generator = new DdlGenerator("postgresql");
            }else if(dbType.contains("h2")){
              // the H2 dbMode in Play is "mysql"
              persistenceManager = new H2PersistenceManager(new PlayConnectionManager(), null, "mysql");
View Full Code Here


      // this will perform the database changes
      platform.alterTables(connection, database, true);
 
      connection.close();
     
      pm = new PostgresqlPersistenceManager();
      pm.init(p);
    }
    return pm;
  }
View Full Code Here

      // this will perform the database changes
      platform.alterTables(connection, database, true);
 
      connection.close();
     
      pm = new PostgresqlPersistenceManager();
      pm.init(p);
    }
    return pm;
  }
View Full Code Here

      // this will perform the database changes
      platform.alterTables(connection, database, true);
 
      connection.close();
     
      pm = new PostgresqlPersistenceManager();
      pm.init(p);
    }
    return pm;
  }
View Full Code Here

TOP

Related Classes of siena.jdbc.PostgresqlPersistenceManager

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.