Java Persistence API (JPA) Extensions Reference for EclipseLink, Release 2.5
  Go To Table Of Contents
 Search
 PDFComments
Comments


jdbc.cache-statements.size

Use eclipselink.jdbc.cache-statements.size to specify the number of statements held when using internal statement caching.


Values

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

Table 5-42 Valid Values for jdbc.cache-statements.size

Value Description

size

A string value containing a positive integer or zero (default: 50)

The maximum value may vary, depending on your JDBC driver.



Usage


Examples

Example 5-34 Using jdbc.cache-statements.size in persistence.xml

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

 

Example 5-35 Using jdbc.cache-statements.size in Property Map

import org.eclipse.persistence.config.PersistenceUnitProperties;
propertiesMap.put(PersistenceUnitProperties.CACHE_STATEMENTS_SIZE, "100");


See Also

For more information, see: