@FunctionalInterface
public interface DbSessionProvider
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.Modifier and Type | Method and Description |
---|---|
DbSession |
getDbSession()
Returns
DbSession . |
Copyright © 2003-present Jodd Team