|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ImplementationExt
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.
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. |
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. |
Methods inherited from interface org.odmg.Implementation |
---|
currentTransaction, getDatabase, getObjectId, newDArray, newDatabase, newDBag, newDList, newDMap, newDSet, newOQLQuery, newTransaction |
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |