congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AnnotationDao.countAll
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: uk.ac.ebi.intact.core/intact-core

/**
 * Prints the most counts in the database.
 * @param ps The printStream to use
 *
 * @since 1.9.0
 */
public static void printDatabaseCounts(PrintStream ps) {
  final DaoFactory daoFactory = IntactContext.getCurrentInstance().getDataContext().getDaoFactory();
  ps.println("Publications: "+ daoFactory.getPublicationDao().countAll());
  ps.println("\tXrefs: "+ daoFactory.getXrefDao(PublicationXref.class).countAll());
  ps.println("\tAliases: "+ daoFactory.getAliasDao(PublicationAlias.class).countAll());
  ps.println("Experiments: "+ daoFactory.getExperimentDao().countAll());
  ps.println("\tXrefs: "+ daoFactory.getXrefDao(ExperimentXref.class).countAll());
  ps.println("\tAliases: "+ daoFactory.getAliasDao(ExperimentAlias.class).countAll());
  ps.println("Interactors: "+ daoFactory.getInteractorDao().countAll());
  ps.println("\tInteractions: "+ daoFactory.getInteractionDao().countAll());
  ps.println("\tPolymers: " + daoFactory.getPolymerDao().countAll());
  ps.println("\t\tProteins: "+ daoFactory.getProteinDao().countAll());
  ps.println("\t\tNucleic Acids: "+ daoFactory.getInteractorDao(NucleicAcidImpl.class).countAll());
  ps.println("\tSmall molecules: " + daoFactory.getInteractorDao(SmallMoleculeImpl.class).countAll());
  ps.println("\tInteractor Xrefs: "+ daoFactory.getXrefDao(InteractorXref.class).countAll());
  ps.println("\tInteractor Aliases: "+ daoFactory.getAliasDao(InteractorAlias.class).countAll());
  ps.println("Components: "+ daoFactory.getComponentDao().countAll());
  ps.println("Features: "+ daoFactory.getFeatureDao().countAll());
  ps.println("\tRanges: "+ daoFactory.getRangeDao().countAll());
  ps.println("CvObjects: "+ daoFactory.getCvObjectDao().countAll());
  ps.println("BioSources: "+ daoFactory.getBioSourceDao().countAll());
  ps.println("Annotations: "+ daoFactory.getAnnotationDao().countAll());
  ps.println("Institutions: "+ daoFactory.getInstitutionDao().countAll());
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Prints the most counts in the database.
 * @param ps The printStream to use
 *
 * @since 1.9.0
 */
public static void printDatabaseCounts(PrintStream ps) {
  final DaoFactory daoFactory = IntactContext.getCurrentInstance().getDataContext().getDaoFactory();
  ps.println("Publications: "+ daoFactory.getPublicationDao().countAll());
  ps.println("\tXrefs: "+ daoFactory.getXrefDao(PublicationXref.class).countAll());
  ps.println("\tAliases: "+ daoFactory.getAliasDao(PublicationAlias.class).countAll());
  ps.println("Experiments: "+ daoFactory.getExperimentDao().countAll());
  ps.println("\tXrefs: "+ daoFactory.getXrefDao(ExperimentXref.class).countAll());
  ps.println("\tAliases: "+ daoFactory.getAliasDao(ExperimentAlias.class).countAll());
  ps.println("Interactors: "+ daoFactory.getInteractorDao().countAll());
  ps.println("\tInteractions: "+ daoFactory.getInteractionDao().countAll());
  ps.println("\tPolymers: " + daoFactory.getPolymerDao().countAll());
  ps.println("\t\tProteins: "+ daoFactory.getProteinDao().countAll());
  ps.println("\t\tNucleic Acids: "+ daoFactory.getInteractorDao(NucleicAcidImpl.class).countAll());
  ps.println("\tSmall molecules: " + daoFactory.getInteractorDao(SmallMoleculeImpl.class).countAll());
  ps.println("\tInteractor Xrefs: "+ daoFactory.getXrefDao(InteractorXref.class).countAll());
  ps.println("\tInteractor Aliases: "+ daoFactory.getAliasDao(InteractorAlias.class).countAll());
  ps.println("Components: "+ daoFactory.getComponentDao().countAll());
  ps.println("Features: "+ daoFactory.getFeatureDao().countAll());
  ps.println("\tRanges: "+ daoFactory.getRangeDao().countAll());
  ps.println("CvObjects: "+ daoFactory.getCvObjectDao().countAll());
  ps.println("BioSources: "+ daoFactory.getBioSourceDao().countAll());
  ps.println("Annotations: "+ daoFactory.getAnnotationDao().countAll());
  ps.println("Institutions: "+ daoFactory.getInstitutionDao().countAll());
}
uk.ac.ebi.intact.core.persistence.daoAnnotationDaocountAll

Popular methods of AnnotationDao

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

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Table (org.hibernate.mapping)
    A relational table
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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