ObjectDB ObjectDB

Internal Website Search

1-10 of 100 resultsRefresh
72

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
72

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
72

CascadeType.REFRESH

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

refresh(entity, properties)

Method javax.persistence.EntityManager void refresh( Object entity, Map<String,Object> 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
72

refresh(entity, lockMode, properties)

Method javax.persistence.EntityManager void refresh( Object entity, LockModeType lockMode, Map<String,Object> 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
72

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
53

Retrieving JPA Entity Objects

ones. 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 ... another EntityManager since it was retrieved. An IllegalArgumentException is thrown by refresh if the argument is not
7

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 match ... will refresh nontransactional state. Parameters: pc - the instance to refresh. Since: JDO 1.0
7

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 match ... will refresh nontransactional state. Parameters: pc - the instance to refresh. Since: JDO 1.0
3

[ODB1] Chapter 6 - Persistent Objects

, the cached object is refreshed from the database, and only then it is returned. A more common ... . Persistence aware classes are discussed in more detail in section 3.3. Refresh and Retrieve ... to retrieveAll(...), for the same purpose. The refresh(...) method is used to reload an object from

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support