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


jdbc.batch-writing

Use eclipselink.jdbc.batch-writing to configure the type of batch-writing to use.


Values

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

Table 5-39 Valid Values for jdbc.batch-writing

Value Description

jdbc

Use JDBC batch writing.

buffered

Do not use JDBC batch writing or the platform's native batch writing.

oracle-jdbc

Use the Oracle platform's native batch writing. In a property map, use OracleJDBC.

Note: This requires an Oracle JDBC driver.

none

(Default) Do not use batch writing (that is, turn it off).



Usage

With batch writing, EclipseLink can optimize transactions with multiple write functions. Use eclipselink.jdbc.batch-writing.size to specify the batch size.


Examples

Example 5-29 Using jdbc.batch-writing in persistence.xml

<property name="eclipselink.jdbc.batch-writing" value="Oracle-JDBC"/>

Example 5-30 Using jdbc.batch-writing in a Property Map

import org.eclipse.persistence.config.PersistenceUnitProperties;
propertiesMap.put(PersistenceUnitProperties.BATCH_WRITING, BatchWriting.OracleJDBC);


See Also

For more information, see: