Use eclipselink.jdbc.cache-statements
to specify if JDBC statements should be cached.
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. |
You should use this property when using TopLink's internal connection pooling. See "connection-pool" for more information.
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");
For more information, see:
"Batch Writing" in Solutions Guide for Oracle TopLink