public class SQL_INTERVAL_STRUCT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct SQL_INTERVAL_STRUCT {
SQLINTERVAL interval_type;
SQLSMALLINT interval_sign;
struct {
SQL_YEAR_MONTH_STRUCT year_month;
SQL_DAY_SECOND_STRUCT day_second;
} intval;
}| Modifier and Type | Class and Description |
|---|---|
static class |
SQL_INTERVAL_STRUCT.Buffer
An array of
SQL_INTERVAL_STRUCT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
INTERVAL_SIGN
The struct member offsets.
|
static int |
INTERVAL_TYPE
The struct member offsets.
|
static int |
INTVAL
The struct member offsets.
|
static int |
INTVAL_DAY_SECOND
The struct member offsets.
|
static int |
INTVAL_YEAR_MONTH
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
SQL_INTERVAL_STRUCT(java.nio.ByteBuffer container)
Creates a
SQL_INTERVAL_STRUCT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static SQL_INTERVAL_STRUCT |
calloc()
Returns a new
SQL_INTERVAL_STRUCT instance allocated with memCalloc. |
static SQL_INTERVAL_STRUCT.Buffer |
calloc(int capacity)
Returns a new
SQL_INTERVAL_STRUCT.Buffer instance allocated with memCalloc. |
static SQL_INTERVAL_STRUCT |
callocStack()
Returns a new
SQL_INTERVAL_STRUCT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SQL_INTERVAL_STRUCT.Buffer |
callocStack(int capacity)
Returns a new
SQL_INTERVAL_STRUCT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SQL_INTERVAL_STRUCT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SQL_INTERVAL_STRUCT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static SQL_INTERVAL_STRUCT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SQL_INTERVAL_STRUCT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static SQL_INTERVAL_STRUCT |
create()
Returns a new
SQL_INTERVAL_STRUCT instance allocated with BufferUtils. |
static SQL_INTERVAL_STRUCT.Buffer |
create(int capacity)
Returns a new
SQL_INTERVAL_STRUCT.Buffer instance allocated with BufferUtils. |
static SQL_INTERVAL_STRUCT |
create(long address)
Returns a new
SQL_INTERVAL_STRUCT instance for the specified memory address. |
static SQL_INTERVAL_STRUCT.Buffer |
create(long address,
int capacity)
Create a
SQL_INTERVAL_STRUCT.Buffer instance at the specified memory. |
static SQL_INTERVAL_STRUCT |
createSafe(long address)
|
static SQL_INTERVAL_STRUCT.Buffer |
createSafe(long address,
int capacity)
|
short |
interval_sign()
Returns the value of the
interval_sign field. |
SQL_INTERVAL_STRUCT |
interval_sign(short value)
Sets the specified value to the
interval_sign field. |
int |
interval_type()
Returns the value of the
interval_type field. |
SQL_INTERVAL_STRUCT |
interval_type(int value)
Sets the specified value to the
interval_type field. |
SQL_DAY_SECOND_STRUCT |
intval_day_second()
Returns a
SQL_DAY_SECOND_STRUCT view of the intval.day_second field. |
SQL_INTERVAL_STRUCT |
intval_day_second(java.util.function.Consumer<SQL_DAY_SECOND_STRUCT> consumer)
Passes the
intval.day_second field to the specified Consumer. |
SQL_INTERVAL_STRUCT |
intval_day_second(SQL_DAY_SECOND_STRUCT value)
Copies the specified
SQL_DAY_SECOND_STRUCT to the intval.day_second field. |
SQL_YEAR_MONTH_STRUCT |
intval_year_month()
Returns a
SQL_YEAR_MONTH_STRUCT view of the intval.year_month field. |
SQL_INTERVAL_STRUCT |
intval_year_month(java.util.function.Consumer<SQL_YEAR_MONTH_STRUCT> consumer)
Passes the
intval.year_month field to the specified Consumer. |
SQL_INTERVAL_STRUCT |
intval_year_month(SQL_YEAR_MONTH_STRUCT value)
Copies the specified
SQL_YEAR_MONTH_STRUCT to the intval.year_month field. |
static SQL_INTERVAL_STRUCT |
malloc()
Returns a new
SQL_INTERVAL_STRUCT instance allocated with memAlloc. |
static SQL_INTERVAL_STRUCT.Buffer |
malloc(int capacity)
Returns a new
SQL_INTERVAL_STRUCT.Buffer instance allocated with memAlloc. |
static SQL_INTERVAL_STRUCT |
mallocStack()
Returns a new
SQL_INTERVAL_STRUCT instance allocated on the thread-local MemoryStack. |
static SQL_INTERVAL_STRUCT.Buffer |
mallocStack(int capacity)
Returns a new
SQL_INTERVAL_STRUCT.Buffer instance allocated on the thread-local MemoryStack. |
static SQL_INTERVAL_STRUCT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SQL_INTERVAL_STRUCT.Buffer instance allocated on the specified MemoryStack. |
static SQL_INTERVAL_STRUCT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SQL_INTERVAL_STRUCT instance allocated on the specified MemoryStack. |
static short |
ninterval_sign(long struct)
Unsafe version of
interval_sign(). |
static void |
ninterval_sign(long struct,
short value)
Unsafe version of
interval_sign. |
static int |
ninterval_type(long struct)
Unsafe version of
interval_type(). |
static void |
ninterval_type(long struct,
int value)
Unsafe version of
interval_type. |
static SQL_DAY_SECOND_STRUCT |
nintval_day_second(long struct)
Unsafe version of
intval_day_second(). |
static void |
nintval_day_second(long struct,
SQL_DAY_SECOND_STRUCT value)
Unsafe version of
intval_day_second. |
static SQL_YEAR_MONTH_STRUCT |
nintval_year_month(long struct)
Unsafe version of
intval_year_month(). |
static void |
nintval_year_month(long struct,
SQL_YEAR_MONTH_STRUCT value)
Unsafe version of
intval_year_month. |
SQL_INTERVAL_STRUCT |
set(int interval_type,
short interval_sign,
SQL_YEAR_MONTH_STRUCT intval_year_month,
SQL_DAY_SECOND_STRUCT intval_day_second)
Initializes this struct with the specified values.
|
SQL_INTERVAL_STRUCT |
set(SQL_INTERVAL_STRUCT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int INTERVAL_TYPE
public static final int INTERVAL_SIGN
public static final int INTVAL
public static final int INTVAL_YEAR_MONTH
public static final int INTVAL_DAY_SECOND
public SQL_INTERVAL_STRUCT(java.nio.ByteBuffer container)
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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int interval_type()
interval_type field.public short interval_sign()
interval_sign field.public SQL_YEAR_MONTH_STRUCT intval_year_month()
SQL_YEAR_MONTH_STRUCT view of the intval.year_month field.public SQL_DAY_SECOND_STRUCT intval_day_second()
SQL_DAY_SECOND_STRUCT view of the intval.day_second field.public SQL_INTERVAL_STRUCT interval_type(int value)
interval_type field.public SQL_INTERVAL_STRUCT interval_sign(short value)
interval_sign field.public SQL_INTERVAL_STRUCT intval_year_month(SQL_YEAR_MONTH_STRUCT value)
SQL_YEAR_MONTH_STRUCT to the intval.year_month field.public SQL_INTERVAL_STRUCT intval_year_month(java.util.function.Consumer<SQL_YEAR_MONTH_STRUCT> consumer)
intval.year_month field to the specified Consumer.public SQL_INTERVAL_STRUCT intval_day_second(SQL_DAY_SECOND_STRUCT value)
SQL_DAY_SECOND_STRUCT to the intval.day_second field.public SQL_INTERVAL_STRUCT intval_day_second(java.util.function.Consumer<SQL_DAY_SECOND_STRUCT> consumer)
intval.day_second field to the specified Consumer.public SQL_INTERVAL_STRUCT set(int interval_type, short interval_sign, SQL_YEAR_MONTH_STRUCT intval_year_month, SQL_DAY_SECOND_STRUCT intval_day_second)
public SQL_INTERVAL_STRUCT set(SQL_INTERVAL_STRUCT src)
src - the source structpublic static SQL_INTERVAL_STRUCT malloc()
SQL_INTERVAL_STRUCT instance allocated with memAlloc. The instance must be explicitly freed.public static SQL_INTERVAL_STRUCT calloc()
SQL_INTERVAL_STRUCT instance allocated with memCalloc. The instance must be explicitly freed.public static SQL_INTERVAL_STRUCT create()
SQL_INTERVAL_STRUCT instance allocated with BufferUtils.public static SQL_INTERVAL_STRUCT create(long address)
SQL_INTERVAL_STRUCT instance for the specified memory address.@Nullable public static SQL_INTERVAL_STRUCT createSafe(long address)
public static SQL_INTERVAL_STRUCT.Buffer malloc(int capacity)
SQL_INTERVAL_STRUCT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SQL_INTERVAL_STRUCT.Buffer calloc(int capacity)
SQL_INTERVAL_STRUCT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SQL_INTERVAL_STRUCT.Buffer create(int capacity)
SQL_INTERVAL_STRUCT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static SQL_INTERVAL_STRUCT.Buffer create(long address, int capacity)
SQL_INTERVAL_STRUCT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static SQL_INTERVAL_STRUCT.Buffer createSafe(long address, int capacity)
public static SQL_INTERVAL_STRUCT mallocStack()
SQL_INTERVAL_STRUCT instance allocated on the thread-local MemoryStack.public static SQL_INTERVAL_STRUCT callocStack()
SQL_INTERVAL_STRUCT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static SQL_INTERVAL_STRUCT mallocStack(org.lwjgl.system.MemoryStack stack)
SQL_INTERVAL_STRUCT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static SQL_INTERVAL_STRUCT callocStack(org.lwjgl.system.MemoryStack stack)
SQL_INTERVAL_STRUCT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static SQL_INTERVAL_STRUCT.Buffer mallocStack(int capacity)
SQL_INTERVAL_STRUCT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static SQL_INTERVAL_STRUCT.Buffer callocStack(int capacity)
SQL_INTERVAL_STRUCT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static SQL_INTERVAL_STRUCT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SQL_INTERVAL_STRUCT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static SQL_INTERVAL_STRUCT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SQL_INTERVAL_STRUCT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int ninterval_type(long struct)
interval_type().public static short ninterval_sign(long struct)
interval_sign().public static SQL_YEAR_MONTH_STRUCT nintval_year_month(long struct)
intval_year_month().public static SQL_DAY_SECOND_STRUCT nintval_day_second(long struct)
intval_day_second().public static void ninterval_type(long struct,
int value)
interval_type.public static void ninterval_sign(long struct,
short value)
interval_sign.public static void nintval_year_month(long struct,
SQL_YEAR_MONTH_STRUCT value)
intval_year_month.public static void nintval_day_second(long struct,
SQL_DAY_SECOND_STRUCT value)
intval_day_second.Copyright LWJGL. All Rights Reserved. License terms.