Class PropertyType

java.lang.Object
io.objectbox.model.PropertyType

public final class PropertyType extends Object
Basic type of a property
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final short
    A boolean (flag)
    static final short
    Variable sized vector of Bool values (boolean; note: each value is represented as one byte)
    static final short
    8-bit integer
    static final short
    Variable sized vector of Byte values (8-bit integers)
    static final short
    16-bit character
    static final short
    Variable sized vector of Char values (16-bit characters)
    static final short
    Date/time stored as a 64-bit (integer) timestamp representing milliseconds since 1970-01-01 (unix epoch)
    static final short
    High precision date/time stored as a 64-bit timestamp representing nanoseconds since 1970-01-01 (unix epoch)
    static final short
    Variable sized vector of Date values (high precision 64-bit timestamp).
    static final short
    Variable sized vector of Date values (64-bit timestamp).
    static final short
    64-bit floating point number
    static final short
    Variable sized vector of Double values (64-bit floating point numbers)
    static final short
    "Flexible" type, which may contain scalars (integers, floating points), strings or containers (lists and maps).
    static final short
    32-bit floating point number
    static final short
    Variable sized vector of Float values (32-bit floating point numbers)
    static final short
    32-bit integer
    static final short
    Variable sized vector of Int values (32-bit integers)
    static final short
    64-bit integer
    static final short
    Variable sized vector of Long values (64-bit integers)
    static final String[]
     
    static final short
    Relation to another entity
    static final short
     
    static final short
     
    static final short
     
    static final short
     
    static final short
     
    static final short
     
    static final short
     
    static final short
     
    static final short
    16-bit integer
    static final short
    Variable sized vector of Short values (16-bit integers)
    static final short
    UTF-8 encoded string (variable length)
    static final short
    Variable sized vector of String values (UTF-8 encoded strings).
    static final short
    Not a real type, just best practice (e.g.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    name(int e)
     

    Methods inherited from class java.lang.Object

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

    • Unknown

      public static final short Unknown
      Not a real type, just best practice (e.g. forward compatibility)
      See Also:
    • Bool

      public static final short Bool
      A boolean (flag)
      See Also:
    • Byte

      public static final short Byte
      8-bit integer
      See Also:
    • Short

      public static final short Short
      16-bit integer
      See Also:
    • Char

      public static final short Char
      16-bit character
      See Also:
    • Int

      public static final short Int
      32-bit integer
      See Also:
    • Long

      public static final short Long
      64-bit integer
      See Also:
    • Float

      public static final short Float
      32-bit floating point number
      See Also:
    • Double

      public static final short Double
      64-bit floating point number
      See Also:
    • String

      public static final short String
      UTF-8 encoded string (variable length)
      See Also:
    • Date

      public static final short Date
      Date/time stored as a 64-bit (integer) timestamp representing milliseconds since 1970-01-01 (unix epoch)
      See Also:
    • Relation

      public static final short Relation
      Relation to another entity
      See Also:
    • DateNano

      public static final short DateNano
      High precision date/time stored as a 64-bit timestamp representing nanoseconds since 1970-01-01 (unix epoch)
      See Also:
    • Flex

      public static final short Flex
      "Flexible" type, which may contain scalars (integers, floating points), strings or containers (lists and maps). Note: a flex map must use string keys.
      See Also:
    • Reserved3

      public static final short Reserved3
      See Also:
    • Reserved4

      public static final short Reserved4
      See Also:
    • Reserved5

      public static final short Reserved5
      See Also:
    • Reserved6

      public static final short Reserved6
      See Also:
    • Reserved7

      public static final short Reserved7
      See Also:
    • Reserved8

      public static final short Reserved8
      See Also:
    • Reserved9

      public static final short Reserved9
      See Also:
    • Reserved10

      public static final short Reserved10
      See Also:
    • BoolVector

      public static final short BoolVector
      Variable sized vector of Bool values (boolean; note: each value is represented as one byte)
      See Also:
    • ByteVector

      public static final short ByteVector
      Variable sized vector of Byte values (8-bit integers)
      See Also:
    • ShortVector

      public static final short ShortVector
      Variable sized vector of Short values (16-bit integers)
      See Also:
    • CharVector

      public static final short CharVector
      Variable sized vector of Char values (16-bit characters)
      See Also:
    • IntVector

      public static final short IntVector
      Variable sized vector of Int values (32-bit integers)
      See Also:
    • LongVector

      public static final short LongVector
      Variable sized vector of Long values (64-bit integers)
      See Also:
    • FloatVector

      public static final short FloatVector
      Variable sized vector of Float values (32-bit floating point numbers)
      See Also:
    • DoubleVector

      public static final short DoubleVector
      Variable sized vector of Double values (64-bit floating point numbers)
      See Also:
    • StringVector

      public static final short StringVector
      Variable sized vector of String values (UTF-8 encoded strings).
      See Also:
    • DateVector

      public static final short DateVector
      Variable sized vector of Date values (64-bit timestamp).
      See Also:
    • DateNanoVector

      public static final short DateNanoVector
      Variable sized vector of Date values (high precision 64-bit timestamp).
      See Also:
    • names

      public static final String[] names
  • Constructor Details

    • PropertyType

      private PropertyType()
  • Method Details

    • name

      public static String name(int e)