ObjectDB ObjectDB

Internal Website Search

1-9 of 9 resultsRefresh


javax.persistence Enum CacheRetrieveMode java.lang.Object java.lang.Enum<javax.persistence.CacheRetrieveMode> javax.persistence.CacheRetrieveMode Implemented Interfaces: Serializable, Comparable<CacheRetrieveMode> Used as the value of the javax.persistence.cache.retrieveMode


Static Method javax.persistence.CacheRetrieveMode CacheRetrieveMode[] values() Returns an array containing the constants of this enum type. This method may be used to iterate over the constants as follows: for (CacheRetrieveMode c : CacheRetrieveMode.values()) System.out.println(c) Returns


Static Method javax.persistence.CacheRetrieveMode CacheRetrieveMode valueOf( String name ) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. Parameters: name - the name of the enum constant


Enum Constant javax.persistence.CacheRetrieveMode USE Read entity data from the cache: this is the default behavior. Since: JPA 2.0


Enum Constant javax.persistence.CacheRetrieveMode BYPASS Bypass the cache: get data directly from the database. Since: JPA 2.0

Shared (L2) Entity Cache

of the CacheRetrieveMode enum: CacheRetrieveMode.USE - cache is used. CacheRetrieveMode.BYPASS - cache ... .setProperty( "javax.persistence.cache.retrieveMode", CacheRetrieveMode.BYPASS); Setting ... ("javax.persistence.cache.retrieveMode",   CacheRetrieveMode.BYPASS); // For retrieval by type

JPA Miscellaneous

This section contains miscellaneous JPA types. The PersistenceUtil and PersistenceUnitUtil interfaces provide general utility methods: The Cache interface and the CacheRetrieveMode and CacheStoreMode enum types serve in managing the EntityManagerFactory's shared (level 2) cache: Other enum types are provided for setting of various JPA operations:


java.lang Interface Comparable<T> Implementing Classes: AccessType, PersistentAttributeType, BindableType, ByteIdentity, CacheRetrieveMode, CacheStoreMode, CascadeType, CharIdentity, Trimspec, DiscriminatorStrategy, DiscriminatorType, Enum, EnumType, FetchType, FlushModeType, ForeignKeyAction


java.io Interface Serializable Subinterfaces: PersistenceManagerFactory, Query Implementing Classes: AccessType, PersistentAttributeType, BasicPermission, BindableType, ByteIdentity, CacheRetrieveMode, CacheStoreMode, CascadeType, CharIdentity, Trimspec, DiscriminatorStrategy, DiscriminatorType

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