Package org.molgenis.framework.db

Examples of org.molgenis.framework.db.EntitiesImporter


      try
      {
        CsvReader csvReader = new CsvReader(new StringReader(request.getString("__csvdata")));
        String entityName = this.getFormScreen().getEntityClass().getSimpleName();

        EntitiesImporter entitiesImporter = this.getFormScreen().getCsvEntityImporter();
        entitiesImporter.setDatabase(db);

        EntityImportReport importReport = null;
        try
        {
          importReport = entitiesImporter.importEntities(csvReader, entityName, DatabaseAction.ADD);
        }
        finally
        {
          csvReader.close();
        }
View Full Code Here


        String entityName = this.getFormScreen().getEntityClass().getSimpleName();

        EntityImportReport importReport = null;
        try
        {
          EntitiesImporter entityImporter = this.getFormScreen().getCsvEntityImporter();
          entityImporter.setDatabase(db);
          importReport = entityImporter.importEntities(csvReader, entityName, DatabaseAction.ADD);
        }
        finally
        {
          csvReader.close();
        }
View Full Code Here

TOP

Related Classes of org.molgenis.framework.db.EntitiesImporter

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.