Class VTransactionManagerImpl

java.lang.Object
io.vertigo.commons.impl.transaction.VTransactionManagerImpl
All Implemented Interfaces:
VTransactionManager, io.vertigo.core.node.component.Component, io.vertigo.core.node.component.CoreComponent, io.vertigo.core.node.component.Manager

public final class VTransactionManagerImpl extends Object implements VTransactionManager
Implémentation standard du gestionnaire de transactions.
Author:
pchretien
  • Constructor Details

    • VTransactionManagerImpl

      public VTransactionManagerImpl()
  • Method Details

    • getCurrentTransaction

      public VTransaction getCurrentTransaction()
      Récupère la transaction courante. Il est nécessaire que cette transaction existe.
      Specified by:
      getCurrentTransaction in interface VTransactionManager
      Returns:
      Transaction courante.
    • hasCurrentTransaction

      public boolean hasCurrentTransaction()
      Indique si une transaction courante existe.
      Specified by:
      hasCurrentTransaction in interface VTransactionManager
      Returns:
      Si il existe une transcation courante.
    • createCurrentTransaction

      public VTransactionWritable createCurrentTransaction()
      Crée la transaction courante. Il est nécessaire qu'aucune transaction courante vivante n'existe.
      Specified by:
      createCurrentTransaction in interface VTransactionManager
      Returns:
      Transaction courante.
    • createAutonomousTransaction

      public VTransactionWritable createAutonomousTransaction()
      Crée une transaction autonome sous la transaction courante déjà démarrée. Il est impératif qu'une transaction courante vivante existe. Cette transaction deviendra la transaction courante et devra être commitée ou rollbackée avant d'agir sur la transaction parente.
      Specified by:
      createAutonomousTransaction in interface VTransactionManager
      Returns:
      Nouvelle transaction courante