public interface ImplementationExt extends Implementation
Implementation
interface.
Note: All listed methods are not part of the standard ODMG-api - they are special (proprietary) OJB extensions.
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getOqlCollectionClass()
The used collection type class returned by OQL queries.
|
boolean |
isImpliciteWriteLocks()
Is true when implicite write locks are enabled.
|
boolean |
isImplicitLocking()
Returns true if the global implicit locking is enabled
for this
Implementation instance, else false. |
boolean |
isOrdering()
Returns true if OJB's ordering algorithm is 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 |
setImplicitLocking(boolean impliciteLocking)
Set the global property implicit locking.
|
void |
setOqlCollectionClass(java.lang.Class oqlCollectionClass)
Set the used collection type class returned by OQL queries.
|
void |
setOrdering(boolean ordering)
Disable/enable OJB's ordering algorithm when insert, update, delete a
bunch of objects within a transaction.
|
currentTransaction, getDatabase, getObjectId, newDArray, newDatabase, newDBag, newDList, newDMap, newDSet, newOQLQuery, newTransaction
java.lang.Class getOqlCollectionClass()
OQLQuery.execute()
,
OQLQuery.execute()
void setOqlCollectionClass(java.lang.Class oqlCollectionClass)
ManageableCollection
to work proper with OJB.oqlCollectionClass
- The collection class used in OQL queries.void setImpliciteWriteLocks(boolean impliciteWriteLocks)
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.
impliciteWriteLocks
- If true implicit write locks will enabled.boolean isImpliciteWriteLocks()
setImpliciteWriteLocks(boolean)
void setImplicitLocking(boolean impliciteLocking)
Transaction
using TransactionExt.setImplicitLocking(boolean)
and to detect the implicit locking
state of the used transaction instance call TransactionExt.isImplicitLocking()
.
impliciteLocking
- If set true implicit locking is enabled,
if false, implicit locking is disabled.boolean isImplicitLocking()
Implementation
instance, else false.
Transaction.lock(Object, int)
calls.
Transaction
using TransactionExt.setImplicitLocking(boolean)
and to detect the implicit locking
state of the used transaction instance call TransactionExt.isImplicitLocking()
.setImplicitLocking(boolean)
boolean isOrdering()
setOrdering(boolean)
void setOrdering(boolean ordering)
Transaction
using TransactionExt.setOrdering(boolean)
ordering
- If true OJB's ordering algorithm is used.(C) 2002 - 2005 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