站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

Implementation (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.odmg
Class Implementation

java.lang.Object
  extended bynet.sf.hibernate.odmg.Implementation
All Implemented Interfaces:
org.odmg.Implementation

public class Implementation
extends Object
implements org.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

Implementation

public Implementation()
Method Detail

getInstance

public static Implementation getInstance()
Get the singleton instance


newTransaction

public org.odmg.Transaction newTransaction()
Instantiate a new Transaction associated with the current thread.

Specified by:
newTransaction in interface org.odmg.Implementation
See Also:
Implementation.newTransaction()

currentDatabase

public Database currentDatabase()
Get the Database associated with the current thread (the most recent database created by the current thread or the default database).


currentTransaction

public org.odmg.Transaction currentTransaction()
Get the Transaction associated with the current thread.

Specified by:
currentTransaction in interface org.odmg.Implementation
See Also:
Implementation.currentTransaction()

newDatabase

public org.odmg.Database newDatabase()
Create a new Database and associate it with the current thread. The first Database created by this method becomes the "default" database that all threads that have not created databases are associated with.

Specified by:
newDatabase in interface org.odmg.Implementation
See Also:
Implementation.newDatabase()

newOQLQuery

public org.odmg.OQLQuery newOQLQuery()
Instantiate an OQLQuery for the Database associated with the current thread

Specified by:
newOQLQuery in interface org.odmg.Implementation
See Also:
Implementation.newOQLQuery()

newDList

public org.odmg.DList newDList()
Specified by:
newDList in interface org.odmg.Implementation
See Also:
Implementation.newDList()

newDBag

public org.odmg.DBag newDBag()
Specified by:
newDBag in interface org.odmg.Implementation
See Also:
Implementation.newDBag()

newDSet

public org.odmg.DSet newDSet()
Specified by:
newDSet in interface org.odmg.Implementation
See Also:
Implementation.newDSet()

newDArray

public org.odmg.DArray newDArray()
Specified by:
newDArray in interface org.odmg.Implementation
See Also:
Implementation.newDArray()

newDMap

public org.odmg.DMap newDMap()
Specified by:
newDMap in interface org.odmg.Implementation
See Also:
Implementation.newDMap()

getObjectId

public String getObjectId(Object obj)
Get the stringified identifier of the given object.

Specified by:
getObjectId in interface org.odmg.Implementation
See Also:
Implementation.getObjectId(Object)

getDatabase

public 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).

Specified by:
getDatabase in interface org.odmg.Implementation
See Also:
Implementation.getDatabase(Object)