@Test public void testDeleteNominalLabel() { try { entityManager.getTransaction().begin(); Integer result = nominalLabelResourceFacadeImp.deleteNominalLabel(nominalLabel); entityManager.getTransaction().commit(); assertEquals(Integer.valueOf(1), result); nominalLabel=null; } catch (PropertyNotSetException e) { logger.error("PropertyNotSetException while deleting nominal label "+e.getMessage()); fail("testDeleteNominalLabel failed"); } }
@Override public Integer deleteNominalLabel(NominalLabelDTO nominalLabel) throws PropertyNotSetException { if (nominalLabel != null) { NominalLabel managed = em.merge(nominalLabel.toEntity()); em.remove(managed); return 1; } return 0; }
NominalLabelResourceFacadeImp extends CoreDBServiceFacadeImp<NominalLabel, Long> implements NominalLabelResourceFacade { @Override public Integer deleteNominalLabel(NominalLabelDTO nominalLabel) throws PropertyNotSetException { if (nominalLabel != null) { NominalLabel managed = em.merge(nominalLabel.toEntity()); em.remove(managed); return 1; } return 0; } }
NominalLabelResourceFacadeImp extends CoreDBServiceFacadeImp<NominalLabel, Long> implements NominalLabelResourceFacade { @Override public Integer deleteNominalLabel(NominalLabelDTO nominalLabel) throws PropertyNotSetException { if (nominalLabel != null) { NominalLabel managed = em.merge(nominalLabel.toEntity()); em.remove(managed); return 1; } return 0; } protected  NominalLabelResourceFacadeImp(); }
NominalLabelResourceFacadeImp extends CoreDBServiceFacadeImp<NominalLabel, Long> implements NominalLabelResourceFacade { @Override public Integer deleteNominalLabel(NominalLabelDTO nominalLabel) throws PropertyNotSetException { if (nominalLabel != null) { NominalLabel managed = em.merge(nominalLabel.toEntity()); em.remove(managed); return 1; } return 0; } 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 Integer deleteNominalLabel(NominalLabelDTO nominalLabel) throws PropertyNotSetException { if (nominalLabel != null) { NominalLabel managed = em.merge(nominalLabel.toEntity()); em.remove(managed); return 1; } return 0; } 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);  }