Kodo 4.2.0. (DEPRECATED)

kodo.jdbc.kernel
Class AutoOrderUpdateManager

java.lang.Object
  extended by org.apache.openjpa.jdbc.kernel.AbstractUpdateManager
      extended by kodo.jdbc.kernel.AutoOrderUpdateManager
All Implemented Interfaces:
UpdateManager, Configurable
Direct Known Subclasses:
ConstraintUpdateManager, TableLockUpdateManager

public abstract class AutoOrderUpdateManager
extends AbstractUpdateManager

Base update manager for subclasses that order statements and batch statements when possible.


Nested Class Summary
protected static class AutoOrderUpdateManager.SQLComparator
          Compares rows on their flush SQL.
 
Nested classes/interfaces inherited from class org.apache.openjpa.jdbc.kernel.AbstractUpdateManager
AbstractUpdateManager.CustomMapping
 
Field Summary
protected  boolean batch
           
protected  boolean maxBatch
           
protected  AutoOrderUpdateManager.SQLComparator sqlComparator
           
 
Fields inherited from class org.apache.openjpa.jdbc.kernel.AbstractUpdateManager
conf, dict
 
Constructor Summary
AutoOrderUpdateManager()
           
 
Method Summary
protected  void flush(Collection rows, PreparedStatementManager psMgr)
          Flush the given collection of secondary rows.
 boolean getMaximizeBatchSize()
          Whether or not statements will be dynamically re-ordered to maximize batching.
protected  PreparedStatementManager newPreparedStatementManager(JDBCStore store, Connection conn)
           
 void setConfiguration(Configuration c)
           
 void setMaximizeBatchSize(boolean max)
          Whether or not statements will be dynamically re-ordered to maximize batching.
 
Methods inherited from class org.apache.openjpa.jdbc.kernel.AbstractUpdateManager
addException, delete, endConfiguration, flush, flush, insert, newRowManager, populateRowManager, startConfiguration, update, updateIndicators
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.openjpa.jdbc.kernel.UpdateManager
orderDirty
 

Field Detail

batch

protected boolean batch

maxBatch

protected boolean maxBatch

sqlComparator

protected AutoOrderUpdateManager.SQLComparator sqlComparator
Constructor Detail

AutoOrderUpdateManager

public AutoOrderUpdateManager()
Method Detail

getMaximizeBatchSize

public boolean getMaximizeBatchSize()
Whether or not statements will be dynamically re-ordered to maximize batching. When set to true, Kodo will automatically re-order SQL statements to maximize the amount of statement batching that can occur. When set to false, Kodo will do no reordering, but batching will still occur when it happens to do so.


setMaximizeBatchSize

public void setMaximizeBatchSize(boolean max)
Whether or not statements will be dynamically re-ordered to maximize batching. When set to true, Kodo will automatically re-order SQL statements to maximize the amount of statement batching that can occur. When set to false, Kodo will do no reordering, but batching will still occur when it happens to do so.


setConfiguration

public void setConfiguration(Configuration c)
Specified by:
setConfiguration in interface Configurable
Overrides:
setConfiguration in class AbstractUpdateManager

newPreparedStatementManager

protected PreparedStatementManager newPreparedStatementManager(JDBCStore store,
                                                               Connection conn)
Specified by:
newPreparedStatementManager in class AbstractUpdateManager

flush

protected void flush(Collection rows,
                     PreparedStatementManager psMgr)
Flush the given collection of secondary rows.


Kodo 4.2.0. (DEPRECATED)

Copyright 2011 Oracle, Inc. All Rights Reserved.

This documentation is deprecated and will be removed in the next release of WebLogic Server.


Oracle Fusion Middleware Oracle Kodo 4.2.0 API Reference (DEPRECATED)
11g Release 1 (10.3.6)
Part Number E13950-02