org.apache.ojb.odmg
Interface OdmgConfiguration


public interface OdmgConfiguration

This interface defines the configurable setting of the ODMG layer.

Version:
$Id: OdmgConfiguration.java 365232 2005-12-21 22:36:07Z tomdz $
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

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

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


useImplicitLocking

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.



(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30