Loading
Java Persistence API (JPA) Extensions Reference for EclipseLink, Release 2.4
  Go To Table Of Contents
Contents
 Search
Other Searches
 PDF
PDF
Comments
Comments


jdbc.cache-statements

Use eclipselink.jdbc.cache-statements to specify if JDBC statements should be cached.


Values

Table 5-41 describes this persistence property's values.

Table 5-41 Valid Values for jdbc.cache-statements

Value Description

true

Enable internal statement caching.

false

(Default) Disable internal statement caching.



Usage

You should use this property when using EclipseLink's internal connection pooling. See "connection-pool" for more information.


Examples

Example 5-32 Using jdbc.cache-statements in persistence.xml

<property name="eclipselink.jdbc.cache-statements" value="false"/>
 

Example 5-33 Using jdbc.cache-statements in a Property Map

import org.eclipse.persistence.config.PersistenceUnitProperties;
propertiesMap.put(PersistenceUnitProperties.CACHE_STATEMENTS, "false");


See Also

For more information, see:

Comments powered by Disqus