Package org.lwjgl.odbc
Class SQL_INTERVAL_STRUCT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.odbc.SQL_INTERVAL_STRUCT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class SQL_INTERVAL_STRUCT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct SQL_INTERVAL_STRUCT { SQLINTERVAL interval_type; SQLSMALLINT interval_sign; struct {SQL_YEAR_MONTH_STRUCTyear_month;SQL_DAY_SECOND_STRUCTday_second; } intval; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSQL_INTERVAL_STRUCT.BufferAn array ofSQL_INTERVAL_STRUCTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intINTERVAL_SIGN
INTERVAL_TYPE
INTVAL
INTVAL_DAY_SECOND
INTVAL_YEAR_MONTHThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description SQL_INTERVAL_STRUCT(java.nio.ByteBuffer container)Creates aSQL_INTERVAL_STRUCTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SQL_INTERVAL_STRUCTcalloc()Returns a newSQL_INTERVAL_STRUCTinstance allocated withmemCalloc.static SQL_INTERVAL_STRUCT.Buffercalloc(int capacity)Returns a newSQL_INTERVAL_STRUCT.Bufferinstance allocated withmemCalloc.static SQL_INTERVAL_STRUCT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSQL_INTERVAL_STRUCT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SQL_INTERVAL_STRUCTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newSQL_INTERVAL_STRUCTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SQL_INTERVAL_STRUCTcallocStack()Deprecated.static SQL_INTERVAL_STRUCT.BuffercallocStack(int capacity)Deprecated.static SQL_INTERVAL_STRUCT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static SQL_INTERVAL_STRUCTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static SQL_INTERVAL_STRUCTcreate()Returns a newSQL_INTERVAL_STRUCTinstance allocated withBufferUtils.static SQL_INTERVAL_STRUCT.Buffercreate(int capacity)Returns a newSQL_INTERVAL_STRUCT.Bufferinstance allocated withBufferUtils.static SQL_INTERVAL_STRUCTcreate(long address)Returns a newSQL_INTERVAL_STRUCTinstance for the specified memory address.static SQL_INTERVAL_STRUCT.Buffercreate(long address, int capacity)Create aSQL_INTERVAL_STRUCT.Bufferinstance at the specified memory.static SQL_INTERVAL_STRUCTcreateSafe(long address)static SQL_INTERVAL_STRUCT.BuffercreateSafe(long address, int capacity)shortinterval_sign()SQL_INTERVAL_STRUCTinterval_sign(short value)Sets the specified value to theinterval_signfield.intinterval_type()SQL_INTERVAL_STRUCTinterval_type(int value)Sets the specified value to theinterval_typefield.SQL_DAY_SECOND_STRUCTintval_day_second()SQL_INTERVAL_STRUCTintval_day_second(java.util.function.Consumer<SQL_DAY_SECOND_STRUCT> consumer)Passes theday_secondfield to the specifiedConsumer.SQL_INTERVAL_STRUCTintval_day_second(SQL_DAY_SECOND_STRUCT value)Copies the specifiedSQL_DAY_SECOND_STRUCTto theday_secondfield.SQL_YEAR_MONTH_STRUCTintval_year_month()SQL_INTERVAL_STRUCTintval_year_month(java.util.function.Consumer<SQL_YEAR_MONTH_STRUCT> consumer)Passes theyear_monthfield to the specifiedConsumer.SQL_INTERVAL_STRUCTintval_year_month(SQL_YEAR_MONTH_STRUCT value)Copies the specifiedSQL_YEAR_MONTH_STRUCTto theyear_monthfield.static SQL_INTERVAL_STRUCTmalloc()Returns a newSQL_INTERVAL_STRUCTinstance allocated withmemAlloc.static SQL_INTERVAL_STRUCT.Buffermalloc(int capacity)Returns a newSQL_INTERVAL_STRUCT.Bufferinstance allocated withmemAlloc.static SQL_INTERVAL_STRUCT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSQL_INTERVAL_STRUCT.Bufferinstance allocated on the specifiedMemoryStack.static SQL_INTERVAL_STRUCTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newSQL_INTERVAL_STRUCTinstance allocated on the specifiedMemoryStack.static SQL_INTERVAL_STRUCTmallocStack()Deprecated.static SQL_INTERVAL_STRUCT.BuffermallocStack(int capacity)Deprecated.static SQL_INTERVAL_STRUCT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static SQL_INTERVAL_STRUCTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static shortninterval_sign(long struct)Unsafe version ofinterval_sign().static voidninterval_sign(long struct, short value)Unsafe version ofinterval_sign.static intninterval_type(long struct)Unsafe version ofinterval_type().static voidninterval_type(long struct, int value)Unsafe version ofinterval_type.static SQL_DAY_SECOND_STRUCTnintval_day_second(long struct)Unsafe version ofintval_day_second().static voidnintval_day_second(long struct, SQL_DAY_SECOND_STRUCT value)Unsafe version ofintval_day_second.static SQL_YEAR_MONTH_STRUCTnintval_year_month(long struct)Unsafe version ofintval_year_month().static voidnintval_year_month(long struct, SQL_YEAR_MONTH_STRUCT value)Unsafe version ofintval_year_month.SQL_INTERVAL_STRUCTset(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_STRUCTset(SQL_INTERVAL_STRUCT src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
SQL_INTERVAL_STRUCT
public SQL_INTERVAL_STRUCT(java.nio.ByteBuffer container)
Creates aSQL_INTERVAL_STRUCTinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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 interval_type(int value)
Sets the specified value to theinterval_typefield.
-
interval_sign
public SQL_INTERVAL_STRUCT interval_sign(short value)
Sets the specified value to theinterval_signfield.
-
intval_year_month
public SQL_INTERVAL_STRUCT intval_year_month(SQL_YEAR_MONTH_STRUCT value)
Copies the specifiedSQL_YEAR_MONTH_STRUCTto theyear_monthfield.
-
intval_year_month
public SQL_INTERVAL_STRUCT 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 intval_day_second(SQL_DAY_SECOND_STRUCT value)
Copies the specifiedSQL_DAY_SECOND_STRUCTto theday_secondfield.
-
intval_day_second
public SQL_INTERVAL_STRUCT intval_day_second(java.util.function.Consumer<SQL_DAY_SECOND_STRUCT> consumer)
Passes theday_secondfield to the specifiedConsumer.
-
set
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)
Initializes this struct with the specified values.
-
set
public SQL_INTERVAL_STRUCT set(SQL_INTERVAL_STRUCT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static SQL_INTERVAL_STRUCT malloc()
Returns a newSQL_INTERVAL_STRUCTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static SQL_INTERVAL_STRUCT calloc()
Returns a newSQL_INTERVAL_STRUCTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static SQL_INTERVAL_STRUCT create()
Returns a newSQL_INTERVAL_STRUCTinstance allocated withBufferUtils.
-
create
public static SQL_INTERVAL_STRUCT create(long address)
Returns a newSQL_INTERVAL_STRUCTinstance for the specified memory address.
-
createSafe
@Nullable public static SQL_INTERVAL_STRUCT createSafe(long address)
-
malloc
public static SQL_INTERVAL_STRUCT.Buffer malloc(int capacity)
Returns a newSQL_INTERVAL_STRUCT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static SQL_INTERVAL_STRUCT.Buffer calloc(int capacity)
Returns a newSQL_INTERVAL_STRUCT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static SQL_INTERVAL_STRUCT.Buffer create(int capacity)
Returns a newSQL_INTERVAL_STRUCT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static SQL_INTERVAL_STRUCT.Buffer create(long address, int capacity)
Create aSQL_INTERVAL_STRUCT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static SQL_INTERVAL_STRUCT.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static SQL_INTERVAL_STRUCT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static SQL_INTERVAL_STRUCT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static SQL_INTERVAL_STRUCT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static SQL_INTERVAL_STRUCT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static SQL_INTERVAL_STRUCT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static SQL_INTERVAL_STRUCT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static SQL_INTERVAL_STRUCT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static SQL_INTERVAL_STRUCT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static SQL_INTERVAL_STRUCT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newSQL_INTERVAL_STRUCTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static SQL_INTERVAL_STRUCT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newSQL_INTERVAL_STRUCTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static SQL_INTERVAL_STRUCT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSQL_INTERVAL_STRUCT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static SQL_INTERVAL_STRUCT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSQL_INTERVAL_STRUCT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ninterval_type
public static int ninterval_type(long struct)
Unsafe version ofinterval_type().
-
ninterval_sign
public static short ninterval_sign(long struct)
Unsafe version ofinterval_sign().
-
nintval_year_month
public static SQL_YEAR_MONTH_STRUCT nintval_year_month(long struct)
Unsafe version ofintval_year_month().
-
nintval_day_second
public static SQL_DAY_SECOND_STRUCT nintval_day_second(long struct)
Unsafe version ofintval_day_second().
-
ninterval_type
public static void ninterval_type(long struct, int value)Unsafe version ofinterval_type.
-
ninterval_sign
public static void ninterval_sign(long struct, short value)Unsafe version ofinterval_sign.
-
nintval_year_month
public static void nintval_year_month(long struct, SQL_YEAR_MONTH_STRUCT value)Unsafe version ofintval_year_month.
-
nintval_day_second
public static void nintval_day_second(long struct, SQL_DAY_SECOND_STRUCT value)Unsafe version ofintval_day_second.
-
-