DODS 7.1 API

org.enhydra.dods.jta
Class GeronimoJTAObjectIdAllocator

java.lang.Object
  extended by com.lutris.appserver.server.sql.standard.StandardObjectIdAllocator
      extended by org.enhydra.dods.jta.GeronimoJTAObjectIdAllocator
All Implemented Interfaces:
ObjectIdAllocator

public class GeronimoJTAObjectIdAllocator
extends StandardObjectIdAllocator

GeronimoJTAObjectIdAllocator extends StandardObjectIdAllocator to tweak it's expectations on allocated connections.

The actual DBConnection implementation allocated here is responisible for suspending (possibly) ongoing UserTransaction, beginning new one for ObjectId allocation. Same connection then commits or rolls back local UserTransaction, and (on release) resumes (possibly) suspended one.

Version:
0.11
Author:
V.Puskas
See Also:
DBConnection

Field Summary
 
Fields inherited from class com.lutris.appserver.server.sql.standard.StandardObjectIdAllocator
logicalDatabase, primaryLogicalDatabaseName
 
Constructor Summary
GeronimoJTAObjectIdAllocator(LogicalDatabase lDb, Config objIdConfig)
           
 
Method Summary
protected  DBConnection allocateConnection()
           
 
Methods inherited from class com.lutris.appserver.server.sql.standard.StandardObjectIdAllocator
allocate, allocate, checkOId, checkOId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeronimoJTAObjectIdAllocator

public GeronimoJTAObjectIdAllocator(LogicalDatabase lDb,
                                    Config objIdConfig)
                             throws ConfigException
Throws:
ConfigException
Method Detail

allocateConnection

protected DBConnection allocateConnection()
                                   throws java.sql.SQLException
Overrides:
allocateConnection in class StandardObjectIdAllocator
Throws:
java.sql.SQLException

DODS 7.1 API