Home » Search

About COUNT

21-30 of 120Refresh
JPA Doc
12

javax.persistence.criteria.CriteriaBuilder

item Since: JPA 2.0 Expression count( Expression x) Create an aggregate expression applying the count operation. Create an aggregate expression applying the count operation. Parameters: x - expression representing input value to count operation Returns: count expression Since: JPA 2.0
JPA Doc
7

countDistinct(x)

Method javax.persistence.criteria.CriteriaBuilder Expression countDistinct(   Expression x ) Create an aggregate expression applying the count distinct operation. Parameters: x - expression representing input value to count distinct operation Returns: count distinct expression Since: JPA 2.0
Forum
6

Threading Problem (maybe with Criteria)

would a ConcurrentLinkedHashMap). FETCH thread nr (36) count: 982 UIDs in 26 msek FETCH thread nr (41) count: 982 UIDs in 29 msek FETCH thread nr (44) count: 982 UIDs in 14 msek FETCH thread nr (39) count: 982 UIDs in 25 msek FETCH thread nr (42) count: 982 UIDs in 31 msek FETCH thread nr (40) count
Forum
5

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

);     System.out.println("COUNT = " + i);     em.close();     try {      Thread.sleep(1500);     } catch ... count = 0;   for (Point p : results) {    System.out.println(p);    if(count++>5) {     break ... ("SELECT COUNT(p) FROM Point p");   System.out.println("Total Points: " + q1.getSingleResult
Forum
4

Join performance in Objectdb

SELECT count(e) FROM Meta e, ImageNet i, Page p WHERE e.idImage=i.id AND e.idPage=p.id; So simple ... can predict the time for such counting? TIA Now, after 2 hours, it is still running. Maybe I used ... instead of direct references. A more JPA conventional variant of your query would be: SELECT count(e
Issue
4

Issue with UPPER ?

COUNT($1) FROM com.lexware.vereinsverwaltung.verein.mitglied.Mitglied $1 LEFT JOIN $1.mitgliedschaft $2 ... LIKE '%81%'))))) # Case (2) SELECT COUNT($1) FROM com.lexware.vereinsverwaltung.verein.mitglied ... %')))))) # Case (3) SELECT COUNT($1) FROM com.lexware.vereinsverwaltung.verein.mitglied
Issue
3

Issue with cascade delete & add/remove

) {         int Address_1_Count = ((Long) em.createQuery(             "SELECT COUNT(a) FROM Address a WHERE street = '1'")             .getSingleResult()).intValue();         int Address_2_Count = ((Long) em.createQuery(             "SELECT COUNT(a) FROM Address a WHERE street = '2
Forum
3

Internal exception when updating date filed (TemporalType.DATE)

GENERATE_PERSONS_COUNT = 1000;         private EntityManagerFactory entityManagerFactory ... ) {                 createPersons(GENERATE_PERSONS_COUNT);             }         }         public ... ();         }         private void createPersons(long count) {             try
Forum
3

Queries are slow on a large database

to get the object with the highest Id. I tried a query like "count(this.Id)" or "max(this.Id)" but I get an exception: [ObjectDB 2.5.0_01]  ==> count <== (this.Id) javax.jdo.JDOUserException Invalid context for aggregate 'count' (error 743) (position 0) at com.objectdb.jdo.JdoQuery.execute0(JdoQuery.java:840
Forum
3

Duplicate Entity class names causes Exception in Query

FROM Item o WHERE o.cachedKey = :cachedKey"), @NamedQuery(name = "objdbTest.Singleton.count", query = "SELECT COUNT(x) FROM Item x") }) public class Singleton implements Serializable { public ... .Singleton.count", Long.class); q.setFlushMode(FlushModeType.AUTO); try { return q