About TypedQuery

41-50 of 143Refresh
JPA Doc
5

createQuery(criteriaQuery)

Method javax.persistence.EntityManager TypedQuery createQuery(   CriteriaQuery criteriaQuery ) Create an instance of TypedQuery for executing a criteria query. Parameters: criteriaQuery - a criteria query object Returns: the new query instance Throws: IllegalArgumentException - if the criteria query is found to be invalid Since: JPA 2.0
JPA Doc
5

createQuery(qlString, resultClass)

Method javax.persistence.EntityManager TypedQuery createQuery(   String qlString,   Class resultClass ) Create an instance of TypedQuery for executing a Java Persistence query language statement. The select list of the query must contain only a single item, which must be assignable
JPA Doc
5

javax.persistence.FlushModeType

.AUTO is set on the Query or TypedQuery object, or if the flush mode setting for the persistence context is AUTO (the default) and a flush mode setting has not been specified for the Query or TypedQuery
JPA Doc
5

javax.persistence.NonUniqueResultException

Interfaces: Serializable Thrown by the persistence provider when Query.getSingleResult() or TypedQuery ... .0 See Also: Query.getSingleResult() TypedQuery.getSingleResult() NonUniqueResultException
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