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_STRUCTstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortinterval_sign()SQL_INTERVAL_STRUCT.Bufferinterval_sign(short value)Sets the specified value to theinterval_signfield.intinterval_type()SQL_INTERVAL_STRUCT.Bufferinterval_type(int value)Sets the specified value to theinterval_typefield.SQL_DAY_SECOND_STRUCTintval_day_second()SQL_INTERVAL_STRUCT.Bufferintval_day_second(java.util.function.Consumer<SQL_DAY_SECOND_STRUCT> consumer)Passes theday_secondfield to the specifiedConsumer.SQL_INTERVAL_STRUCT.Bufferintval_day_second(SQL_DAY_SECOND_STRUCT value)Copies the specifiedSQL_DAY_SECOND_STRUCTto theday_secondfield.SQL_YEAR_MONTH_STRUCTintval_year_month()SQL_INTERVAL_STRUCT.Bufferintval_year_month(java.util.function.Consumer<SQL_YEAR_MONTH_STRUCT> consumer)Passes theyear_monthfield to the specifiedConsumer.SQL_INTERVAL_STRUCT.Bufferintval_year_month(SQL_YEAR_MONTH_STRUCT value)Copies the specifiedSQL_YEAR_MONTH_STRUCTto theyear_monthfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newSQL_INTERVAL_STRUCT.Bufferinstance 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 the
interval_typefield.
-
interval_sign
public short interval_sign()
- Returns:
- the value of the
interval_signfield.
-
intval_year_month
public SQL_YEAR_MONTH_STRUCT intval_year_month()
- Returns:
- a
SQL_YEAR_MONTH_STRUCTview of theintval.year_monthfield.
-
intval_day_second
public SQL_DAY_SECOND_STRUCT intval_day_second()
- Returns:
- a
SQL_DAY_SECOND_STRUCTview of theintval.day_secondfield.
-
interval_type
public SQL_INTERVAL_STRUCT.Buffer interval_type(int value)
Sets the specified value to theinterval_typefield.
-
interval_sign
public SQL_INTERVAL_STRUCT.Buffer interval_sign(short value)
Sets the specified value to theinterval_signfield.
-
intval_year_month
public SQL_INTERVAL_STRUCT.Buffer intval_year_month(SQL_YEAR_MONTH_STRUCT value)
Copies the specifiedSQL_YEAR_MONTH_STRUCTto theyear_monthfield.
-
intval_year_month
public SQL_INTERVAL_STRUCT.Buffer intval_year_month(java.util.function.Consumer<SQL_YEAR_MONTH_STRUCT> consumer)
Passes theyear_monthfield to the specifiedConsumer.
-
intval_day_second
public SQL_INTERVAL_STRUCT.Buffer intval_day_second(SQL_DAY_SECOND_STRUCT value)
Copies the specifiedSQL_DAY_SECOND_STRUCTto theday_secondfield.
-
intval_day_second
public SQL_INTERVAL_STRUCT.Buffer intval_day_second(java.util.function.Consumer<SQL_DAY_SECOND_STRUCT> consumer)
Passes theday_secondfield to the specifiedConsumer.
-
-