public static class SQL_INTERVAL_STRUCT.Buffer extends org.lwjgl.system.StructBuffer<SQL_INTERVAL_STRUCT,SQL_INTERVAL_STRUCT.Buffer> implements org.lwjgl.system.NativeResource
SQL_INTERVAL_STRUCT structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
SQL_INTERVAL_STRUCT.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
short |
interval_sign()
Returns the value of the
interval_sign field. |
SQL_INTERVAL_STRUCT.Buffer |
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.Buffer |
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.Buffer |
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.Buffer |
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.Buffer |
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.Buffer |
intval_year_month(SQL_YEAR_MONTH_STRUCT value)
Copies the specified
SQL_YEAR_MONTH_STRUCT to the intval.year_month field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
SQL_INTERVAL_STRUCT.Buffer instance backed by the specified container.
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 SQL_INTERVAL_STRUCT.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public 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.Buffer interval_type(int value)
interval_type field.public SQL_INTERVAL_STRUCT.Buffer interval_sign(short value)
interval_sign field.public SQL_INTERVAL_STRUCT.Buffer intval_year_month(SQL_YEAR_MONTH_STRUCT value)
SQL_YEAR_MONTH_STRUCT to the intval.year_month field.public SQL_INTERVAL_STRUCT.Buffer intval_year_month(java.util.function.Consumer<SQL_YEAR_MONTH_STRUCT> consumer)
intval.year_month field to the specified Consumer.public SQL_INTERVAL_STRUCT.Buffer intval_day_second(SQL_DAY_SECOND_STRUCT value)
SQL_DAY_SECOND_STRUCT to the intval.day_second field.public SQL_INTERVAL_STRUCT.Buffer intval_day_second(java.util.function.Consumer<SQL_DAY_SECOND_STRUCT> consumer)
intval.day_second field to the specified Consumer.Copyright LWJGL. All Rights Reserved. License terms.