Package org.h2.engine

Class GeneratedKeysMode

java.lang.Object
org.h2.engine.GeneratedKeysMode

public final class GeneratedKeysMode extends Object
Modes of generated keys' gathering.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Modifier and Type
    Method
    Description
    static int
    valueOf(Object generatedKeysRequest)
    Determines mode of generated keys' gathering.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NONE

      public static final int NONE
      Generated keys are not needed.
      See Also:
    • AUTO

      public static final int AUTO
      Generated keys should be configured automatically.
      See Also:
    • COLUMN_NUMBERS

      public static final int COLUMN_NUMBERS
      Use specified column indices to return generated keys from.
      See Also:
    • COLUMN_NAMES

      public static final int COLUMN_NAMES
      Use specified column names to return generated keys from.
      See Also:
  • Method Details

    • valueOf

      public static int valueOf(Object generatedKeysRequest)
      Determines mode of generated keys' gathering.
      Parameters:
      generatedKeysRequest - 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:
      mode for the specified generated keys request