org.apache.ojb.odmg
Interface ImplementationExt

All Superinterfaces:
Implementation
All Known Implementing Classes:
ImplementationImpl

public interface ImplementationExt
extends Implementation

Offers useful none odmg-standard methods of the odmg Implementation interface.

Note: All listed methods are not part of the standard ODMG-api - they are special (proprietary) OJB extensions.

Version:
$Id: ImplementationExt.java,v 1.1.2.2 2005/04/03 02:38:45 arminw Exp $

Method Summary
 java.lang.Class getOqlCollectionClass()
          The used collection type class returned by OQL queries.
 boolean isImpliciteWriteLocks()
          Is true when implicite write locks are enabled.
 void setImpliciteWriteLocks(boolean impliciteWriteLocks)
          If the OJB implicit locking feature (see TransactionExt.setImplicitLocking(boolean)) is enabled, this define the lock type of all implicit locked objects.
 void setOqlCollectionClass(java.lang.Class oqlCollectionClass)
          Set the used collection type class returned by OQL queries.
 
Methods inherited from interface org.odmg.Implementation
currentTransaction, getDatabase, getObjectId, newDArray, newDatabase, newDBag, newDList, newDMap, newDSet, newOQLQuery, newTransaction
 

Method Detail

getOqlCollectionClass

public java.lang.Class getOqlCollectionClass()
The used collection type class returned by OQL queries.

Returns:
The collection class type
See Also:
OQLQuery.execute(), OQLQuery.execute()

setOqlCollectionClass

public void setOqlCollectionClass(java.lang.Class oqlCollectionClass)
Set the used collection type class returned by OQL queries.

NOTE: Each specified class must implement interface ManageableCollection to work proper with OJB.

Parameters:
oqlCollectionClass - The collection class used in OQL queries.

setImpliciteWriteLocks

public void setImpliciteWriteLocks(boolean impliciteWriteLocks)
If the OJB implicit locking feature (see TransactionExt.setImplicitLocking(boolean)) is enabled, this define the lock type of all implicit locked objects.

If set to true, acquiring a write-lock on a given object x implies write locks on all implicit locked objects.
If set to false, in any case implicit read-locks are acquired. Acquiring a read- or write lock on x thus allways results in implicit read-locks on all associated objects.

Parameters:
impliciteWriteLocks - If true implicit write locks will enabled.

isImpliciteWriteLocks

public boolean isImpliciteWriteLocks()
Is true when implicite write locks are enabled.

Returns:
true when implicit write locks are enabled.


(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.3, 2005-04-2