Enum Class ExtraValue.CoordinateType

java.lang.Object
java.lang.Enum<ExtraValue.CoordinateType>
net.sf.basedb.core.ExtraValue.CoordinateType
All Implemented Interfaces:
Serializable, Comparable<ExtraValue.CoordinateType>, java.lang.constant.Constable
Enclosing class:
ExtraValue

public static enum ExtraValue.CoordinateType extends Enum<ExtraValue.CoordinateType>
Defines which coordinates in the data cube the extra values are attached to. Extra values can be attached to any combination of the column and postion coordinate.
See Also:
  • Enum Constant Details

    • SPOT

      public static final ExtraValue.CoordinateType SPOT
      The extra values are attached to spots. Ie. position/column coordinates.
    • POSITION

      public static final ExtraValue.CoordinateType POSITION
      The extra values are attached to position coordinates only.
    • COLUMN

      public static final ExtraValue.CoordinateType COLUMN
      The extra values are attached to column coordinates only.
  • Field Details

    • valueMapping

      private static final Map<Integer,ExtraValue.CoordinateType> valueMapping
      Maps the integer that is stored in the database with an fileaction.
    • value

      private final int value
      The integer value of this coordinate type. Used when stored in the database.
  • Constructor Details

    • CoordinateType

      private CoordinateType(int value)
  • Method Details

    • values

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

      public static ExtraValue.CoordinateType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromValue

      public static ExtraValue.CoordinateType fromValue(int value)
      Get the CoordinateType object when you know the integer code.
      Parameters:
      value - The integer value
      Returns:
      The CoordinateType for the integer value, or null if not found
    • getValue

      public int getValue()
      Get the integer value that is used when storing a CoordinateType in the database.
      Returns:
      The intger value of this coordinate type
    • getVirtualTable

      public abstract VirtualTable getVirtualTable(Type valueType)
      Get the VirtualTable used to store extra values of this coordinate type given the value type.
      Parameters:
      valueType - The type of the values to store