org.apache.myfaces.orchestra.connectionManager
Interface DisconnectableConnection

All Superinterfaces:
Connection, Wrapper

public interface DisconnectableConnection
extends Connection

A workaround to the lazy-init-in-view problem.
We hand out DisconnectableConnections to the JPA-implementation, now, if a lazy-init happens during the view rendering we are able to disconnect it again at the end of the request (using a servlet filter). Once the JPA-implementation would like to do something with the connection again, we simply request a new from the connection pool


Field Summary
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Method Summary
 void disconnect()
           
 Connection getConnection()
           
 
Methods inherited from interface java.sql.Connection
clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Method Detail

disconnect

void disconnect()

getConnection

Connection getConnection()


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.