jodd.db
Interface DbSessionProvider

All Known Implementing Classes:
DbJtxSessionProvider, ThreadDbSessionProvider

public interface DbSessionProvider

Provide DbSession when requested by DbQuery. Important: DbSessionProvider implementations should NOT create new db sessions! DbSession should be already created and somehow assigned to DbSessionProvider implementation. User must control session opening and closing, and not DbSessionProvider, as we can not figure weather connection should be closed after closing a query; or still hold on open for the next query.


Method Summary
 DbSession getDbSession()
          Returns DbSession.
 

Method Detail

getDbSession

DbSession getDbSession()
Returns DbSession. May throws an exception if session can not be provided.



Copyright © 2003-2013 Jodd Team