org.apache.ojb.odmg
Class OJBJ2EE_2

java.lang.Object
  extended byorg.apache.ojb.odmg.OJB
      extended byorg.apache.ojb.odmg.OJBJ2EE_2
All Implemented Interfaces:
Implementation

public class OJBJ2EE_2
extends OJB

Author:
Armin Waibel

Method Summary
 Transaction currentTransaction()
          Get the current Transaction for the thread.
 Database getDatabase(java.lang.Object obj)
          Returns the current used database or null.
static Implementation getInstance()
          Return new instance of the Implementation class.
 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.
 org.apache.ojb.odmg.oql.EnhancedOQLQuery newOQLQuery()
          Create a new OQLQuery object.
 Transaction newTransaction()
          Not supported in managed-environment.
 
Methods inherited from class org.apache.ojb.odmg.OJB
getConfigurator, getCurrentDatabase, getCurrentPBKey, getObjectId, newDatabase, setConfigurator, setImplicitLocking
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Implementation getInstance()
Return new instance of the Implementation class.


getDatabase

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

Specified by:
getDatabase in interface Implementation
Overrides:
getDatabase in class OJB

currentTransaction

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

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

newOQLQuery

public org.apache.ojb.odmg.oql.EnhancedOQLQuery newOQLQuery()
Description copied from class: OJB
Create a new OQLQuery object.

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

newDList

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

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

newDBag

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

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

newDSet

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

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

newDArray

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

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

newDMap

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

Specified by:
newDMap in interface Implementation
Overrides:
newDMap in class OJB
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 OJB
Returns:
The newly created Transaction instance.
See Also:
Transaction


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14