Home » Search

About EntityManager

21-30 of 200Refresh
JPA Doc
48

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
48

createQuery(qlString)

Method javax.persistence.EntityManager Query createQuery(   String qlString ) Create an instance of Query for executing a Java Persistence query language statement. Parameters: qlString - a Java Persistence query string Returns: the new query instance Throws: IllegalArgumentException - if the query string is found to be invalid Since: JPA 1.0
JPA Doc
48

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
48

detach(entity)

Method javax.persistence.EntityManager void detach(   Object entity ) Remove the given entity from the persistence context, causing a managed entity to become detached. Unflushed changes made to the entity if any (including removal of the entity), will not be synchronized to the database. Entities
JPA Doc
48

find(entityClass, primaryKey)

Method javax.persistence.EntityManager T find(   Class entityClass,   Object primaryKey ) Find by primary key. Search for an entity of the specified class and primary key. If the entity instance is contained in the persistence context, it is returned from there. Parameters: entityClass - entity
JPA Doc
48

find(entityClass, primaryKey, lockMode)

Method javax.persistence.EntityManager T find(   Class entityClass,   Object primaryKey,   LockModeType lockMode ) Find by primary key and lock. Search for an entity of the specified class and primary key and lock it with respect to the specified lock type. If the entity instance is contained in
JPA Doc
48

find(entityClass, primaryKey, lockMode, properties)

Method javax.persistence.EntityManager T find(   Class entityClass,   Object primaryKey,   LockModeType lockMode,   Map properties ) Find by primary key and lock, using the specified properties. Search for an entity of the specified class and primary key and lock it with respect
JPA Doc
48

find(entityClass, primaryKey, lockMode, properties)

Method javax.persistence.EntityManager T find(   Class entityClass,   Object primaryKey,   LockModeType lockMode,   Map properties ) Find by primary key and lock, using the specified properties. Search for an entity of the specified class and primary key and lock it with respect
JPA Doc
48

find(entityClass, primaryKey, properties)

Method javax.persistence.EntityManager T find(   Class entityClass,   Object primaryKey,   Map properties ) Find by primary key, using the specified properties. Search for an entity of the specified class and primary key. If the entity instance is contained in the persistence
JPA Doc
48

flush()

Method javax.persistence.EntityManager void flush() Synchronize the persistence context to the underlying database. Throws: TransactionRequiredException - if there is no transaction PersistenceException - if the flush fails Since: JPA 1.0