Class TransactionIdDataGenerator

java.lang.Object
org.alfresco.repo.audit.generator.AbstractDataGenerator
org.alfresco.repo.audit.generator.TransactionIdDataGenerator
All Implemented Interfaces:
DataGenerator, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

public class TransactionIdDataGenerator extends AbstractDataGenerator
Gives back the currently transaction ID.
Since:
3.2
Author:
Derek Hulley
  • Constructor Details

    • TransactionIdDataGenerator

      public TransactionIdDataGenerator()
  • Method Details

    • getData

      public Serializable getData() throws Throwable
      Description copied from interface: DataGenerator
      Get the data generated by the instance.
      Returns:
      Returns the current transaction ID (null if not in a transction)
      Throws:
      Throwable - All exceptions are handled by the framework