|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ojb.server.OJB
Facade to the persistence ObjectServer system. Implements the factory interface for a particular ODMG implementation.
Field Summary | |
(package private) static boolean |
debug
this flag en/disables tracing |
Constructor Summary | |
OJB()
|
Method Summary | |
Transaction |
currentTransaction()
Get the current Transaction for the thread. |
Database |
getDatabase(java.lang.Object obj)
Get the Database that contains the object obj . |
static OJB |
getInstance()
Method declaration |
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. |
OQLQuery |
newOQLQuery()
Create a new OQLQuery object. |
Transaction |
newTransaction()
Create a Transaction object and associate it with the current thread. |
(package private) void |
setCurrentDatabase(DatabaseImpl curDB)
Method declaration |
Methods inherited from class java.lang.Object |
|
Field Detail |
static final boolean debug
Constructor Detail |
public OJB()
Method Detail |
public Transaction newTransaction()
Transaction
object and associate it with the current thread.newTransaction
in interface Implementation
Transaction
instance.Transaction
public Transaction currentTransaction()
Transaction
for the thread.currentTransaction
in interface Implementation
Transaction
object or null if there is none.Transaction
public Database newDatabase()
Database
object.newDatabase
in interface Implementation
Database
object.Database
public OQLQuery newOQLQuery()
OQLQuery
object.newOQLQuery
in interface Implementation
OQLQuery
object.OQLQuery
public DList newDList()
DList
object.newDList
in interface Implementation
DList
object.DList
public DBag newDBag()
DBag
object.newDBag
in interface Implementation
DBag
object.DBag
public DSet newDSet()
DSet
object.newDSet
in interface Implementation
DSet
object.DSet
public DArray newDArray()
DArray
object.newDArray
in interface Implementation
DArray
object.DArray
public DMap newDMap()
DMap
object.newDMap
in interface Implementation
DMap
public 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 Implementation
obj
- The object whose identifier is being accessed.public Database getDatabase(java.lang.Object obj)
Database
that contains the object obj
.getDatabase
in interface Implementation
obj
- The object.Database
that contains the object.
If obj.getClass() is defined in the repository return current db
else throw exception, as we can't tell where unknown classes residepublic static OJB getInstance()
void setCurrentDatabase(DatabaseImpl curDB)
curDB
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |