org.datanucleus.store.json
Class ConnectionFactoryImpl.ManagedConnectionImpl

java.lang.Object
  extended by org.datanucleus.store.json.ConnectionFactoryImpl.ManagedConnectionImpl
All Implemented Interfaces:
org.datanucleus.ManagedConnection
Enclosing class:
ConnectionFactoryImpl

public static class ConnectionFactoryImpl.ManagedConnectionImpl
extends java.lang.Object
implements org.datanucleus.ManagedConnection

Implementation of a ManagedConnection for LDAP.


Constructor Summary
ConnectionFactoryImpl.ManagedConnectionImpl(org.datanucleus.OMFContext omf, java.util.Map options)
           
 
Method Summary
 void addListener(org.datanucleus.ManagedConnectionResourceListener listener)
           
 void close()
           
 void flush()
           
 java.lang.Object getConnection()
           
 javax.transaction.xa.XAResource getXAResource()
           
 boolean isLocked()
           
 void lock()
           
 void release()
           
 void removeListener(org.datanucleus.ManagedConnectionResourceListener listener)
           
 void setManagedResource()
           
 void unlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionFactoryImpl.ManagedConnectionImpl

public ConnectionFactoryImpl.ManagedConnectionImpl(org.datanucleus.OMFContext omf,
                                                   java.util.Map options)
Method Detail

addListener

public void addListener(org.datanucleus.ManagedConnectionResourceListener listener)
Specified by:
addListener in interface org.datanucleus.ManagedConnection

close

public void close()
Specified by:
close in interface org.datanucleus.ManagedConnection

flush

public void flush()
Specified by:
flush in interface org.datanucleus.ManagedConnection

getConnection

public java.lang.Object getConnection()
Specified by:
getConnection in interface org.datanucleus.ManagedConnection

getXAResource

public javax.transaction.xa.XAResource getXAResource()
Specified by:
getXAResource in interface org.datanucleus.ManagedConnection

isLocked

public boolean isLocked()
Specified by:
isLocked in interface org.datanucleus.ManagedConnection

lock

public void lock()
Specified by:
lock in interface org.datanucleus.ManagedConnection

release

public void release()
Specified by:
release in interface org.datanucleus.ManagedConnection

removeListener

public void removeListener(org.datanucleus.ManagedConnectionResourceListener listener)
Specified by:
removeListener in interface org.datanucleus.ManagedConnection

setManagedResource

public void setManagedResource()
Specified by:
setManagedResource in interface org.datanucleus.ManagedConnection

unlock

public void unlock()
Specified by:
unlock in interface org.datanucleus.ManagedConnection


Copyright © 2009. All Rights Reserved.