org.apache.ojb.odmg
Class ImplementationJTAImpl

java.lang.Object
  extended by org.apache.ojb.odmg.ImplementationImpl
      extended by org.apache.ojb.odmg.ImplementationJTAImpl
All Implemented Interfaces:
ImplementationExt, Implementation

public class ImplementationJTAImpl
extends ImplementationImpl

Implementation of the ODMG Implementation interface for use in managed enviroments.

Version:
$Id: ImplementationJTAImpl.java 365261 2005-12-31 18:28:32Z arminw $

Method Summary
 Transaction currentTransaction()
          Get the current Transaction for the thread.
 Database getDatabase(java.lang.Object obj)
          Returns the current used database or null.
 DArray newDArray()
          Create a new DArray 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()
          Not supported in managed-environment.
 
Methods inherited from class org.apache.ojb.odmg.ImplementationImpl
getConfigurator, getCurrentPBKey, getObjectId, getOqlCollectionClass, getTxManager, hasOpenTransaction, isImpliciteWriteLocks, isImplicitLocking, isManaged, isOrdering, newDatabase, setConfigurator, setImpliciteWriteLocks, setImplicitLocking, setImplicitLockingBackward, setManaged, setOqlCollectionClass, setOrdering, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDatabase

public Database getDatabase(java.lang.Object obj)
Description copied from class: ImplementationImpl
Returns the current used database or null.

Specified by:
getDatabase in interface Implementation
Overrides:
getDatabase in class ImplementationImpl
Parameters:
obj - The object.
Returns:
The Database that contains the object.

currentTransaction

public Transaction currentTransaction()
Description copied from class: ImplementationImpl
Get the current Transaction for the thread.

Specified by:
currentTransaction in interface Implementation
Overrides:
currentTransaction in class ImplementationImpl
Returns:
The current Transaction object or null if there is none.
See Also:
Transaction

newOQLQuery

public OQLQuery newOQLQuery()
Description copied from class: ImplementationImpl
Create a new OQLQuery object.

Specified by:
newOQLQuery in interface Implementation
Overrides:
newOQLQuery in class ImplementationImpl
Returns:
The new OQLQuery object.
See Also:
OQLQuery

newDList

public DList newDList()
Description copied from class: ImplementationImpl
Create a new DList object.

Specified by:
newDList in interface Implementation
Overrides:
newDList in class ImplementationImpl
Returns:
The new DList object.
See Also:
DList

newDBag

public DBag newDBag()
Description copied from class: ImplementationImpl
Create a new DBag object.

Specified by:
newDBag in interface Implementation
Overrides:
newDBag in class ImplementationImpl
Returns:
The new DBag object.
See Also:
DBag

newDSet

public DSet newDSet()
Description copied from class: ImplementationImpl
Create a new DSet object.

Specified by:
newDSet in interface Implementation
Overrides:
newDSet in class ImplementationImpl
Returns:
The new DSet object.
See Also:
DSet

newDArray

public DArray newDArray()
Description copied from class: ImplementationImpl
Create a new DArray object.

Specified by:
newDArray in interface Implementation
Overrides:
newDArray in class ImplementationImpl
Returns:
The new DArray object.
See Also:
DArray

newDMap

public DMap newDMap()
Description copied from class: ImplementationImpl
Create a new DMap object.

Specified by:
newDMap in interface Implementation
Overrides:
newDMap in class ImplementationImpl
Returns:
The new DMap object.
See Also:
DMap

newTransaction

public Transaction newTransaction()
Not supported in managed-environment.

Specified by:
newTransaction in interface Implementation
Overrides:
newTransaction in class ImplementationImpl
Returns:
The newly created Transaction instance.
See Also:
Transaction


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30