SolarMetric Kodo JDO 3.4.1 generated on May 30 2006

kodo.jdbc.runtime
Class UpdateManagerImpl

java.lang.Object
  |
  +--kodo.jdbc.runtime.UpdateManagerImpl
All Implemented Interfaces:
Configurable, UpdateManager
Direct Known Subclasses:
TableLockUpdateManagerImpl

public class UpdateManagerImpl
extends Object
implements UpdateManager, Configurable

Standard update manager, capable of statement batching and foreign key constraint evaluation.


Constructor Summary
UpdateManagerImpl()
           
 
Method Summary
protected  Collection addException(Collection exceps, Exception err)
          Add the given exception to the given list, which may start out as null.
 void endConfiguration()
          Invoked upon completion of bean property configuration for this object.
 Collection flush(Collection states, JDBCStoreManager store)
          Flush the given instances to the data store.
protected  void flush(Collection rows, kodo.jdbc.runtime.PreparedStatementManager psMgr)
          Flush the given collection of secondary rows.
protected  Collection flush(RowManagerImpl rowMgr, kodo.jdbc.runtime.PreparedStatementManager psMgr, Collection exceps)
          Flush all rows of the given row manager.
 boolean getMaximizeBatchSize()
          Whether or not statements will be dynamically re-ordered to maximize batching.
 void setConfiguration(Configuration conf)
          Invoked prior to setting bean properties.
 void setMaximizeBatchSize(boolean max)
          Whether or not statements will be dynamically re-ordered to maximize batching.
 void startConfiguration()
          Invoked before bean property configuration is begun on this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateManagerImpl

public UpdateManagerImpl()
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 conf)
Description copied from interface: Configurable
Invoked prior to setting bean properties.
Specified by:
setConfiguration in interface Configurable

startConfiguration

public void startConfiguration()
Description copied from interface: Configurable
Invoked before bean property configuration is begun on this object.
Specified by:
startConfiguration in interface Configurable

endConfiguration

public void endConfiguration()
Description copied from interface: Configurable
Invoked upon completion of bean property configuration for this object.
Specified by:
endConfiguration in interface Configurable

flush

public Collection flush(Collection states,
                        JDBCStoreManager store)
Description copied from interface: UpdateManager
Flush the given instances to the data store.
Specified by:
flush in interface UpdateManager
Following copied from interface: kodo.jdbc.runtime.UpdateManager
See Also:
StoreManager.flush(java.util.Collection)

addException

protected Collection addException(Collection exceps,
                                  Exception err)
Add the given exception to the given list, which may start out as null. Returns the (possibly newly-initialized) list.

flush

protected Collection flush(RowManagerImpl rowMgr,
                           kodo.jdbc.runtime.PreparedStatementManager psMgr,
                           Collection exceps)
Flush all rows of the given row manager. Add exceptions to exceps (which may start out as null) using addException(java.util.Collection, java.lang.Exception). Return exceps.

flush

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

SolarMetric Kodo JDO 3.4.1 generated on May 30 2006

Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.