Class SQL_SS_TIMESTAMPOFFSET_STRUCT

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class SQL_SS_TIMESTAMPOFFSET_STRUCT
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Layout

    
     struct SQL_SS_TIMESTAMPOFFSET_STRUCT {
         SQLSMALLINT year;
         SQLUSMALLINT month;
         SQLUSMALLINT day;
         SQLUSMALLINT hour;
         SQLUSMALLINT minute;
         SQLUSMALLINT second;
         SQLUINTEGER fraction;
         SQLSMALLINT timezone_hour;
         SQLSMALLINT timezone_minute;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • YEAR, MONTH, DAY, HOUR, MINUTE, SECOND, FRACTION, TIMEZONE_HOUR, TIMEZONE_MINUTE

        The struct member offsets.
    • Constructor Detail

      • SQL_SS_TIMESTAMPOFFSET_STRUCT

        public SQL_SS_TIMESTAMPOFFSET_STRUCT​(java.nio.ByteBuffer container)
        Creates a SQL_SS_TIMESTAMPOFFSET_STRUCT instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • year

        public short year()
        Returns the value of the year field.
      • month

        public short month()
        Returns the value of the month field.
      • day

        public short day()
        Returns the value of the day field.
      • hour

        public short hour()
        Returns the value of the hour field.
      • minute

        public short minute()
        Returns the value of the minute field.
      • second

        public short second()
        Returns the value of the second field.
      • fraction

        public int fraction()
        Returns the value of the fraction field.
      • timezone_hour

        public short timezone_hour()
        Returns the value of the timezone_hour field.
      • timezone_minute

        public short timezone_minute()
        Returns the value of the timezone_minute field.
      • set

        public SQL_SS_TIMESTAMPOFFSET_STRUCT set​(short year,
                                                 short month,
                                                 short day,
                                                 short hour,
                                                 short minute,
                                                 short second,
                                                 int fraction,
                                                 short timezone_hour,
                                                 short timezone_minute)
        Initializes this struct with the specified values.
      • malloc

        public static SQL_SS_TIMESTAMPOFFSET_STRUCT malloc()
        Returns a new SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static SQL_SS_TIMESTAMPOFFSET_STRUCT calloc()
        Returns a new SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static SQL_SS_TIMESTAMPOFFSET_STRUCT create​(long address)
        Returns a new SQL_SS_TIMESTAMPOFFSET_STRUCT instance for the specified memory address.
      • mallocStack

        public static SQL_SS_TIMESTAMPOFFSET_STRUCT mallocStack()
        Returns a new SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated on the thread-local MemoryStack.
      • callocStack

        public static SQL_SS_TIMESTAMPOFFSET_STRUCT callocStack()
        Returns a new SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static SQL_SS_TIMESTAMPOFFSET_STRUCT mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static SQL_SS_TIMESTAMPOFFSET_STRUCT callocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new SQL_SS_TIMESTAMPOFFSET_STRUCT instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • nyear

        public static short nyear​(long struct)
        Unsafe version of year().
      • nmonth

        public static short nmonth​(long struct)
        Unsafe version of month().
      • nday

        public static short nday​(long struct)
        Unsafe version of day().
      • nhour

        public static short nhour​(long struct)
        Unsafe version of hour().
      • nminute

        public static short nminute​(long struct)
        Unsafe version of minute().
      • nsecond

        public static short nsecond​(long struct)
        Unsafe version of second().
      • nfraction

        public static int nfraction​(long struct)
        Unsafe version of fraction().
      • ntimezone_hour

        public static short ntimezone_hour​(long struct)
        Unsafe version of timezone_hour().
      • ntimezone_minute

        public static short ntimezone_minute​(long struct)
        Unsafe version of timezone_minute().
      • nyear

        public static void nyear​(long struct,
                                 short value)
        Unsafe version of year.
      • nmonth

        public static void nmonth​(long struct,
                                  short value)
        Unsafe version of month.
      • nday

        public static void nday​(long struct,
                                short value)
        Unsafe version of day.
      • nhour

        public static void nhour​(long struct,
                                 short value)
        Unsafe version of hour.
      • nminute

        public static void nminute​(long struct,
                                   short value)
        Unsafe version of minute.
      • nsecond

        public static void nsecond​(long struct,
                                   short value)
        Unsafe version of second.
      • nfraction

        public static void nfraction​(long struct,
                                     int value)
        Unsafe version of fraction.
      • ntimezone_hour

        public static void ntimezone_hour​(long struct,
                                          short value)
        Unsafe version of timezone_hour.
      • ntimezone_minute

        public static void ntimezone_minute​(long struct,
                                            short value)
        Unsafe version of timezone_minute.