DODS 7.6 API

org.enhydra.dods.jta
Class JTAObjectIdAllocator

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

public class JTAObjectIdAllocator
extends StandardObjectIdAllocator

JTAObjectIdAllocator 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
JTAObjectIdAllocator(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

JTAObjectIdAllocator

public JTAObjectIdAllocator(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.6 API