Examples of loadData()


Examples of com.haulmont.yarg.loaders.impl.SqlDataLoader.loadData()

            params.put("login", Arrays.asList("login1", "login2"));
            SqlDataLoader sqlDataLoader = new SqlDataLoader(testDatabase.getDs());
            BandData rootBand = new BandData("band1", null, BandOrientation.HORIZONTAL);
            rootBand.setData(Collections.<String, Object>emptyMap());

            List<Map<String, Object>> result = sqlDataLoader.loadData(
                    new ReportQueryImpl("", "select login, password from user where login in ${login}", "sql", null, null), rootBand, params);
            printResult(result);
            Assert.assertEquals(2, result.size());
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

Examples of com.winvector.db.TableControl.loadData()

      final TableControl tableControl = new TableControl(p,"TESTTABLE");
      tableControl.scanForDefs(sourceName,source, null);
      tableControl.buildSQLStatements();
      tableControl.createTable(dbhandle);
      final Date now = new Date();
      final long nInserted = tableControl.loadData(sourceName,now,new Random(),source, null, dbhandle);
      assertEquals(1,nInserted);
      final Statement stmt = dbhandle.conn.createStatement();
      final DBIterable it = new DBIterable(stmt,"SELECT * FROM TESTTABLE");
      long n = 0;
      for(final BurstMap row: it) {
View Full Code Here

Examples of hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin.loadData()

    for(int i=versionNumber+1; i<getCurrentScmSyncConfigurationVersionNumber()+1; i++){
      pojo = MIGRATORS[i].migrate(pojo);
    }
   
    // Populating latest POJO information into ScmSyncConfigurationPlugin
    plugin.loadData(pojo);
   
    return plugin;
  }
}
View Full Code Here

Examples of it.eng.spagobi.tools.dataset.bo.IDataSet.loadData()

      jsonResponse = new JSONObject();
     
      // get data
      dataSet.setParamsMap(new HashMap());
      dataSet.setUserProfileAttributes(UserProfileUtils.getProfileAttributes( getUserProfile() ));
      dataSet.loadData();
      dataStore = dataSet.getDataStore();
      Object resultNumber = dataStore.getMetaData().getProperty("resultNumber");
      if(resultNumber == null) dataStore.getMetaData().setProperty("resultNumber", new Integer(0));
     
      JSONDataWriter dataStoreWriter = new JSONDataWriter();
View Full Code Here

Examples of it.eng.spagobi.tools.dataset.bo.JDBCDataSet.loadData()

        logger.debug("Executable query for user [" + userProfile.getUserId() + "] (SQL): [" + inlineSQLQuery + "]");
        auditlogger.info("[" + userProfile.getUserId() + "]:: SQL: " + inlineSQLQuery);
        JDBCDataSet dataSet = new JDBCDataSet();
        dataSet.setDataSource(dataSource);
        dataSet.setQuery(inlineSQLQuery);
        dataSet.loadData();
        dataStore = (DataStore) dataSet.getDataStore();
      } else {
        logger.debug("Using temporary table strategy....");
   
        logger.debug("Temporary table definition for user [" + userProfile.getUserId() + "] (SQL): [" + sqlQuery + "]");
View Full Code Here

Examples of org.apache.forrest.forrestbot.webapp.util.Project.loadData()

      return mapping.findForward(Constants.FORWARD_NAME_SUCCESS);
    }
   
    Project p = new Project();
    p.asDTO().setName(project);
    p.loadData();
    p.loadSecurity((String) request.getSession(true).getAttribute("username"));
    if (p.asDTO().getStatus() == Constants.STATUS_RUNNING) {
      log.warn("can't execute " + project + " while still running");
      errors.add("execute", new ActionError("error.project.stillrunning", project));
      saveErrors(request, errors);
View Full Code Here

Examples of org.aperteworkflow.editor.ui.permission.PermissionEditor.loadData()

                        Set<Permission> newPermissions = new LinkedHashSet<Permission>(widget.getPermissions());
                        newPermissions.remove(permission);
                        widget.setPermissions(new ArrayList<Permission>(newPermissions));
                    }
                });
                permissionEditor.loadData();
                ts.addTab(permissionEditor, messages.getMessage("form.permissions"));

            }
            layout.addComponent(ts);
    }
View Full Code Here

Examples of org.bukkit.entity.Player.loadData()

                    if (playername.trim().equalsIgnoreCase(player)) {
                        final net.minecraft.server.v1_5_R3.MinecraftServer server = ((org.bukkit.craftbukkit.v1_5_R3.CraftServer) CommandsEX.plugin.getServer()).getServer();
                        final net.minecraft.server.v1_5_R3.EntityPlayer entity = new net.minecraft.server.v1_5_R3.EntityPlayer(server, server.getWorldServer(0), playername, new net.minecraft.server.v1_5_R3.PlayerInteractManager(server.getWorldServer(0)));
                        player2 = (entity == null) ? null : (Player) entity.getBukkitEntity();
                        if (player2 != null) {
                            player2.loadData();
                        } else {
                            return null;
                        }
                    }
                }
View Full Code Here

Examples of org.ejbca.config.GlobalConfiguration.loadData()

   * Method that returns the global configuration and updates it if necessary.
   */
  @Transient
  public GlobalConfiguration getGlobalConfiguration(){
    GlobalConfiguration returnval = new GlobalConfiguration();
    returnval.loadData(getData());
    return returnval;
  }

  /**
   * Method that saves the global configuration to database.
View Full Code Here

Examples of org.ejbca.core.model.ca.certificateprofiles.CertificateProfile.loadData()

                                        }catch(EndEntityProfileExistsException eepee){ 
                                          getLogger().error("Error adding entity profile '"+profilename+"' to database.");
                                        }                                       
                                    } else {
                                        cprofile = new CertificateProfile();
                                        cprofile.loadData(decoder.readObject());
                                        // Make sure CAs in profile exist
                                        Collection<Integer> cas = cprofile.getAvailableCAs();
                                        ArrayList<Integer> casToRemove = new ArrayList<Integer>();
                                        for (Integer currentCA : cas) {
                                          if (currentCA != CertificateProfile.ANYCA && ejb.getCAAdminSession().getCAInfo(getAdmin(), currentCA) == null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.