congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
AnnotationDao.delete
Code IndexAdd Tabnine to your IDE (free)

How to use
delete
method
in
uk.ac.ebi.intact.core.persistence.dao.AnnotationDao

Best Java code snippets using uk.ac.ebi.intact.core.persistence.dao.AnnotationDao.delete (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: uk.ac.ebi.intact.dbupdate/intact-cv-update

@Transactional(propagation = Propagation.REQUIRES_NEW)
/**
 * Delete hidden annotations for each cv given in the collection
 */
public void removeHiddenFrom(Collection<CvObject> cvs){
  DaoFactory factory = IntactContext.getCurrentInstance().getDaoFactory();
  AnnotationDao annDao = factory.getAnnotationDao();
  for (CvObject cv : cvs){
    cv = factory.getEntityManager().merge(cv);
    Collection<Annotation> annotations = new ArrayList<Annotation>(cv.getAnnotations());
    for (Annotation annotation : annotations){
      if (annotation.getCvTopic() != null && CvTopic.HIDDEN.equalsIgnoreCase(annotation.getCvTopic().getShortLabel())){
        cv.removeAnnotation(annotation);
        annDao.delete(annotation);
      }
    }
  }
}
origin: uk.ac.ebi.intact.dbupdate/protein-mapping

log.info("annotation no_uniprot_update removed from the annotations of " + accession);
prot.removeAnnotation(a);
daoFactory.getAnnotationDao().delete(a);
log.info("caution removed from the annotations of " + accession);
prot.removeAnnotation(a2);
daoFactory.getAnnotationDao().delete(a2);
origin: uk.ac.ebi.intact.bridges.coredep/intact-cdb

IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getAnnotationDao().delete( annotation );
origin: uk.ac.ebi.intact.dbupdate/intact-cv-update

annotationDao.delete(deleted);
uk.ac.ebi.intact.core.persistence.daoAnnotationDaodelete

Popular methods of AnnotationDao

  • update
  • countAll
  • getByAc
  • getByParentAc
    Fetches the annotations using its parent AC.
  • persist

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • setScale (BigDecimal)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now