|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.odmg.ImplementationImpl
Default implementation of the Implementation interface.
| Method Summary | |
Transaction |
currentTransaction()
Get the current Transaction for the thread. |
org.apache.ojb.broker.util.configuration.Configurator |
getConfigurator()
Gets the configurator. |
PBKey |
getCurrentPBKey()
|
Database |
getDatabase(java.lang.Object obj)
Returns the current used database or null. |
java.lang.String |
getObjectId(java.lang.Object obj)
Get a String representation of the object's identifier. |
java.lang.Class |
getOqlCollectionClass()
The used collection type class returned by OQL queries. |
OJBTxManager |
getTxManager()
|
boolean |
hasOpenTransaction()
|
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. |
DArray |
newDArray()
Create a new DArray object. |
Database |
newDatabase()
Create a new Database object. |
DBag |
newDBag()
Create a new DBag object. |
DList |
newDList()
Create a new DList object. |
DMap |
newDMap()
Create a new DMap object. |
DSet |
newDSet()
Create a new DSet object. |
EnhancedOQLQuery |
newOQLQuery()
Create a new OQLQuery object. |
Transaction |
newTransaction()
Create a Transaction object and associate it with the current thread. |
void |
setConfigurator(org.apache.ojb.broker.util.configuration.Configurator configurator)
Sets the configurator. |
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 value)
Note: Method behavior changed between version 1.0.3 and 1.0.4. |
void |
setImplicitLockingBackward(boolean implicitLockingBackward)
Deprecated. is only for backward compatibility with older versions (before 1.0.4) and will be removed in future versions. |
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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public OJBTxManager getTxManager()
public PBKey getCurrentPBKey()
public org.apache.ojb.broker.util.configuration.Configurator getConfigurator()
public void setConfigurator(org.apache.ojb.broker.util.configuration.Configurator configurator)
configurator - The configurator to setpublic Transaction newTransaction()
Transaction object and associate it with the current thread.
newTransaction in interface ImplementationTransaction instance.Transactionpublic Transaction currentTransaction()
Transaction for the thread.
currentTransaction in interface ImplementationTransaction object or null if there is none.Transactionpublic boolean hasOpenTransaction()
public Database newDatabase()
Database object.
newDatabase in interface ImplementationDatabase object.Databasepublic EnhancedOQLQuery newOQLQuery()
OQLQuery object.
newOQLQuery in interface ImplementationOQLQuery object.OQLQuerypublic DList newDList()
DList object.
newDList in interface ImplementationDList object.DListpublic DBag newDBag()
DBag object.
newDBag in interface ImplementationDBag object.DBagpublic DSet newDSet()
DSet object.
newDSet in interface ImplementationDSet object.DSetpublic DArray newDArray()
DArray object.
newDArray in interface ImplementationDArray object.DArraypublic DMap newDMap()
DMap object.
newDMap in interface ImplementationDMap object.DMappublic java.lang.String getObjectId(java.lang.Object obj)
String representation of the object's identifier.
OJB returns the serialized Identity of the object.
getObjectId in interface Implementationobj - The object whose identifier is being accessed.
public Database getDatabase(java.lang.Object obj)
getDatabase in interface Implementationobj - The object.
Database that contains the object.public void setImplicitLocking(boolean value)
TransactionExt.setImplicitLocking(boolean) to set the property
for a running transaction.
setImplicitLocking in interface ImplementationExtvalue - If set true implicit locking is enabled,
if false, implicit locking is disabled.ImplementationExt.setImplicitLocking(boolean)public boolean isImplicitLocking()
ImplementationExtImplementation 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().
isImplicitLocking in interface ImplementationExtImplementationExt.isImplicitLocking()public java.lang.Class getOqlCollectionClass()
ImplementationExt
getOqlCollectionClass in interface ImplementationExtImplementationExt.getOqlCollectionClass()public void setOqlCollectionClass(java.lang.Class oqlCollectionClass)
ImplementationExtManageableCollection
to work proper with OJB.
setOqlCollectionClass in interface ImplementationExtoqlCollectionClass - The collection class used in OQL queries.ImplementationExt.setOqlCollectionClass(Class)public void setImpliciteWriteLocks(boolean impliciteWriteLocks)
ImplementationExtTransactionExt.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.
setImpliciteWriteLocks in interface ImplementationExtimpliciteWriteLocks - If true implicit write locks will enabled.ImplementationExt.setImpliciteWriteLocks(boolean)public boolean isImpliciteWriteLocks()
ImplementationExt
isImpliciteWriteLocks in interface ImplementationExtImplementationExt.isImpliciteWriteLocks()public boolean isOrdering()
ImplementationExt
isOrdering in interface ImplementationExtImplementationExt.setOrdering(boolean)public void setOrdering(boolean ordering)
ImplementationExtTransaction using TransactionExt.setOrdering(boolean)
setOrdering in interface ImplementationExtordering - If true OJB's ordering algorithm is used.public void setImplicitLockingBackward(boolean implicitLockingBackward)
setImplicitLocking(boolean) in the same way
as before version 1.0.4 - if set 'true', recommended setting is 'false'.
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||