org.csc.phynixx.connection
Interface IPhynixxManagedConnectionFactory<C extends IPhynixxConnection>

All Superinterfaces:
IPhynixxConnectionFactory<C>
All Known Implementing Classes:
PhynixxManagedConnectionFactory, PooledPhynixxManagedConnectionFactory

public interface IPhynixxManagedConnectionFactory<C extends IPhynixxConnection>
extends IPhynixxConnectionFactory<C>


Method Summary
 void close()
          closes all currently opened connections
 C getConnection()
          gets an new instance of the connection
 IPhynixxManagedConnection<C> getManagedConnection()
          the returned connection has to be explicitly closed
 boolean isAutocommitAware()
           
 boolean isSynchronizeConnection()
           
 void setAutocommitAware(boolean state)
          Default ist true
 void setSynchronizeConnection(boolean state)
           
 
Methods inherited from interface org.csc.phynixx.connection.IPhynixxConnectionFactory
getConnectionInterface
 

Method Detail

getManagedConnection

IPhynixxManagedConnection<C> getManagedConnection()
the returned connection has to be explicitly closed

Returns:
a ready for use managed connection

getConnection

C getConnection()
Description copied from interface: IPhynixxConnectionFactory
gets an new instance of the connection

Specified by:
getConnection in interface IPhynixxConnectionFactory<C extends IPhynixxConnection>
Returns:

setAutocommitAware

void setAutocommitAware(boolean state)
Default ist true


isAutocommitAware

boolean isAutocommitAware()

setSynchronizeConnection

void setSynchronizeConnection(boolean state)

isSynchronizeConnection

boolean isSynchronizeConnection()

close

void close()
closes all currently opened connections

Specified by:
close in interface IPhynixxConnectionFactory<C extends IPhynixxConnection>


Copyright © 2015. All rights reserved.