Enum AdbaSessionProperty.Caching

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AS_NEW
      The returned Session has no state other than that of a Session attached to a newly created data source resource modified as specified by the other properties.
      CACHED
      The returned Session has the state specified by the other properties but may have additional state that differs from that of a new Session.
      NEW
      The returned Session is required to be backed by a completely new data source resource configured exactly as specified by the other properties.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static AdbaSessionProperty.Caching valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static AdbaSessionProperty.Caching[] 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

      • NEW

        public static final AdbaSessionProperty.Caching NEW
        The returned Session is required to be backed by a completely new data source resource configured exactly as specified by the other properties. Use this with caution and only when absolutely necessary. Use AS_NEW instead if at all possible. This should be used only to work around some limitation of the database or the implementation.
      • AS_NEW

        public static final AdbaSessionProperty.Caching AS_NEW
        The returned Session has no state other than that of a Session attached to a newly created data source resource modified as specified by the other properties. May not be strictly new but has the same behavior as if it were. The Session may be NEW. The default.
    • Method Detail

      • values

        public static AdbaSessionProperty.Caching[] 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 (AdbaSessionProperty.Caching c : AdbaSessionProperty.Caching.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AdbaSessionProperty.Caching 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