|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CurrentTenantIdentifierResolver
A callback registered with the SessionFactory
that is responsible for resolving the
current tenant identifier for use with CurrentSessionContext
and
SessionFactory.getCurrentSession()
Method Summary | |
---|---|
String |
resolveCurrentTenantIdentifier()
Resolve the current tenant identifier. |
boolean |
validateExistingCurrentSessions()
Should we validate that the tenant identifier on "current sessions" that already exist when CurrentSessionContext.currentSession() is called matches the value returned here from
resolveCurrentTenantIdentifier() ? |
Method Detail |
---|
String resolveCurrentTenantIdentifier()
boolean validateExistingCurrentSessions()
CurrentSessionContext.currentSession()
is called matches the value returned here from
resolveCurrentTenantIdentifier()
?
true
indicates that the extra validation will be performed; false
indicates it will not.TenantIdentifierMismatchException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |