Class SQL_DATE_STRUCT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SQL_DATE_STRUCT extends Struct<SQL_DATE_STRUCT> implements NativeResource

 struct SQL_DATE_STRUCT {
     SQLSMALLINT year;
     SQLUSMALLINT month;
     SQLUSMALLINT day;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • YEAR

      public static final int YEAR
      The struct member offsets.
    • MONTH

      public static final int MONTH
      The struct member offsets.
    • DAY

      public static final int DAY
      The struct member offsets.
  • Constructor Details

    • SQL_DATE_STRUCT

      public SQL_DATE_STRUCT(ByteBuffer container)
      Creates a SQL_DATE_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 Details