protected void performLockingIfRequired(
Transaction tx,
PersistenceBroker broker,
ManageableCollection result)
{
OdmgConfiguration config = getConfiguration();
// if tx is available and implicit locking is required,
// we do READ-lock all found objects
if ((tx != null) && config.useImplicitLocking())
{
// read-lock all resulting objects to the current transaction
Iterator iter = result.ojbIterator();
Object toBeLocked = null;
Class lastUsed = null;