Enum TransactionMode

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ALL
      Transactional support across different keys of either the same or different entities.
      ATTRIBUTE
      Transactional support within the same attribute (i.e.
      ENTITY
      Transactional support within the same entity (i.e.
      KEY
      Transactional support within the same entity key (i.e.
      NONE
      No transactional support.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static TransactionMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static TransactionMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • ATTRIBUTE

        public static final TransactionMode ATTRIBUTE
        Transactional support within the same attribute (i.e. colliding writes to the same attribute are rejected).
      • KEY

        public static final TransactionMode KEY
        Transactional support within the same entity key (i.e. transaction can contain only single entity key and only single entity type). Note: all attributes within specified transaction *must* have *at least* mode set to KEY, otherwise IllegalArgumentException is thrown. The actual mode of each transaction is defined to be the maximal transaction mode from all attributes *written* by the transaction.
      • ENTITY

        public static final TransactionMode ENTITY
        Transactional support within the same entity (i.e. transaction can contain multiple entity keys but only single entity type). Note: all attributes within specified transaction *must* have *at least* mode set to ENTITY, otherwise IllegalArgumentException is thrown. The actual mode of each transaction is defined to be the maximal transaction mode from all attributes *written* by the transaction.
      • ALL

        public static final TransactionMode ALL
        Transactional support across different keys of either the same or different entities. Note: all attributes within specified transaction *must* have the transaction type set to ALL, otherwise IllegalArgumentException will be thrown.
    • Method Detail

      • values

        public static TransactionMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TransactionMode c : TransactionMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TransactionMode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null