struct SQL_NUMERIC_STRUCT {
SQLCHAR precision;
SQLSCHAR scale;
SQLCHAR sign;
SQLCHAR val[SQL_MAX_NUMERIC_LEN];
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | SQL_NUMERIC_STRUCT.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | PRECISION
The struct member offsets. |
| public static final int | SCALE
The struct member offsets. |
| public static final int | SIGN
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | VAL
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | SQL_NUMERIC_STRUCT(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static SQL_NUMERIC_STRUCT | |
| public static SQL_NUMERIC_STRUCT. | calloc(int
the buffer capacity capacity)Returns a new |
| public static SQL_NUMERIC_STRUCT | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static SQL_NUMERIC_STRUCT. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static SQL_NUMERIC_STRUCT | |
| public static SQL_NUMERIC_STRUCT | |
| public static SQL_NUMERIC_STRUCT. | |
| public static SQL_NUMERIC_STRUCT. | |
| protected SQL_NUMERIC_STRUCT | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static SQL_NUMERIC_STRUCT | |
| public static SQL_NUMERIC_STRUCT | |
| public static SQL_NUMERIC_STRUCT. | create(int
the buffer capacity capacity)Returns a new |
| public static SQL_NUMERIC_STRUCT. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static SQL_NUMERIC_STRUCT | |
| public static SQL_NUMERIC_STRUCT. | |
| public static SQL_NUMERIC_STRUCT | |
| public static SQL_NUMERIC_STRUCT. | malloc(int
the buffer capacity capacity)Returns a new |
| public static SQL_NUMERIC_STRUCT | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static SQL_NUMERIC_STRUCT. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static SQL_NUMERIC_STRUCT | |
| public static SQL_NUMERIC_STRUCT | |
| public static SQL_NUMERIC_STRUCT. | |
| public static SQL_NUMERIC_STRUCT. | |
| public static byte | |
| public static void | |
| public static byte | |
| public static void | |
| public static byte | |
| public static void | |
| public static ByteBuffer | |
| public static byte | |
| public static void | |
| public static void | |
| public byte | |
| public SQL_NUMERIC_STRUCT | |
| public byte | |
| public SQL_NUMERIC_STRUCT | |
| public SQL_NUMERIC_STRUCT | set(byte precision, byte scale, byte sign, ByteBuffer val)
Initializes this struct with the specified values. |
| public SQL_NUMERIC_STRUCT | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public byte | |
| public SQL_NUMERIC_STRUCT | |
| public int | |
| public ByteBuffer | |
| public byte | |
| public SQL_NUMERIC_STRUCT | |
| public SQL_NUMERIC_STRUCT |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| PRECISION | back to summary |
|---|---|
| public static final int PRECISION The struct member offsets. | |
| SCALE | back to summary |
|---|---|
| public static final int SCALE The struct member offsets. | |
| SIGN | back to summary |
|---|---|
| public static final int SIGN The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VAL | back to summary |
|---|---|
| public static final int VAL The struct member offsets. | |
| SQL_NUMERIC_STRUCT | back to summary |
|---|---|
| protected SQL_NUMERIC_STRUCT(long address, ByteBuffer container) | |
| SQL_NUMERIC_STRUCT | back to summary |
|---|---|
| public SQL_NUMERIC_STRUCT(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected SQL_NUMERIC_STRUCT create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT create() Returns a new | |
| create | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT. Returns a new
| |
| create | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT. Create a
| |
| createSafe | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT. Like
| |
| malloc | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static SQL_NUMERIC_STRUCT. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nprecision | back to summary |
|---|---|
| public static byte nprecision(long struct) Unsafe version of | |
| nprecision | back to summary |
|---|---|
| public static void nprecision(long struct, byte value) Unsafe version of | |
| nscale | back to summary |
|---|---|
| public static byte nscale(long struct) Unsafe version of | |
| nscale | back to summary |
|---|---|
| public static void nscale(long struct, byte value) Unsafe version of | |
| nsign | back to summary |
|---|---|
| public static byte nsign(long struct) Unsafe version of | |
| nsign | back to summary |
|---|---|
| public static void nsign(long struct, byte value) Unsafe version of | |
| nval | back to summary |
|---|---|
| public static ByteBuffer nval(long struct) Unsafe version of | |
| nval | back to summary |
|---|---|
| public static byte nval(long struct, int index) Unsafe version of | |
| nval | back to summary |
|---|---|
| public static void nval(long struct, ByteBuffer value) Unsafe version of | |
| nval | back to summary |
|---|---|
| public static void nval(long struct, int index, byte value) Unsafe version of | |
| precision | back to summary |
|---|---|
public byte precision()
| |
| precision | back to summary |
|---|---|
| public SQL_NUMERIC_STRUCT precision(byte value) Sets the specified value to the | |
| scale | back to summary |
|---|---|
public byte scale()
| |
| scale | back to summary |
|---|---|
| public SQL_NUMERIC_STRUCT scale(byte value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public SQL_NUMERIC_STRUCT set(byte precision, byte scale, byte sign, ByteBuffer val) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public SQL_NUMERIC_STRUCT set(SQL_NUMERIC_STRUCT src) Copies the specified struct data to this struct.
| |
| sign | back to summary |
|---|---|
public byte sign()
| |
| sign | back to summary |
|---|---|
| public SQL_NUMERIC_STRUCT sign(byte value) Sets the specified value to the | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| val | back to summary |
|---|---|
public ByteBuffer val()
| |
| val | back to summary |
|---|---|
public byte val(int index)
| |
| val | back to summary |
|---|---|
| public SQL_NUMERIC_STRUCT val(ByteBuffer value) Copies the specified | |
| val | back to summary |
|---|---|
| public SQL_NUMERIC_STRUCT val(int index, byte value) Sets the specified value at the specified index of the | |
SQL_NUMERIC_STRUCT structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final SQL_NUMERIC_STRUCT |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected SQL_NUMERIC_STRUCT | |
| public byte | |
| public SQL_NUMERIC_STRUCT. | |
| public byte | |
| public SQL_NUMERIC_STRUCT. | |
| protected SQL_NUMERIC_STRUCT. | |
| public byte | |
| public SQL_NUMERIC_STRUCT. | |
| public ByteBuffer | |
| public byte | |
| public SQL_NUMERIC_STRUCT. | |
| public SQL_NUMERIC_STRUCT. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final SQL_NUMERIC_STRUCT ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| getElementFactory | back to summary |
|---|---|
| protected SQL_NUMERIC_STRUCT getElementFactory() Implements abstract org.
| |
| precision | back to summary |
|---|---|
public byte precision()
| |
| precision | back to summary |
|---|---|
| public SQL_NUMERIC_STRUCT. Sets the specified value to the | |
| scale | back to summary |
|---|---|
public byte scale()
| |
| scale | back to summary |
|---|---|
| public SQL_NUMERIC_STRUCT. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected SQL_NUMERIC_STRUCT. Implements abstract org.
| |
| sign | back to summary |
|---|---|
public byte sign()
| |
| sign | back to summary |
|---|---|
| public SQL_NUMERIC_STRUCT. Sets the specified value to the | |
| val | back to summary |
|---|---|
public ByteBuffer val()
| |
| val | back to summary |
|---|---|
public byte val(int index)
| |
| val | back to summary |
|---|---|
| public SQL_NUMERIC_STRUCT. Copies the specified | |
| val | back to summary |
|---|---|
| public SQL_NUMERIC_STRUCT. Sets the specified value at the specified index of the | |