Package org.lwjgl.odbc
Class SQL_DAY_SECOND_STRUCT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.odbc.SQL_DAY_SECOND_STRUCT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class SQL_DAY_SECOND_STRUCT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct SQL_DAY_SECOND_STRUCT { SQLUINTEGER day; SQLUINTEGER hour; SQLUINTEGER minute; SQLUINTEGER second; SQLUINTEGER fraction; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSQL_DAY_SECOND_STRUCT.BufferAn array ofSQL_DAY_SECOND_STRUCTstructs.
-
Constructor Summary
Constructors Constructor Description SQL_DAY_SECOND_STRUCT(java.nio.ByteBuffer container)Creates aSQL_DAY_SECOND_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_DAY_SECOND_STRUCTcalloc()Returns a newSQL_DAY_SECOND_STRUCTinstance allocated withmemCalloc.static SQL_DAY_SECOND_STRUCT.Buffercalloc(int capacity)Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated withmemCalloc.static SQL_DAY_SECOND_STRUCT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SQL_DAY_SECOND_STRUCTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newSQL_DAY_SECOND_STRUCTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SQL_DAY_SECOND_STRUCTcallocStack()Deprecated.static SQL_DAY_SECOND_STRUCT.BuffercallocStack(int capacity)Deprecated.static SQL_DAY_SECOND_STRUCT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static SQL_DAY_SECOND_STRUCTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static SQL_DAY_SECOND_STRUCTcreate()Returns a newSQL_DAY_SECOND_STRUCTinstance allocated withBufferUtils.static SQL_DAY_SECOND_STRUCT.Buffercreate(int capacity)Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated withBufferUtils.static SQL_DAY_SECOND_STRUCTcreate(long address)Returns a newSQL_DAY_SECOND_STRUCTinstance for the specified memory address.static SQL_DAY_SECOND_STRUCT.Buffercreate(long address, int capacity)Create aSQL_DAY_SECOND_STRUCT.Bufferinstance at the specified memory.static SQL_DAY_SECOND_STRUCTcreateSafe(long address)static SQL_DAY_SECOND_STRUCT.BuffercreateSafe(long address, int capacity)intday()SQL_DAY_SECOND_STRUCTday(int value)Sets the specified value to thedayfield.intfraction()SQL_DAY_SECOND_STRUCTfraction(int value)Sets the specified value to thefractionfield.inthour()SQL_DAY_SECOND_STRUCThour(int value)Sets the specified value to thehourfield.static SQL_DAY_SECOND_STRUCTmalloc()Returns a newSQL_DAY_SECOND_STRUCTinstance allocated withmemAlloc.static SQL_DAY_SECOND_STRUCT.Buffermalloc(int capacity)Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated withmemAlloc.static SQL_DAY_SECOND_STRUCT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated on the specifiedMemoryStack.static SQL_DAY_SECOND_STRUCTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newSQL_DAY_SECOND_STRUCTinstance allocated on the specifiedMemoryStack.static SQL_DAY_SECOND_STRUCTmallocStack()Deprecated.static SQL_DAY_SECOND_STRUCT.BuffermallocStack(int capacity)Deprecated.static SQL_DAY_SECOND_STRUCT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static SQL_DAY_SECOND_STRUCTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intminute()SQL_DAY_SECOND_STRUCTminute(int value)Sets the specified value to theminutefield.static intnday(long struct)Unsafe version ofday().static voidnday(long struct, int value)Unsafe version ofday.static intnfraction(long struct)Unsafe version offraction().static voidnfraction(long struct, int value)Unsafe version offraction.static intnhour(long struct)Unsafe version ofhour().static voidnhour(long struct, int value)Unsafe version ofhour.static intnminute(long struct)Unsafe version ofminute().static voidnminute(long struct, int value)Unsafe version ofminute.static intnsecond(long struct)Unsafe version ofsecond().static voidnsecond(long struct, int value)Unsafe version ofsecond.intsecond()SQL_DAY_SECOND_STRUCTsecond(int value)Sets the specified value to thesecondfield.SQL_DAY_SECOND_STRUCTset(int day, int hour, int minute, int second, int fraction)Initializes this struct with the specified values.SQL_DAY_SECOND_STRUCTset(SQL_DAY_SECOND_STRUCT src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
SQL_DAY_SECOND_STRUCT
public SQL_DAY_SECOND_STRUCT(java.nio.ByteBuffer container)
Creates aSQL_DAY_SECOND_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
-
day
public int day()
- Returns:
- the value of the
dayfield.
-
hour
public int hour()
- Returns:
- the value of the
hourfield.
-
minute
public int minute()
- Returns:
- the value of the
minutefield.
-
second
public int second()
- Returns:
- the value of the
secondfield.
-
fraction
public int fraction()
- Returns:
- the value of the
fractionfield.
-
day
public SQL_DAY_SECOND_STRUCT day(int value)
Sets the specified value to thedayfield.
-
hour
public SQL_DAY_SECOND_STRUCT hour(int value)
Sets the specified value to thehourfield.
-
minute
public SQL_DAY_SECOND_STRUCT minute(int value)
Sets the specified value to theminutefield.
-
second
public SQL_DAY_SECOND_STRUCT second(int value)
Sets the specified value to thesecondfield.
-
fraction
public SQL_DAY_SECOND_STRUCT fraction(int value)
Sets the specified value to thefractionfield.
-
set
public SQL_DAY_SECOND_STRUCT set(int day, int hour, int minute, int second, int fraction)
Initializes this struct with the specified values.
-
set
public SQL_DAY_SECOND_STRUCT set(SQL_DAY_SECOND_STRUCT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static SQL_DAY_SECOND_STRUCT malloc()
Returns a newSQL_DAY_SECOND_STRUCTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static SQL_DAY_SECOND_STRUCT calloc()
Returns a newSQL_DAY_SECOND_STRUCTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static SQL_DAY_SECOND_STRUCT create()
Returns a newSQL_DAY_SECOND_STRUCTinstance allocated withBufferUtils.
-
create
public static SQL_DAY_SECOND_STRUCT create(long address)
Returns a newSQL_DAY_SECOND_STRUCTinstance for the specified memory address.
-
createSafe
@Nullable public static SQL_DAY_SECOND_STRUCT createSafe(long address)
-
malloc
public static SQL_DAY_SECOND_STRUCT.Buffer malloc(int capacity)
Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static SQL_DAY_SECOND_STRUCT.Buffer calloc(int capacity)
Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static SQL_DAY_SECOND_STRUCT.Buffer create(int capacity)
Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static SQL_DAY_SECOND_STRUCT.Buffer create(long address, int capacity)
Create aSQL_DAY_SECOND_STRUCT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static SQL_DAY_SECOND_STRUCT.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static SQL_DAY_SECOND_STRUCT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static SQL_DAY_SECOND_STRUCT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static SQL_DAY_SECOND_STRUCT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static SQL_DAY_SECOND_STRUCT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static SQL_DAY_SECOND_STRUCT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static SQL_DAY_SECOND_STRUCT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static SQL_DAY_SECOND_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_DAY_SECOND_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_DAY_SECOND_STRUCT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newSQL_DAY_SECOND_STRUCTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static SQL_DAY_SECOND_STRUCT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newSQL_DAY_SECOND_STRUCTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static SQL_DAY_SECOND_STRUCT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static SQL_DAY_SECOND_STRUCT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSQL_DAY_SECOND_STRUCT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nday
public static int nday(long struct)
Unsafe version ofday().
-
nhour
public static int nhour(long struct)
Unsafe version ofhour().
-
nminute
public static int nminute(long struct)
Unsafe version ofminute().
-
nsecond
public static int nsecond(long struct)
Unsafe version ofsecond().
-
nfraction
public static int nfraction(long struct)
Unsafe version offraction().
-
nday
public static void nday(long struct, int value)Unsafe version ofday.
-
nhour
public static void nhour(long struct, int value)Unsafe version ofhour.
-
nminute
public static void nminute(long struct, int value)Unsafe version ofminute.
-
nsecond
public static void nsecond(long struct, int value)Unsafe version ofsecond.
-
nfraction
public static void nfraction(long struct, int value)Unsafe version offraction.
-
-