org.odmg
Interface Implementation

All Known Subinterfaces:
ImplementationExt
All Known Implementing Classes:
ImplementationImpl, ImplementationJTAImpl

public interface Implementation

The factory interface for a particular ODMG implementation. Each ODMG implementation will have a class that implements this interface.

Version:
ODMG 3.0
Author:
David Jordan (as Java Editor of the Object Data Management Group)

Method Summary
 Transaction currentTransaction()
          Get the current Transaction for the thread.
 Database getDatabase(Object obj)
          Get the Database that contains the object obj.
 String getObjectId(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.
 

Method Detail

newTransaction

Transaction newTransaction()
Create a Transaction object and associate it with the current thread.

Returns:
The newly created Transaction instance.
See Also:
Transaction

currentTransaction

Transaction currentTransaction()
Get the current Transaction for the thread.

Returns:
The current Transaction object or null if there is none.
See Also:
Transaction

newDatabase

Database newDatabase()
Create a new Database object.

Returns:
The new Database object.
See Also:
Database

newOQLQuery

EnhancedOQLQuery newOQLQuery()
Create a new OQLQuery object.

Returns:
The new OQLQuery object.
See Also:
OQLQuery

newDList

DList newDList()
Create a new DList object.

Returns:
The new DList object.
See Also:
DList

newDBag

DBag newDBag()
Create a new DBag object.

Returns:
The new DBag object.
See Also:
DBag

newDSet

DSet newDSet()
Create a new DSet object.

Returns:
The new DSet object.
See Also:
DSet

newDArray

DArray newDArray()
Create a new DArray object.

Returns:
The new DArray object.
See Also:
DArray

newDMap

DMap newDMap()
Create a new DMap object.

Returns:
The new DMap object.
See Also:
DMap

getObjectId

String getObjectId(Object obj)
Get a String representation of the object's identifier.

Parameters:
obj - The object whose identifier is being accessed.
Returns:
The object's identifier in the form of a String

getDatabase

Database getDatabase(Object obj)
Get the Database that contains the object obj.

Parameters:
obj - The object.
Returns:
The Database that contains the object.


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.