public abstract class AbstractInterceptorDataSourceSwitcherService extends AbstractDataSourceSwitcherService implements InterceptorDataSourceSwitcherService
| Constructor and Description |
|---|
AbstractInterceptorDataSourceSwitcherService(String userDetailsServiceName) |
AbstractInterceptorDataSourceSwitcherService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterGetConnection(Connection connection)
Operace, které se provedou po vyzvednutí spojení
|
<Type extends ConnectionInterceptor> |
disableInterceptor(Class<Type> type)
Zakázání interceptorů
|
void |
disableInterceptors()
Zakázání všech interceptorů
|
void |
enableInterceptors()
Povolení všech interceptorů
|
<Type extends ConnectionInterceptor> |
enableInterceptors(Class<Type> type)
Zakázání interceptorů
|
protected boolean |
isEnableInterceptors(Connection connection) |
void |
setConnectionInterceptorClasses(List<Class<? extends ConnectionInterceptor>> connectionInterceptorClasses) |
void |
setConnectionInterceptors(List<ConnectionInterceptor> connectionInterceptors) |
afterPropertiesSet, determineCurrentLookupKey, execute, getConnection, getConnection, getConnection, getConnection, getCurrentDataSource, getCurrentDataSourceNameFromUserDetails, getDataSource, getDataSources, getDataSources, getUserDetails, getUserDetailService, isAvailable, setApplicationContext, setDataSourceDescriptors, setTargetDataSourcesdetermineTargetDataSource, isWrapperFor, resolveSpecifiedDataSource, resolveSpecifiedLookupKey, setDataSourceLookup, setDefaultTargetDataSource, setLenientFallback, unwrapgetLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, getCurrentDataSource, getDataSources, getDataSources, isAvailablepublic AbstractInterceptorDataSourceSwitcherService(String userDetailsServiceName)
userDetailsServiceName - Název třídy pro získání uživatelepublic AbstractInterceptorDataSourceSwitcherService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
userDetailsService - implementace služby pro získání uživatelepublic void setConnectionInterceptorClasses(List<Class<? extends ConnectionInterceptor>> connectionInterceptorClasses)
setConnectionInterceptorClasses in interface InterceptorDataSourceSwitcherServiceconnectionInterceptorClasses - Seznam tříd definujicí operace, které se mají provést po vyzvednutí spojení do DBpublic void setConnectionInterceptors(List<ConnectionInterceptor> connectionInterceptors)
setConnectionInterceptors in interface InterceptorDataSourceSwitcherServiceconnectionInterceptors - seznam operace, které se mají provést po vyzvednutí spojení do DBprotected void afterGetConnection(Connection connection)
afterGetConnection in class AbstractDataSourceSwitcherServiceconnection - aktuální spojeníprotected boolean isEnableInterceptors(Connection connection)
public void disableInterceptors()
InterceptorDataSourceSwitcherServicedisableInterceptors in interface InterceptorDataSourceSwitcherServicepublic void enableInterceptors()
InterceptorDataSourceSwitcherServiceenableInterceptors in interface InterceptorDataSourceSwitcherServicepublic <Type extends ConnectionInterceptor> void disableInterceptor(Class<Type> type)
InterceptorDataSourceSwitcherServicedisableInterceptor in interface InterceptorDataSourceSwitcherServicetype - typ zakazovanách interceptorůpublic <Type extends ConnectionInterceptor> void enableInterceptors(Class<Type> type)
InterceptorDataSourceSwitcherServiceenableInterceptors in interface InterceptorDataSourceSwitcherServicetype - typ povolovaných interceptorůCopyright © 2017 DataLite. All rights reserved.