Package org.dbunit.dataset
Class Column.AutoIncrement
java.lang.Object
org.dbunit.dataset.Column.AutoIncrement
- Enclosing class:
Column
Enumeration for valid auto-increment values provided by JDBC driver implementations.
- Since:
- 2.4.3
- Version:
- $Revision$ $Date$
- Author:
- gommma, Last changed by: $Author$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Column.AutoIncrementIndicates that the column is not auto-incremented.static final Column.AutoIncrementIndicates that whether the column is auto-incremented is unknown.static final Column.AutoIncrementIndicates that the column is auto-incremented. -
Method Summary
Modifier and TypeMethodDescriptionstatic Column.AutoIncrementautoIncrementValue(String isAutoIncrement) Searches the enumeration type for the given String provided by the JDBC driver.getKey()Returns the key identifying this auto-increment value.toString()
-
Field Details
-
YES
Indicates that the column is auto-incremented. -
NO
Indicates that the column is not auto-incremented. -
UNKNOWN
Indicates that whether the column is auto-incremented is unknown.
-
-
Method Details
-
getKey
Returns the key identifying this auto-increment value.- Returns:
- the key identifying this auto-increment value.
-
autoIncrementValue
Searches the enumeration type for the given String provided by the JDBC driver.If the parameter
autoIncrementValue- equalsIgnoreCase "YES" or equals "1" then
YESis returned
- Parameters:
isAutoIncrement- The String from the JDBC driver.- Returns:
- The enumeration
- equalsIgnoreCase "YES" or equals "1" then
-
toString
-