Enum SqlDataRowVersion

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SqlDataRowVersion>

    public enum SqlDataRowVersion
    extends java.lang.Enum<SqlDataRowVersion>
    Sets the DataRowVersion to use when you load Value.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      Current
      The row contains current values.
      Default
      The default version of System.Data.DataRowState.
      Original
      The row contains its original values.
      Proposed
      The row contains a proposed value.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static SqlDataRowVersion getSqlDataRowVersion​(int value)
      retreives the enum constant of the specified value, if exists.
      int getValue()
      Order is important in enums.By using getValue() method, each enum constant index can be found, just like array index.
      static SqlDataRowVersion valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SqlDataRowVersion[] 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

      • Original

        public static final SqlDataRowVersion Original
        The row contains its original values.
      • Current

        public static final SqlDataRowVersion Current
        The row contains current values.
      • Proposed

        public static final SqlDataRowVersion Proposed
        The row contains a proposed value.
      • Default

        public static final SqlDataRowVersion Default
        The default version of System.Data.DataRowState. For a DataRowState value of Added, Modified or Deleted, the default version is Current. For a System.Data.DataRowState value of Detached, the version is Proposed.
    • Method Detail

      • values

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

        public static SqlDataRowVersion 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
      • getValue

        public int getValue()
        Order is important in enums.By using getValue() method, each enum constant index can be found, just like array index.
        Returns:
        enum constant index
      • getSqlDataRowVersion

        public static SqlDataRowVersion getSqlDataRowVersion​(int value)
                                                      throws java.lang.IllegalArgumentException
        retreives the enum constant of the specified value, if exists.
        Parameters:
        value - enum constant index
        Returns:
        enum constant
        Throws:
        java.lang.IllegalArgumentException