Examples of findById()


Examples of org.formulacompiler.spreadsheet.internal.excel.xlsx.loader.RelationshipParser.findById()

      final int sheetsContext = getContext();
      while ((se = find( XMLConstants.Main.SHEET, sheetsContext )) != null) {
        final Attribute sheetRelationshipId = se.getAttributeByName( XMLConstants.DocumentRelationships.ID );

        final WorksheetParser parser = new WorksheetParser( this.loader,
            relationships.findById( sheetRelationshipId.getValue() ), this.stylesheet );
        try {
          parser.parse();
        }
        finally {
          parser.close();
View Full Code Here

Examples of org.openbp.server.persistence.PersistenceContext.findById()

      {
        String msg = LogUtil.error(PersistenceContextObjectSerializer.class, "Error obtaining persistence context for deserialization of a persistent object of type $0 (id: $1, variable: $2). [{3}]", cls.getName(), id, key, context);
        throw new EngineException("ContextDeserialization", msg);
      }

      Object loaded = pc.findById(id, cls);
      if (loaded == null)
      {
        String msg = LogUtil.error(PersistenceContextObjectSerializer.class, "Persistent object of type $0 not found when deserializing token (id: $1, variable: $2). [{3}]", cls.getName(), id, key, context);
        throw new EngineException("ContextDeserialization", msg);
      }
View Full Code Here

Examples of org.projectforge.fibu.kost.reporting.ReportStorage.findById()

  {
    List<BuchungssatzDO> list = null;
    if (StringUtils.isNotEmpty(reportId) == true) {
      final ReportStorage reportStorage = (ReportStorage) getUserPrefEntry(ReportObjectivesPage.KEY_REPORT_STORAGE);
      if (reportStorage != null) {
        report = reportStorage.findById(this.reportId);
        if (report != null) {
          if (this.businessAssessmentRowId != null) {
            final BusinessAssessmentRow row = report.getBusinessAssessment().getRow(businessAssessmentRowId);
            if (row != null) {
              list = row.getAccountRecords();
View Full Code Here

Examples of org.projectforge.gantt.GanttTask.findById()

    }
    final GanttTask root = ganttChartData.getRootObject();
    if (root == null) {
      return null;
    }
    return root.findById(id);
  }

  private GanttTask getIndexedGanttObject(final String property)
  {
    final Integer id = NumberHelper.parseInteger(property.substring(property.indexOf(':') + 1));
View Full Code Here

Examples of org.rhq.enterprise.server.plugins.drift.mongodb.dao.FileDAO.findById()

        changeSetDAO.save(changeSet);
       
        driftServer.purgeOrphanedContent();

        FileDAO fileDAO = new FileDAO(ds.getDB());
        assertNull(fileDAO.findById(file2.getName()), "Expected unreferenced file to be deleted");
        assertNotNull(fileDAO.findById(file1.getName()), "Referenced file should not be deleted");
    }
   
    @Test
    public void findChangeSetsByCriteriaAndDoNotFetchDrifts() throws Exception {
View Full Code Here

Examples of org.rhq.enterprise.server.plugins.drift.mongodb.dao.FileDAO.findById()

       
        driftServer.purgeOrphanedContent();

        FileDAO fileDAO = new FileDAO(ds.getDB());
        assertNull(fileDAO.findById(file2.getName()), "Expected unreferenced file to be deleted");
        assertNotNull(fileDAO.findById(file1.getName()), "Referenced file should not be deleted");
    }
   
    @Test
    public void findChangeSetsByCriteriaAndDoNotFetchDrifts() throws Exception {
        String driftDefName = "testdef";
View Full Code Here

Examples of org.sete.enterprise.dao.common.UserDao.findById()

    ((ScienceProjectServiceImpl) service).setUserDao(userDaoMock);
    ((ScienceProjectServiceImpl) service).setProjectDao(spDaoMock);

    // mock the dao's
    expect(userDaoMock.findById(studentBId)).andReturn(studentB);
    replay(userDaoMock);

    expect(spDaoMock.findBy(studentB)).andReturn(null);
    replay(spDaoMock);
View Full Code Here

Examples of org.simplecart.dao.InternetProductOptionDAO.findById()

        // get a DAO for the new Stake
        InternetProductOptionDAO optionDAO = new InternetProductOptionDAO();
       
        while (cartItems.hasNext()) {
            currentItem = (ShopcartItem) cartItems.next();
            currentOption = optionDAO.findById(currentItem.getOptionId(),false);
            currentLineItem =
              new SalesOrderLineItem(
                    currentItem.getAmount(),
                    currentItem.getPrice(),
                    currentItem.getComment(),
View Full Code Here

Examples of org.socialmusicdiscovery.server.business.repository.config.ConfigurationParameterRepository.findById()

     * @inheritDoc
     */
    @Override
    public ConfigurationParameterEntity getParameter(String id) {
        ConfigurationParameterRepository configurationParameterRepository = InjectHelper.instance(ConfigurationParameterRepository.class);
        return configurationParameterRepository.findById(id);
    }
}
View Full Code Here

Examples of org.sonar.api.rules.RuleFinder.findById()

  @Test
  public void shouldCacheFindById() {
    setupData("shared");
    RuleFinder finder = new CacheRuleFinder(getSessionFactory());
    assertThat(finder.findById(3).getConfigKey(), is("Checker/Treewalker/AnnotationUseStyleCheck"));

    deleteRules();

    assertThat(finder.findById(3), notNullValue());
  }
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.