Class Factory

java.lang.Object
types.temporal.Factory

public final class Factory extends Object
Final class for assigning temporal types
Author:
ARIJIT SAMAL
  • Field Details

    • TEMPTYPE_OFFSET

      private static final long TEMPTYPE_OFFSET
      The byte offset of the temporal type in a MEOS Temporal, after its int32 varlena header, as the catalog's structure Temporal states it (temptype at bit 32).
      See Also:
  • Constructor Details

    • Factory

      private Factory()
  • Method Details

    • create_temporal

      public static Temporal create_temporal(jnr.ffi.Pointer inner)
      Returns the object of the class of a temporal value MEOS returns, chosen by the temporal type and the subtype the value states, so a reader needs no value of that class.

      MEOS Functions:

    • temporal_subtype
    • Parameters:
      inner - The temporal value, or null
      Returns:
      The object of the class of the value, or null for a null pointer
      Throws:
      IllegalArgumentException - for a temporal type JMEOS has no class of
    • create_temporal

      public static Temporal create_temporal(jnr.ffi.Pointer inner, String customType, TemporalType temporalType)
    • create_instant

      private static Temporal create_instant(jnr.ffi.Pointer inner, String customType)
    • create_sequence

      private static Temporal create_sequence(jnr.ffi.Pointer inner, String customType)
    • create_sequenceset

      private static Temporal create_sequenceset(jnr.ffi.Pointer inner, String customType)