Package siena.jdbc

Examples of siena.jdbc.H2PersistenceManager


              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");
              // the DDL type is mysql because in play the DB is H2 in Mysql mode.
              // But the DDLGenerator is wired to h2
              // because longvarchar and CLOB is not managed the same way in H2/MYSQL and real MYSQL
              ddlType = "mysql";
              generator = new DdlGenerator("h2");
View Full Code Here


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

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

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

TOP

Related Classes of siena.jdbc.H2PersistenceManager

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.