Package org.h2.engine
Class GeneratedKeysMode
java.lang.Object
org.h2.engine.GeneratedKeysMode
Modes of generated keys' gathering.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Generated keys should be configured automatically.static final int
Use specified column names to return generated keys from.static final int
Use specified column indices to return generated keys from.static final int
Generated keys are not needed. -
Method Summary
-
Field Details
-
NONE
public static final int NONEGenerated keys are not needed.- See Also:
-
AUTO
public static final int AUTOGenerated keys should be configured automatically.- See Also:
-
COLUMN_NUMBERS
public static final int COLUMN_NUMBERSUse specified column indices to return generated keys from.- See Also:
-
COLUMN_NAMES
public static final int COLUMN_NAMESUse specified column names to return generated keys from.- See Also:
-
-
Method Details
-
valueOf
Determines mode of generated keys' gathering.- Parameters:
generatedKeysRequest
-null
orfalse
if generated keys are not needed,true
if generated keys should be configured automatically,int[]
to specify column indices to return generated keys from, orString[]
to specify column names to return generated keys from- Returns:
- mode for the specified generated keys request
-