Class SQL_INTERVAL_STRUCT

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

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

    Layout

    
     struct SQL_INTERVAL_STRUCT {
         SQLINTERVAL interval_type;
         SQLSMALLINT interval_sign;
         struct {
             SQL_YEAR_MONTH_STRUCT year_month;
             SQL_DAY_SECOND_STRUCT day_second;
         } intval;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • INTERVAL_TYPE, INTERVAL_SIGN, INTVAL, INTVAL_YEAR_MONTH, INTVAL_DAY_SECOND

        The struct member offsets.
    • Constructor Detail

      • SQL_INTERVAL_STRUCT

        public SQL_INTERVAL_STRUCT​(java.nio.ByteBuffer container)
        Creates a SQL_INTERVAL_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.