public class TixTemplate extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
TixTemplate.TxWith<T> |
static interface |
TixTemplate.TxWithout |
| Constructor and Description |
|---|
TixTemplate(org.springframework.transaction.PlatformTransactionManager txMgr) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertExistingTransaction()
Vérifie qu'une transaction est ouverte
Correspond au @Transaction(REQUIRED)
|
org.springframework.transaction.PlatformTransactionManager |
getTransactionManager() |
<T> T |
txWith(TixTemplate.TxWith<T> callback)
Permet d'executer un callback dans un contexte transactionnel
Permet d'utiliser des lambda Java8
txWith() veut dire que la méthode *renvoie* une valeur de retour
|
void |
txWithout(TixTemplate.TxWithout callback)
Permet d'executer un callback dans un contexte transactionnel
Permet d'utiliser des lambda Java8
txWithout() veut dire que la méthode ne renvoie pas de valeur de retour
|
public TixTemplate(org.springframework.transaction.PlatformTransactionManager txMgr)
public void assertExistingTransaction()
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
public void txWithout(TixTemplate.TxWithout callback)
callback - public <T> T txWith(TixTemplate.TxWith<T> callback)
callback - Copyright © 2018 Pivotal Software, Inc.. All rights reserved.