|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.silverpeas.persistence.Transaction
@Service public class Transaction
A transaction. All processes it performs will be in charge by the JPA transaction manager.
| Nested Class Summary | |
|---|---|
static interface |
Transaction.Process<RETURN_VALUE>
Defines a process to execute. |
| Constructor Summary | |
|---|---|
Transaction()
|
|
| Method Summary | ||
|---|---|---|
static Transaction |
getTransaction()
Gets a transaction instance in order to perform some tasks transactionally. |
|
|
perform(Transaction.Process<RETURN_VALUE> process)
The given process is executed in a transaction : support a current transaction, create a new one if none exists. |
|
static
|
performInOne(Transaction.Process<RETURN_VALUE> process)
Performs in a single transaction the specified process. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Transaction()
| Method Detail |
|---|
public static Transaction getTransaction()
public static <RETURN_VALUE> RETURN_VALUE performInOne(Transaction.Process<RETURN_VALUE> process)
RETURN_VALUE - the type of the return value.process - the process to execute in a transaction.
@Transactional public <RETURN_VALUE> RETURN_VALUE perform(Transaction.Process<RETURN_VALUE> process)
RETURN_VALUE - the type of the return value.process - the process to execute in a transaction.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||