org.apache.ojb.odmg
Interface OdmgConfiguration

All Known Implementing Classes:
OjbConfiguration

public interface OdmgConfiguration

This interface defines the configurable setting of the ODMG layer.

Version:
$Id: OdmgConfiguration.java,v 1.6 2002/12/09 22:00:10 olegnitz Exp $
Author:
Thomas Mahler

Method Summary
 java.lang.Class getOqlCollectionClass()
          This class is used to hold results of OQL queries.
 boolean lockAssociationAsWrites()
          If true acquiring a write-lock on a given object x implies write locks on all objects associated to x.
 boolean useImplicitLocking()
          defines if implicit lock acquisition is to be used.
 

Method Detail

lockAssociationAsWrites

public boolean lockAssociationAsWrites()
If true acquiring a write-lock on a given object x implies write locks on all objects associated to x. If false implicit read-locks are acquired.


getOqlCollectionClass

public java.lang.Class getOqlCollectionClass()
This class is used to hold results of OQL queries. By default a DListImpl is used.


useImplicitLocking

public boolean useImplicitLocking()
defines if implicit lock acquisition is to be used. If set to true OJB implicitely locks objects to ODMG transactions after performing OQL queries. If implicit locking is used locking objects is recursive, that is associated objects are also locked. If ImplicitLocking is set to false, no locks are obtained in OQL queries and there is also no recursive locking.



Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14