Enum KeyGeneratorType
- java.lang.Object
-
- java.lang.Enum<KeyGeneratorType>
-
- pro.chenggang.project.reactive.mybatis.support.r2dbc.executor.key.KeyGeneratorType
-
- All Implemented Interfaces:
Serializable,Comparable<KeyGeneratorType>
public enum KeyGeneratorType extends Enum<KeyGeneratorType>
The enum Key generator type.- Since:
- 1.0.2
- Version:
- 1.0.2
- Author:
- Gang Cheng
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONEno generated keySELECT_KEY_AFTERselect key afterSELECT_KEY_BEFOREselect key beforeSIMPLE_RETURNsimple returned generated value
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyGeneratorTypevalueOf(String name)Returns the enum constant of this type with the specified name.static KeyGeneratorType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final KeyGeneratorType NONE
no generated key
-
SIMPLE_RETURN
public static final KeyGeneratorType SIMPLE_RETURN
simple returned generated value
-
SELECT_KEY_BEFORE
public static final KeyGeneratorType SELECT_KEY_BEFORE
select key before
-
SELECT_KEY_AFTER
public static final KeyGeneratorType SELECT_KEY_AFTER
select key after
-
-
Method Detail
-
values
public static KeyGeneratorType[] 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 (KeyGeneratorType c : KeyGeneratorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyGeneratorType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-