Class SQL_TIMESTAMP_STRUCT

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

    public class SQL_TIMESTAMP_STRUCT
    extends Struct
    implements NativeResource

    Layout

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

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

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

        The struct member offsets.
    • Constructor Detail

      • SQL_TIMESTAMP_STRUCT

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