Codota Logo
AnnotationDao.persist
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using uk.ac.ebi.intact.core.persistence.dao.AnnotationDao.persist (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 LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: uk.ac.ebi.intact.dbupdate/intact-cv-update

@Transactional(propagation = Propagation.REQUIRES_NEW)
/**
 * Hide all the given cvs with the given message
 */
public void hideTerms(Collection<CvObject> cvs, String message){
  DaoFactory factory = IntactContext.getCurrentInstance().getDaoFactory();
  AnnotationDao annDao = factory.getAnnotationDao();
  for (CvObject cv : cvs){
    cv = factory.getEntityManager().merge(cv);
    boolean hasHidden = false;
    for (Annotation annotation : cv.getAnnotations()){
      if (annotation.getCvTopic() != null && CvTopic.HIDDEN.equalsIgnoreCase(annotation.getCvTopic().getShortLabel())){
        hasHidden = true;
      }
    }
    if (!hasHidden){
      annDao.persist(CvUpdateUtils.hideTerm(cv, message));
    }
  }
}
origin: uk.ac.ebi.intact.bridges.coredep/intact-cdb

IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getAnnotationDao().persist( annotation );
origin: uk.ac.ebi.intact.bridges.coredep/intact-cdb

if ( ! experiment.getAnnotations().contains( annotation ) ) {
  IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getAnnotationDao().persist( annotation );
  experiment.addAnnotation( annotation );
  IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getExperimentDao().update( experiment );
origin: uk.ac.ebi.intact.dbupdate/intact-cv-update

annotationDao.persist(created);
uk.ac.ebi.intact.core.persistence.daoAnnotationDaopersist

Popular methods of AnnotationDao

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

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JComboBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now