@Test public void testIsDocumentExists_Long() throws Exception { boolean result = documentNominalLabelResourceFacadeImp .isDocumentExists(documentNominalLabel.getIdDTO()); assertEquals(true, result); boolean result2 = documentNominalLabelResourceFacadeImp .isDocumentExists(documentNominalLabel.getIdDTO() .getDocumentId()); assertEquals(true, result2); }
@Override public boolean isDocumentExists(DocumentNominalLabelIdDTO id) throws PropertyNotSetException { List<DocumentNominalLabelDTO> docList = findByCriteria("id", id.toEntity()); return (docList != null && !docList.isEmpty()) ? true : false; }
DocumentNominalLabelResourceFacadeImp extends CoreDBServiceFacadeImp<DocumentNominalLabel, Long> implements DocumentNominalLabelResourceFacade { @Override public boolean isDocumentExists(DocumentNominalLabelIdDTO id) throws PropertyNotSetException { List<DocumentNominalLabelDTO> docList = findByCriteria("id", id.toEntity()); return (docList != null && !docList.isEmpty()) ? true : false; } }
DocumentNominalLabelResourceFacadeImp extends CoreDBServiceFacadeImp<DocumentNominalLabel, Long> implements DocumentNominalLabelResourceFacade { @Override public boolean isDocumentExists(DocumentNominalLabelIdDTO id) throws PropertyNotSetException { List<DocumentNominalLabelDTO> docList = findByCriteria("id", id.toEntity()); return (docList != null && !docList.isEmpty()) ? true : false; } protected  DocumentNominalLabelResourceFacadeImp(); }
DocumentNominalLabelResourceFacadeImp extends CoreDBServiceFacadeImp<DocumentNominalLabel, Long> implements DocumentNominalLabelResourceFacade { @Override public boolean isDocumentExists(DocumentNominalLabelIdDTO id) throws PropertyNotSetException { List<DocumentNominalLabelDTO> docList = findByCriteria("id", id.toEntity()); return (docList != null && !docList.isEmpty()) ? true : false; } protected  DocumentNominalLabelResourceFacadeImp(); @Override void saveDocumentNominalLabel(DocumentNominalLabelDTO documentNominalLabel); @Override boolean foundDuplicate(DocumentNominalLabelDTO documentNominalLabel); @Override DocumentNominalLabelDTO addDocument(DocumentNominalLabelDTO doc); @Override DocumentNominalLabelDTO editDocument(DocumentNominalLabelDTO doc); @Override Integer deleteDocument(DocumentNominalLabelDTO doc); @Override List<DocumentNominalLabelDTO> findByCriteria(String columnName, Object value); @Override DocumentNominalLabelDTO findDocumentByPrimaryKey(DocumentNominalLabelIdDTO id); @Override boolean isDocumentExists(DocumentNominalLabelIdDTO id); @Override boolean isDocumentExists(Long id); @Override List<DocumentNominalLabelDTO> getAllDocuments(); @Override DocumentNominalLabelDTO findLabeledDocumentByID(Long id); @Override List<DocumentNominalLabelDTO> findLabeledDocumentListByID(Long id); @Override List<DocumentNominalLabelDTO> getLabeledDocumentCollectionForNominalLabel(Integer nominalLabelID); @Override void deleteDocumentNominalLabelByNominalLabel(Long nominalLabelID); }
DocumentNominalLabelResourceFacadeImp extends CoreDBServiceFacadeImp<DocumentNominalLabel, Long> implements DocumentNominalLabelResourceFacade { @Override public boolean isDocumentExists(DocumentNominalLabelIdDTO id) throws PropertyNotSetException { List<DocumentNominalLabelDTO> docList = findByCriteria("id", id.toEntity()); return (docList != null && !docList.isEmpty()) ? true : false; } protected  DocumentNominalLabelResourceFacadeImp(); @Override void saveDocumentNominalLabel(DocumentNominalLabelDTO documentNominalLabel); @Override boolean foundDuplicate(DocumentNominalLabelDTO documentNominalLabel); @Override DocumentNominalLabelDTO addDocument(DocumentNominalLabelDTO doc); @Override DocumentNominalLabelDTO editDocument(DocumentNominalLabelDTO doc); @Override Integer deleteDocument(DocumentNominalLabelDTO doc); @Override List<DocumentNominalLabelDTO> findByCriteria(String columnName, Object value); @Override DocumentNominalLabelDTO findDocumentByPrimaryKey(DocumentNominalLabelIdDTO id); @Override boolean isDocumentExists(DocumentNominalLabelIdDTO id); @Override boolean isDocumentExists(Long id); @Override List<DocumentNominalLabelDTO> getAllDocuments(); @Override DocumentNominalLabelDTO findLabeledDocumentByID(Long id); @Override List<DocumentNominalLabelDTO> findLabeledDocumentListByID(Long id); @Override List<DocumentNominalLabelDTO> getLabeledDocumentCollectionForNominalLabel(Integer nominalLabelID); @Override void deleteDocumentNominalLabelByNominalLabel(Long nominalLabelID);  }