Enum ColumnType

java.lang.Object
java.lang.Enum<ColumnType>
org.datanucleus.store.schema.naming.ColumnType
All Implemented Interfaces:
Serializable, Comparable<ColumnType>

public enum ColumnType extends Enum<ColumnType>
Enum defining the types of columns.
  • Enum Constant Details

    • COLUMN

      public static final ColumnType COLUMN
      Normal column.
    • DATASTOREID_COLUMN

      public static final ColumnType DATASTOREID_COLUMN
      Column for (surrogate) datastore id.
    • VERSION_COLUMN

      public static final ColumnType VERSION_COLUMN
      Column for version.
    • DISCRIMINATOR_COLUMN

      public static final ColumnType DISCRIMINATOR_COLUMN
      Column for discriminator.
    • MULTITENANCY_COLUMN

      public static final ColumnType MULTITENANCY_COLUMN
      Column for multitenancy.
    • INDEX_COLUMN

      public static final ColumnType INDEX_COLUMN
      Column for index position of a list/array.
    • FK_COLUMN

      public static final ColumnType FK_COLUMN
      FK column (either 1-1, or 1-N in element, or 1-N join table to element.
    • JOIN_OWNER_COLUMN

      public static final ColumnType JOIN_OWNER_COLUMN
      1-N join table column back to owner.
    • ADAPTER_COLUMN

      public static final ColumnType ADAPTER_COLUMN
      Adapter column (for join table primary-key).
    • SOFTDELETE_COLUMN

      public static final ColumnType SOFTDELETE_COLUMN
      Column for soft-delete.
    • CREATEUSER_COLUMN

      public static final ColumnType CREATEUSER_COLUMN
      Column for AUDIT @CreateUser.
    • CREATETIMESTAMP_COLUMN

      public static final ColumnType CREATETIMESTAMP_COLUMN
      Column for AUDIT @CreateTimestamp.
    • UPDATEUSER_COLUMN

      public static final ColumnType UPDATEUSER_COLUMN
      Column for AUDIT @UpdateUser.
    • UPDATETIMESTAMP_COLUMN

      public static final ColumnType UPDATETIMESTAMP_COLUMN
      Column for AUDIT @UpdateTimestamp.
  • Constructor Details

    • ColumnType

      private ColumnType()
  • Method Details

    • values

      public static ColumnType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ColumnType 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 name
      NullPointerException - if the argument is null