Class SQL_NUMERIC_STRUCT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SQL_NUMERIC_STRUCT extends Struct<SQL_NUMERIC_STRUCT> implements NativeResource

 struct SQL_NUMERIC_STRUCT {
     SQLCHAR precision;
     SQLSCHAR scale;
     SQLCHAR sign;
     SQLCHAR val[SQL_MAX_NUMERIC_LEN];
 }
  • Field Details

    • SIZEOF

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

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

      public static final int PRECISION
      The struct member offsets.
    • SCALE

      public static final int SCALE
      The struct member offsets.
    • SIGN

      public static final int SIGN
      The struct member offsets.
    • VAL

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

    • SQL_NUMERIC_STRUCT

      public SQL_NUMERIC_STRUCT(ByteBuffer container)
      Creates a SQL_NUMERIC_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