/** * 清理本地线程的数据源 * * @param transaction */ @Override protected void doCleanupAfterCompletion(final Object transaction) { super.doCleanupAfterCompletion(transaction); DynamicDataSourceHolder.clearDataSource(); } }
@Override protected void doCleanupAfterCompletion(Object transaction) { super.doCleanupAfterCompletion(transaction); //清理本地线程的数据源 DynamicDataSourceHolder.clearDataSource(); } }
/** * 清理本地线程的数据源 * @param transaction */ @Override protected void doCleanupAfterCompletion(Object transaction) { super.doCleanupAfterCompletion(transaction); DynamicDataSourceHolder.clearDataSource(); } }
@Override protected void doCleanupAfterCompletion(Object transaction) { super.doCleanupAfterCompletion(transaction); DBContextHolder.clear(); LOG.debug("<--Transaction end!"); }
/** * 清理本地线程的数据源 */ @Override protected void doCleanupAfterCompletion(Object transaction) { super.doCleanupAfterCompletion(transaction); DataSourceHolder.clearDataSource(); } }
@Override protected void doCleanupAfterCompletion(Object transaction) { super.doCleanupAfterCompletion(transaction); DataSourceHolder.clearDataSource(); logger.info("~~~~~~~~~~~~~~~~~~~Transaction end~~~~~~~~~~~~~~~~~~~"); } }
/** * 清理本地线程的数据源 * @param transaction */ @Override protected void doCleanupAfterCompletion(Object transaction) { super.doCleanupAfterCompletion(transaction); DynamicDataSourceHolder.clearDataSource(); } }
@Override protected void doCleanupAfterCompletion(Object transaction) { MolgenisTransaction molgenisTransaction = (MolgenisTransaction) transaction; if (LOG.isDebugEnabled()) { LOG.debug("Cleanup transaction [{}]", molgenisTransaction.getId()); } super.doCleanupAfterCompletion(molgenisTransaction.getDataSourceTransaction()); TransactionSynchronizationManager.unbindResourceIfPossible(TRANSACTION_ID_RESOURCE_NAME); transactionListeners.forEach(j -> j.doCleanupAfterCompletion(molgenisTransaction.getId())); }
protected void doCleanupAfterCompletion(Object transaction) { ContextSourceAndDataSourceTransactionObject actualTransactionObject = (ContextSourceAndDataSourceTransactionObject) transaction; super.doCleanupAfterCompletion(actualTransactionObject .getDataSourceTransactionObject()); ldapManagerDelegate.doCleanupAfterCompletion(actualTransactionObject .getLdapTransactionObject()); }
protected void doCleanupAfterCompletion(Object transaction) { ContextSourceAndDataSourceTransactionObject actualTransactionObject = (ContextSourceAndDataSourceTransactionObject) transaction; super.doCleanupAfterCompletion(actualTransactionObject .getDataSourceTransactionObject()); ldapManagerDelegate.doCleanupAfterCompletion(actualTransactionObject .getLdapTransactionObject()); }
protected void doCleanupAfterCompletion(Object transaction) { ContextSourceAndDataSourceTransactionObject actualTransactionObject = (ContextSourceAndDataSourceTransactionObject) transaction; super.doCleanupAfterCompletion(actualTransactionObject .getDataSourceTransactionObject()); ldapManagerDelegate.doCleanupAfterCompletion(actualTransactionObject .getLdapTransactionObject()); }
protected void doCleanupAfterCompletion(Object transaction) { ContextSourceAndDataSourceTransactionObject actualTransactionObject = (ContextSourceAndDataSourceTransactionObject) transaction; super.doCleanupAfterCompletion(actualTransactionObject .getDataSourceTransactionObject()); ldapManagerDelegate.doCleanupAfterCompletion(actualTransactionObject .getLdapTransactionObject()); }
protected void doBegin(Object transaction, TransactionDefinition definition) { ContextSourceAndDataSourceTransactionObject actualTransactionObject = (ContextSourceAndDataSourceTransactionObject) transaction; super.doBegin(actualTransactionObject.getDataSourceTransactionObject(), definition); try { ldapManagerDelegate.doBegin(actualTransactionObject .getLdapTransactionObject(), definition); } catch (TransactionException e) { // Failed to start LDAP transaction - make sure we clean up properly super.doCleanupAfterCompletion(actualTransactionObject.getDataSourceTransactionObject()); throw e; } }
protected void doBegin(Object transaction, TransactionDefinition definition) { ContextSourceAndDataSourceTransactionObject actualTransactionObject = (ContextSourceAndDataSourceTransactionObject) transaction; super.doBegin(actualTransactionObject.getDataSourceTransactionObject(), definition); try { ldapManagerDelegate.doBegin(actualTransactionObject .getLdapTransactionObject(), definition); } catch (TransactionException e) { // Failed to start LDAP transaction - make sure we clean up properly super.doCleanupAfterCompletion(actualTransactionObject.getDataSourceTransactionObject()); throw e; } }
protected void doBegin(Object transaction, TransactionDefinition definition) { ContextSourceAndDataSourceTransactionObject actualTransactionObject = (ContextSourceAndDataSourceTransactionObject) transaction; super.doBegin(actualTransactionObject.getDataSourceTransactionObject(), definition); try { ldapManagerDelegate.doBegin(actualTransactionObject .getLdapTransactionObject(), definition); } catch (TransactionException e) { // Failed to start LDAP transaction - make sure we clean up properly super.doCleanupAfterCompletion(actualTransactionObject.getDataSourceTransactionObject()); throw e; } }
protected void doBegin(Object transaction, TransactionDefinition definition) { ContextSourceAndDataSourceTransactionObject actualTransactionObject = (ContextSourceAndDataSourceTransactionObject) transaction; super.doBegin(actualTransactionObject.getDataSourceTransactionObject(), definition); try { ldapManagerDelegate.doBegin(actualTransactionObject .getLdapTransactionObject(), definition); } catch (TransactionException e) { // Failed to start LDAP transaction - make sure we clean up properly super.doCleanupAfterCompletion(actualTransactionObject.getDataSourceTransactionObject()); throw e; } }