About refresh

1-10 of 97Refresh
Manual
102

Locking in JPA

employee = em.find( Employee.class, 1, LockModeType.PESSIMISTIC_WRITE); Similarly, the refresh method can also receive a lock mode: em.refresh(employee, LockModeType.PESSIMISTIC_WRITE ... , properties); ... em.refresh(employee, LockModeType.PESSIMISTIC_WRITE, properties); Setting
JDO Doc
77

refresh(pc)

Method javax.jdo.PersistenceManager void refresh(   Object pc ) Refresh the state of the instance from the data store. In an optimistic transaction, the state of instances in the cache might not ... will refresh nontransactional state. Parameters: pc - the instance to refresh. Since: JDO 1.0
JDO Doc
77

refresh(pc)

Methodjavax.jdo.PersistenceManager void refresh(   Object pc ) Refresh the state of the instance from the data store. In an optimistic transaction, the state of instances in the cache might not match ... will refresh nontransactional state. Parameters: pc - the instance to refresh. Since: JDO 1.0
JPA Doc
74

CascadeType.REFRESH

Enum Constant javax.persistence.CascadeType REFRESH Cascade refresh operation Since: JPA 1.0
JPA Doc
74

refresh(entity)

Method javax.persistence.EntityManager void refresh(   Object entity ) Refresh the state of the instance from the database, overwriting changes made to the entity, if any. Parameters: entity - entity instance Throws: IllegalArgumentException - if the instance is not an entity or the entity is not
JPA Doc
74

refresh(entity, lockMode)

Method javax.persistence.EntityManager void refresh(   Object entity,   LockModeType lockMode ) Refresh the state of the instance from the database, overwriting changes made to the entity, if any, and lock it with respect to given lock mode type. If the lock mode type is pessimistic and the entity
JPA Doc
74

refresh(entity, lockMode, properties)

Method javax.persistence.EntityManager void refresh(   Object entity,   LockModeType lockMode,   Map properties ) Refresh the state of the instance from the database, overwriting changes made to the entity, if any, and lock it with respect to given lock mode type and with specified
JPA Doc
74

refresh(entity, properties)

Method javax.persistence.EntityManager void refresh(   Object entity,   Map properties ) Refresh the state of the instance from the database, using the specified properties, and overwriting changes made to the entity, if any. If a vendor-specific property or hint is not recognized
JPA Doc
74

CacheStoreMode.REFRESH

Enum Constant javax.persistence.CacheStoreMode REFRESH Insert/update entity data into cache when read from database and when committed into database. Forces refresh of cache for items read from database. Since: JPA 2.0
Manual
62

Retrieving JPA Entity Objects

. JPA queries and JPQL are described in chapter 4. Retrieval by Refresh Managed objects can be reloaded from the database by using the refresh method: em.refresh(employee); The content ... since it was retrieved. An IllegalArgumentException is thrown by refresh if the argument is not