Package net.sf.basedb.core
Enum Class ExtraValue.CoordinateType
- All Implemented Interfaces:
Serializable
,Comparable<ExtraValue.CoordinateType>
,java.lang.constant.Constable
- Enclosing class:
- ExtraValue
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The integer value of this coordinate type.private static final Map<Integer,
ExtraValue.CoordinateType> Maps the integer that is stored in the database with an fileaction. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExtraValue.CoordinateType
fromValue
(int value) Get theCoordinateType
object when you know the integer code.int
getValue()
Get the integer value that is used when storing aCoordinateType
in the database.abstract VirtualTable
getVirtualTable
(Type valueType) Get theVirtualTable
used to store extra values of this coordinate type given the value type.static ExtraValue.CoordinateType
Returns the enum constant of this class with the specified name.static ExtraValue.CoordinateType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SPOT
The extra values are attached to spots. Ie. position/column coordinates. -
POSITION
The extra values are attached to position coordinates only. -
COLUMN
The extra values are attached to column coordinates only.
-
-
Field Details
-
valueMapping
Maps the integer that is stored in the database with an fileaction. -
value
private final int valueThe integer value of this coordinate type. Used when stored in the database.
-
-
Constructor Details
-
CoordinateType
private CoordinateType(int value)
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
fromValue
Get theCoordinateType
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 aCoordinateType
in the database.- Returns:
- The intger value of this coordinate type
-
getVirtualTable
Get theVirtualTable
used to store extra values of this coordinate type given the value type.- Parameters:
valueType
- The type of the values to store
-