Package org.molgenis.generators

Examples of org.molgenis.generators.DataTypeGen


    {
      if (options.mapper_implementation.equals(MapperImplementation.JPA))
      {
        System.out.println("--------------JPAGEN--------------");
        generators.add(new JpaDatabaseGen());
        generators.add(new DataTypeGen());
        generators.add(new JpaMapperGen());
        generators.add(new JDBCMetaDatabaseGen());

        if (options.generate_persistence)
        {
          generators.add(new PersistenceGen());
        }
      }
      else
      {
        // DATABASE
        // mysql.org
        if (options.db_driver.equals("com.mysql.jdbc.Driver"))
        {
          generators.add(new MySqlCreateSubclassPerTableGen());
          generators.add(new MySqlAlterSubclassPerTableGen());
          // use multiquery optimization
          if (options.mapper_implementation.equals(MapperImplementation.MULTIQUERY))
          {
            generators.add(new JDBCDatabaseGen());
            generators.add(new DataTypeGen());
            generators.add(new MultiqueryMapperGen());
          }
          else if (options.mapper_implementation.equals(MapperImplementation.PREPARED_STATEMENT))
          {
            generators.add(new JDBCDatabaseGen());
            generators.add(new DataTypeGen());
            generators.add(new PStatementMapperGen());
          }
        } // hsqldb.org
        else if (options.db_driver.equals("oracle.jdbc.driver.OracleDriver"))
        {
          generators.add(new OracleCreateSubclassPerTableGen());
          generators.add(new JDBCDatabaseGen());
          generators.add(new DataTypeGen());
          generators.add(new PStatementMapperGen());
        }
        else if (options.db_driver.equals("org.hsqldb.jdbcDriver"))
        {
          logger.info("HsqlDB generators ....");
          generators.add(new JDBCDatabaseGen());
          generators.add(new DataTypeGen());
          generators.add(new HSqlCreateSubclassPerTableGen());
          generators.add(new PStatementMapperGen());
        } // postgresql
        else if (options.db_driver.equals("org.postgresql.Driver"))
        {
View Full Code Here


    // generate model entities
    List<Entity> entityList = MODEL.getEntities();
    entityList = MolgenisModel.sortEntitiesByDependency(entityList, MODEL);

    DataTypeGen entityGenerator = new DataTypeGen();
    entityGenerator.generate(MODEL, MODEL_OPTIONS);
    LOG.debug("generated model entities");

    // compile model entities
    List<String> compileList = new ArrayList<String>(entityList.size());
    char sep = File.separatorChar;
View Full Code Here

TOP

Related Classes of org.molgenis.generators.DataTypeGen

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.