|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ojb.odmg.OJB
Facade to the persistence ObjectServer system. Implements the factory interface for a particular ODMG implementation.
| Constructor Summary | |
protected |
OJB()
private Constructor: use static factory method getInstance() to obtain an instance |
| Method Summary | |
Transaction |
currentTransaction()
Get the current Transaction for the thread. |
Configurator |
getConfigurator()
Gets the configurator. |
DatabaseImpl |
getCurrentDatabase()
|
PBKey |
getCurrentPBKey()
|
Database |
getDatabase(java.lang.Object obj)
Returns the current used database or null. |
static Implementation |
getInstance()
Return new instance of the Implementation class. |
java.lang.String |
getObjectId(java.lang.Object obj)
Get a String representation of the object's identifier. |
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. |
protected void |
registerOpenDatabase(DatabaseImpl newDB)
Register opened database via the PBKey. |
void |
setConfigurator(Configurator configurator)
Sets the configurator. |
protected void |
setCurrentDatabase(DatabaseImpl curDB)
Method declaration |
void |
setImplicitLocking(boolean value)
This method can be used to activate or deactivate the implicit locking mechanism for the current transaction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected OJB()
| Method Detail |
public static Implementation getInstance()
Implementation class.
protected void setCurrentDatabase(DatabaseImpl curDB)
curDB - public DatabaseImpl getCurrentDatabase()
public PBKey getCurrentPBKey()
public Configurator getConfigurator()
public void setConfigurator(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 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.protected void registerOpenDatabase(DatabaseImpl newDB)
public void setImplicitLocking(boolean value)
value - if set to true implicit locking is enabled,
if false, implicit locking is disabled.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||