Home » Search

About TypedQuery

41-50 of 139Refresh
JPA Doc
5

javax.persistence.NoResultException

: Serializable Thrown by the persistence provider when Query.getSingleResult() or TypedQuery.getSingleResult ... .getSingleResult() TypedQuery.getSingleResult() NoResultException() Constructs a new NoResultException exception
JPA Doc
5

javax.persistence.Query

javax.persistence Interface Query Subinterfaces: TypedQuery Interface used to control query execution. Since: JPA 1.0 See Also: TypedQuery Parameter Learn how to define and use JPA/JPQL queries in Chapter 4 of the ObjectDB/JPA manual. int executeUpdate() Execute an update or delete statement
Forum
4

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

.persistence.PersistenceContext; import javax.persistence.TypedQuery; import javax.persistence ... not work   // TypedQuery query = this.em.createNamedQuery( "Guest.getAll", Guest.class );   TypedQuery query = this.em.createQuery( "select g from guest.Guest g order by g.name
JPA Doc
3

close()

Method javax.persistence.EntityManager void close() Close an application-managed entity manager. After the close method has been invoked, all methods on the EntityManager instance and any Query and TypedQuery objects obtained from it will throw the IllegalStateException except for getProperties
JPA Doc
3

javax.persistence.LockModeType

.setLockMode() or TypedQuery.setLockMode() method. Lock modes can be used to specify either optimistic or
JPA Doc
3

javax.persistence.Parameter

javax.persistence Interface Parameter Subinterfaces: ParameterExpression Type for query parameter objects. Since: JPA 2.0 See Also: Query TypedQuery Learn how to define and use JPA/JPQL queries in Chapter 4 of the ObjectDB/JPA manual. String getName() Return the parameter name, or null
JPA Doc
3

javax.persistence.PessimisticLockScope

of the EntityManager, Query, and TypedQuery interfaces that allow lock modes to be specified or used
Forum
3

Object as parameter results in exception

)));   TypedQuery q = getEntityManager().createQuery(c);   List resultList = q.getResultList ... .equal(p.get("owningCompany").get("id"), company.getId())));   TypedQuery q = getEntityManager ... please consider: Building the query (the CriteriaQuery and the TypedQuery) once with two parameters
Forum
3

Performance in large transactions

javax.persistence.OneToMany; import javax.persistence.Persistence; import javax.persistence.TypedQuery ... );   for (int m = 0; m < steps; m++) {    TypedQuery q = em.createQuery("SELECT m FROM MyEntity ... );    em.getTransaction().begin();    TypedQuery q = em.createQuery("SELECT m FROM
Forum
2

Join performance in Objectdb

("Query 1 started.");         ms = System.currentTimeMillis();         TypedQuery q1 = em ... = System.currentTimeMillis();         TypedQuery q2 = em.createQuery(             "SELECT ... ();         TypedQuery q1 = em.createQuery(             "SELECT COUNT(a.id) FROM A a", Long.class