Tabnine Logo
DbOomQuery.executeCount
Code IndexAdd Tabnine to your IDE (free)

How to use
executeCount
method
in
jodd.db.oom.DbOomQuery

Best Java code snippets using jodd.db.oom.DbOomQuery.executeCount (Showing top 5 results out of 315)

origin: oblac/jodd

/**
 * Counts number of all entities.
 */
public long count(final Class entityType) {
  return query(dbOom.entities().count(entityType)).autoClose().executeCount();
}
origin: oblac/jodd

query = query(dbsql);
query.setMap(params);
long count = query.executeCount();
query.close();
origin: oblac/jodd

count = (int) f.autoClose().executeCount();
assertEquals(1, count);
assertTrue(f.isClosed());
count = (int) f.autoClose().executeCount();
assertEquals(0, count);
assertTrue(f.isClosed());
count = (int) f.executeCount();
assertEquals(2, count);
assertTrue(f.isClosed());
f.setBean("girl", girl);
assertEquals("select * from GIRL where id >= 1 and name like 'A%'", f.toString());
count = (int) f.executeCount();
assertEquals(1, count);
f.setBean("girl", girl);
assertEquals("select * from GIRL where id >= -2 and name like 'A%'", f.toString());
count = (int) f.executeCount();
assertEquals(1, count);
origin: org.jodd/jodd-db

/**
 * Counts number of all entities.
 */
public long count(final Class entityType) {
  return query(dbOom.entities().count(entityType)).autoClose().executeCount();
}
origin: org.jodd/jodd-joy

query = query(dbsql);
query.setMap(params);
long count = query.executeCount();
query.close();
jodd.db.oomDbOomQueryexecuteCount

Popular methods of DbOomQuery

  • close
    Closes results set or whole query.
  • list
    Iterates result set, maps rows to classes and populates resulting array list.
  • query
  • closeResultSet
  • find
  • getGeneratedColumns
  • iterate
  • listSet
  • withHints
    Specifies multiple hints for the query.
  • <init>
  • autoClose
  • createResultSetMapper
    Factory for result sets mapper.
  • autoClose,
  • createResultSetMapper,
  • execute,
  • executeAndBuildResultSetMapper,
  • executeUpdate,
  • findGeneratedColumns,
  • getGeneratedColumnNames,
  • init,
  • resolveColumnDbSqlType

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ImageIO (javax.imageio)
  • JOptionPane (javax.swing)
  • Top PhpStorm 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