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 |
---|---|
|
Enable internal statement caching. |
|
(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:
"Batch Writing" in Solutions Guide for EclispeLink