@Test public void testGetAllNominalLabels() { try { entityManager.getTransaction().begin(); List<NominalLabelDTO> result = nominalLabelResourceFacadeImp.getAllNominalLabels(); entityManager.getTransaction().commit(); assertTrue(result.size()>=1); } catch (PropertyNotSetException e) { logger.error("PropertyNotSetException while fetching all nominal labels "+e.getMessage()); fail("testGetAllNominalLabels failed"); } }
@Override public List<NominalLabelDTO> getAllNominalLabels() throws PropertyNotSetException { List<NominalLabelDTO> dtoList = new ArrayList<NominalLabelDTO>(); List<NominalLabel> list = this.getAll(); if (list != null && !list.isEmpty()) { for (NominalLabel nb: list) { dtoList.add(new NominalLabelDTO(nb)); } } return dtoList; }
NominalLabelResourceFacadeImp extends CoreDBServiceFacadeImp<NominalLabel, Long> implements NominalLabelResourceFacade { @Override public List<NominalLabelDTO> getAllNominalLabels() throws PropertyNotSetException { List<NominalLabelDTO> dtoList = new ArrayList<NominalLabelDTO>(); List<NominalLabel> list = this.getAll(); if (list != null && !list.isEmpty()) { for (NominalLabel nb: list) { dtoList.add(new NominalLabelDTO(nb)); } } return dtoList; } }
NominalLabelResourceFacadeImp extends CoreDBServiceFacadeImp<NominalLabel, Long> implements NominalLabelResourceFacade { @Override public List<NominalLabelDTO> getAllNominalLabels() throws PropertyNotSetException { List<NominalLabelDTO> dtoList = new ArrayList<NominalLabelDTO>(); List<NominalLabel> list = this.getAll(); if (list != null && !list.isEmpty()) { for (NominalLabel nb: list) { dtoList.add(new NominalLabelDTO(nb)); } } return dtoList; } protected  NominalLabelResourceFacadeImp(); }
NominalLabelResourceFacadeImp extends CoreDBServiceFacadeImp<NominalLabel, Long> implements NominalLabelResourceFacade { @Override public List<NominalLabelDTO> getAllNominalLabels() throws PropertyNotSetException { List<NominalLabelDTO> dtoList = new ArrayList<NominalLabelDTO>(); List<NominalLabel> list = this.getAll(); if (list != null && !list.isEmpty()) { for (NominalLabel nb: list) { dtoList.add(new NominalLabelDTO(nb)); } } return dtoList; } protected  NominalLabelResourceFacadeImp(); @Override void saveNominalLabel(NominalLabelDTO nominalLabel); @Override NominalLabelDTO addNominalLabel(NominalLabelDTO nominalLabel); @Override NominalLabelDTO editNominalLabel(NominalLabelDTO nominalLabel); @Override Integer deleteNominalLabel(NominalLabelDTO nominalLabel); @Override Integer deleteNominalLabelByID(Long nominalLabelID); @Override NominalLabelDTO getNominalLabelByID(Long nominalLabelID); @Override NominalLabelDTO getNominalLabelWithAllFieldsByID(Long nominalLabelID); @Override NominalLabelDTO getNominalLabelByCode(String code); @Override NominalLabelDTO getNominalLabelWithAllFieldsByCode(String code); @Override List<NominalLabelDTO> getAllNominalLabels(); @Override Boolean isNominalLabelExists(Long nominalLabelID); @Override Boolean isNominalLabelExists(String code); @Override List<NominalLabelDTO> getNominalLabelByAttributeID(Long attributeID); @Override List<Long> getNominalLabelIdsByAttributeID(Long attributeID); @Override Long getNominalLabelCountForCollectionID(Long collectionId); }
NominalLabelResourceFacadeImp extends CoreDBServiceFacadeImp<NominalLabel, Long> implements NominalLabelResourceFacade { @Override public List<NominalLabelDTO> getAllNominalLabels() throws PropertyNotSetException { List<NominalLabelDTO> dtoList = new ArrayList<NominalLabelDTO>(); List<NominalLabel> list = this.getAll(); if (list != null && !list.isEmpty()) { for (NominalLabel nb: list) { dtoList.add(new NominalLabelDTO(nb)); } } return dtoList; } protected  NominalLabelResourceFacadeImp(); @Override void saveNominalLabel(NominalLabelDTO nominalLabel); @Override NominalLabelDTO addNominalLabel(NominalLabelDTO nominalLabel); @Override NominalLabelDTO editNominalLabel(NominalLabelDTO nominalLabel); @Override Integer deleteNominalLabel(NominalLabelDTO nominalLabel); @Override Integer deleteNominalLabelByID(Long nominalLabelID); @Override NominalLabelDTO getNominalLabelByID(Long nominalLabelID); @Override NominalLabelDTO getNominalLabelWithAllFieldsByID(Long nominalLabelID); @Override NominalLabelDTO getNominalLabelByCode(String code); @Override NominalLabelDTO getNominalLabelWithAllFieldsByCode(String code); @Override List<NominalLabelDTO> getAllNominalLabels(); @Override Boolean isNominalLabelExists(Long nominalLabelID); @Override Boolean isNominalLabelExists(String code); @Override List<NominalLabelDTO> getNominalLabelByAttributeID(Long attributeID); @Override List<Long> getNominalLabelIdsByAttributeID(Long attributeID); @Override Long getNominalLabelCountForCollectionID(Long collectionId);  }