Top Description Fields Constructors Methods
org.h2.engine

public final Class GeneratedKeysMode

extends Object
Class Inheritance
Imports
org.h2.message.DbException

Modes of generated keys' gathering.

Field Summary

Modifier and TypeField and Description
public static final int
AUTO

Generated keys should be configured automatically.

public static final int
COLUMN_NAMES

Use specified column names to return generated keys from.

public static final int
COLUMN_NUMBERS

Use specified column indices to return generated keys from.

public static final int
NONE

Generated keys are not needed.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static int

Returns:

mode for the specified generated keys request
valueOf
(Object
null or false if generated keys are not needed, true if generated keys should be configured automatically, int[] to specify column indices to return generated keys from, or String[] to specify column names to return generated keys from
generatedKeysRequest
)

Determines mode of generated keys' gathering.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

AUTOback to summary
public static final int AUTO

Generated keys should be configured automatically.

COLUMN_NAMESback to summary
public static final int COLUMN_NAMES

Use specified column names to return generated keys from.

COLUMN_NUMBERSback to summary
public static final int COLUMN_NUMBERS

Use specified column indices to return generated keys from.

NONEback to summary
public static final int NONE

Generated keys are not needed.

Constructor Detail

GeneratedKeysModeback to summary
private GeneratedKeysMode()

Method Detail

valueOfback to summary
public static int valueOf(Object generatedKeysRequest)

Determines mode of generated keys' gathering.

Parameters
generatedKeysRequest:Object

null or false if generated keys are not needed, true if generated keys should be configured automatically, int[] to specify column indices to return generated keys from, or String[] to specify column names to return generated keys from

Returns:int

mode for the specified generated keys request