Package org.lwjgl.odbc
Class SQL_INTERVAL_STRUCT.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<SQL_INTERVAL_STRUCT,SQL_INTERVAL_STRUCT.Buffer>
-
- org.lwjgl.odbc.SQL_INTERVAL_STRUCT.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<SQL_INTERVAL_STRUCT>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- SQL_INTERVAL_STRUCT
public static class SQL_INTERVAL_STRUCT.Buffer extends org.lwjgl.system.StructBuffer<SQL_INTERVAL_STRUCT,SQL_INTERVAL_STRUCT.Buffer> implements org.lwjgl.system.NativeResource
An array ofSQL_INTERVAL_STRUCT
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
interval_sign()
Returns the value of theinterval_sign
field.SQL_INTERVAL_STRUCT.Buffer
interval_sign(short value)
Sets the specified value to theinterval_sign
field.int
interval_type()
Returns the value of theinterval_type
field.SQL_INTERVAL_STRUCT.Buffer
interval_type(int value)
Sets the specified value to theinterval_type
field.SQL_DAY_SECOND_STRUCT
intval_day_second()
Returns aSQL_DAY_SECOND_STRUCT
view of theintval.day_second
field.SQL_INTERVAL_STRUCT.Buffer
intval_day_second(java.util.function.Consumer<SQL_DAY_SECOND_STRUCT> consumer)
Passes theintval.day_second
field to the specifiedConsumer
.SQL_INTERVAL_STRUCT.Buffer
intval_day_second(SQL_DAY_SECOND_STRUCT value)
Copies the specifiedSQL_DAY_SECOND_STRUCT
to theintval.day_second
field.SQL_YEAR_MONTH_STRUCT
intval_year_month()
Returns aSQL_YEAR_MONTH_STRUCT
view of theintval.year_month
field.SQL_INTERVAL_STRUCT.Buffer
intval_year_month(java.util.function.Consumer<SQL_YEAR_MONTH_STRUCT> consumer)
Passes theintval.year_month
field to the specifiedConsumer
.SQL_INTERVAL_STRUCT.Buffer
intval_year_month(SQL_YEAR_MONTH_STRUCT value)
Copies the specifiedSQL_YEAR_MONTH_STRUCT
to theintval.year_month
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newSQL_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 bySQL_INTERVAL_STRUCT.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
interval_type
public int interval_type()
Returns the value of theinterval_type
field.
-
interval_sign
public short interval_sign()
Returns the value of theinterval_sign
field.
-
intval_year_month
public SQL_YEAR_MONTH_STRUCT intval_year_month()
Returns aSQL_YEAR_MONTH_STRUCT
view of theintval.year_month
field.
-
intval_day_second
public SQL_DAY_SECOND_STRUCT intval_day_second()
Returns aSQL_DAY_SECOND_STRUCT
view of theintval.day_second
field.
-
interval_type
public SQL_INTERVAL_STRUCT.Buffer interval_type(int value)
Sets the specified value to theinterval_type
field.
-
interval_sign
public SQL_INTERVAL_STRUCT.Buffer interval_sign(short value)
Sets the specified value to theinterval_sign
field.
-
intval_year_month
public SQL_INTERVAL_STRUCT.Buffer intval_year_month(SQL_YEAR_MONTH_STRUCT value)
Copies the specifiedSQL_YEAR_MONTH_STRUCT
to theintval.year_month
field.
-
intval_year_month
public SQL_INTERVAL_STRUCT.Buffer intval_year_month(java.util.function.Consumer<SQL_YEAR_MONTH_STRUCT> consumer)
Passes theintval.year_month
field to the specifiedConsumer
.
-
intval_day_second
public SQL_INTERVAL_STRUCT.Buffer intval_day_second(SQL_DAY_SECOND_STRUCT value)
Copies the specifiedSQL_DAY_SECOND_STRUCT
to theintval.day_second
field.
-
intval_day_second
public SQL_INTERVAL_STRUCT.Buffer intval_day_second(java.util.function.Consumer<SQL_DAY_SECOND_STRUCT> consumer)
Passes theintval.day_second
field to the specifiedConsumer
.
-
-