oracle.kv.table

## Interface EnumDef

- All Superinterfaces:
    FieldDef

      public interface EnumDef
      extends FieldDef

  EnumDef is a extension of `FieldDef` to support an enumeration type. Valid members of an enumeration are represented as an array of strings. A value instance of EnumDef is represented by a single string, which must exist in the set of valid strings.
  Since:
    3.0

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface oracle.kv.table.FieldDef

      `FieldDef.Type`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `EnumDef` | `clone()` Perform a deep copy of this FieldDef instance.
    `String` | `getName()`
    `String[]` | `getValues()`

    - ### Methods inherited from interface oracle.kv.table.FieldDef

      `asArray, asBinary, asBoolean, asDouble, asEnum, asFixedBinary, asFloat, asInteger, asLong, asMap, asRecord, asString, createArray, createBinary, createBoolean, createDouble, createEnum, createFixedBinary, createFloat, createInteger, createLong, createMap, createRecord, createString, getDescription, getType, isArray, isBinary, isBoolean, isDouble, isEnum, isFixedBinary, isFloat, isInteger, isLong, isMap, isRecord, isString, isType, isValidIndexField, isValidKeyField`

- - ### Method Detail

    - #### getValues

          String[] getValues()

      Returns:
        the legal values for the enumeration

    - #### getName

          String getName()

      Returns:
        the name of the enumeration. Unlike most FieldDef instances enumerations require a name to be included in the schema.

    - #### clone

          EnumDef clone()

      Description copied from interface: `FieldDef`
      Perform a deep copy of this FieldDef instance.
      Specified by:
        `clone` in interface `FieldDef`
      Returns:
        a deep copy of this object

Copyright (c) 2011, 2014 Oracle and/or its affiliates. All rights reserved.