|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.odmg.Implementation
Singleton class implementing the ODMG Implementation interface. Maintains a reference to a default Database and also associations between a Database and the creating Thread.
Constructor Summary | |
Implementation()
|
Method Summary | |
Database |
currentDatabase()
Get the Database associated with the current thread (the most recent database created by the current thread or the default database). |
org.odmg.Transaction |
currentTransaction()
Get the Transaction associated with the current thread. |
org.odmg.Database |
getDatabase(Object obj)
Get the Database associated with the current thread (the most recent database created by the current thread or the default database). |
static Implementation |
getInstance()
Get the singleton instance |
String |
getObjectId(Object obj)
Get the stringified identifier of the given object. |
org.odmg.DArray |
newDArray()
|
org.odmg.Database |
newDatabase()
Create a new Database and associate it with the current thread. |
org.odmg.DBag |
newDBag()
|
org.odmg.DList |
newDList()
|
org.odmg.DMap |
newDMap()
|
org.odmg.DSet |
newDSet()
|
org.odmg.OQLQuery |
newOQLQuery()
Instantiate an OQLQuery for the Database associated with the current thread |
org.odmg.Transaction |
newTransaction()
Instantiate a new Transaction associated with the current thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Implementation()
Method Detail |
public static Implementation getInstance()
public org.odmg.Transaction newTransaction()
newTransaction
in interface org.odmg.Implementation
Implementation.newTransaction()
public Database currentDatabase()
public org.odmg.Transaction currentTransaction()
currentTransaction
in interface org.odmg.Implementation
Implementation.currentTransaction()
public org.odmg.Database newDatabase()
newDatabase
in interface org.odmg.Implementation
Implementation.newDatabase()
public org.odmg.OQLQuery newOQLQuery()
newOQLQuery
in interface org.odmg.Implementation
Implementation.newOQLQuery()
public org.odmg.DList newDList()
newDList
in interface org.odmg.Implementation
Implementation.newDList()
public org.odmg.DBag newDBag()
newDBag
in interface org.odmg.Implementation
Implementation.newDBag()
public org.odmg.DSet newDSet()
newDSet
in interface org.odmg.Implementation
Implementation.newDSet()
public org.odmg.DArray newDArray()
newDArray
in interface org.odmg.Implementation
Implementation.newDArray()
public org.odmg.DMap newDMap()
newDMap
in interface org.odmg.Implementation
Implementation.newDMap()
public String getObjectId(Object obj)
getObjectId
in interface org.odmg.Implementation
Implementation.getObjectId(Object)
public org.odmg.Database getDatabase(Object obj)
getDatabase
in interface org.odmg.Implementation
Implementation.getDatabase(Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |