public enum SqlDataRowVersion extends java.lang.Enum<SqlDataRowVersion>
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.
|
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.
|
public static final SqlDataRowVersion Original
public static final SqlDataRowVersion Current
public static final SqlDataRowVersion Proposed
public static final SqlDataRowVersion Default
public static SqlDataRowVersion[] values()
for (SqlDataRowVersion c : SqlDataRowVersion.values()) System.out.println(c);
public static SqlDataRowVersion valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static SqlDataRowVersion getSqlDataRowVersion(int value) throws java.lang.IllegalArgumentException
value
- enum constant indexjava.lang.IllegalArgumentException