Package org.lwjgl.odbc
Class SQL_YEAR_MONTH_STRUCT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.odbc.SQL_YEAR_MONTH_STRUCT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class SQL_YEAR_MONTH_STRUCT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct SQL_YEAR_MONTH_STRUCT { SQLUINTEGER year; SQLUINTEGER month; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSQL_YEAR_MONTH_STRUCT.BufferAn array ofSQL_YEAR_MONTH_STRUCTstructs.
-
Constructor Summary
Constructors Constructor Description SQL_YEAR_MONTH_STRUCT(java.nio.ByteBuffer container)Creates aSQL_YEAR_MONTH_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_YEAR_MONTH_STRUCTcalloc()Returns a newSQL_YEAR_MONTH_STRUCTinstance allocated withmemCalloc.static SQL_YEAR_MONTH_STRUCT.Buffercalloc(int capacity)Returns a newSQL_YEAR_MONTH_STRUCT.Bufferinstance allocated withmemCalloc.static SQL_YEAR_MONTH_STRUCT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSQL_YEAR_MONTH_STRUCT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SQL_YEAR_MONTH_STRUCTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newSQL_YEAR_MONTH_STRUCTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SQL_YEAR_MONTH_STRUCTcallocStack()Deprecated.static SQL_YEAR_MONTH_STRUCT.BuffercallocStack(int capacity)Deprecated.static SQL_YEAR_MONTH_STRUCT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static SQL_YEAR_MONTH_STRUCTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static SQL_YEAR_MONTH_STRUCTcreate()Returns a newSQL_YEAR_MONTH_STRUCTinstance allocated withBufferUtils.static SQL_YEAR_MONTH_STRUCT.Buffercreate(int capacity)Returns a newSQL_YEAR_MONTH_STRUCT.Bufferinstance allocated withBufferUtils.static SQL_YEAR_MONTH_STRUCTcreate(long address)Returns a newSQL_YEAR_MONTH_STRUCTinstance for the specified memory address.static SQL_YEAR_MONTH_STRUCT.Buffercreate(long address, int capacity)Create aSQL_YEAR_MONTH_STRUCT.Bufferinstance at the specified memory.static SQL_YEAR_MONTH_STRUCTcreateSafe(long address)static SQL_YEAR_MONTH_STRUCT.BuffercreateSafe(long address, int capacity)static SQL_YEAR_MONTH_STRUCTmalloc()Returns a newSQL_YEAR_MONTH_STRUCTinstance allocated withmemAlloc.static SQL_YEAR_MONTH_STRUCT.Buffermalloc(int capacity)Returns a newSQL_YEAR_MONTH_STRUCT.Bufferinstance allocated withmemAlloc.static SQL_YEAR_MONTH_STRUCT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSQL_YEAR_MONTH_STRUCT.Bufferinstance allocated on the specifiedMemoryStack.static SQL_YEAR_MONTH_STRUCTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newSQL_YEAR_MONTH_STRUCTinstance allocated on the specifiedMemoryStack.static SQL_YEAR_MONTH_STRUCTmallocStack()Deprecated.static SQL_YEAR_MONTH_STRUCT.BuffermallocStack(int capacity)Deprecated.static SQL_YEAR_MONTH_STRUCT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static SQL_YEAR_MONTH_STRUCTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intmonth()SQL_YEAR_MONTH_STRUCTmonth(int value)Sets the specified value to themonthfield.static intnmonth(long struct)Unsafe version ofmonth().static voidnmonth(long struct, int value)Unsafe version ofmonth.static intnyear(long struct)Unsafe version ofyear().static voidnyear(long struct, int value)Unsafe version ofyear.SQL_YEAR_MONTH_STRUCTset(int year, int month)Initializes this struct with the specified values.SQL_YEAR_MONTH_STRUCTset(SQL_YEAR_MONTH_STRUCT src)Copies the specified struct data to this struct.intsizeof()intyear()SQL_YEAR_MONTH_STRUCTyear(int value)Sets the specified value to theyearfield.
-
-
-
Constructor Detail
-
SQL_YEAR_MONTH_STRUCT
public SQL_YEAR_MONTH_STRUCT(java.nio.ByteBuffer container)
Creates aSQL_YEAR_MONTH_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
-
year
public int year()
- Returns:
- the value of the
yearfield.
-
month
public int month()
- Returns:
- the value of the
monthfield.
-
year
public SQL_YEAR_MONTH_STRUCT year(int value)
Sets the specified value to theyearfield.
-
month
public SQL_YEAR_MONTH_STRUCT month(int value)
Sets the specified value to themonthfield.
-
set
public SQL_YEAR_MONTH_STRUCT set(int year, int month)
Initializes this struct with the specified values.
-
set
public SQL_YEAR_MONTH_STRUCT set(SQL_YEAR_MONTH_STRUCT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static SQL_YEAR_MONTH_STRUCT malloc()
Returns a newSQL_YEAR_MONTH_STRUCTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static SQL_YEAR_MONTH_STRUCT calloc()
Returns a newSQL_YEAR_MONTH_STRUCTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static SQL_YEAR_MONTH_STRUCT create()
Returns a newSQL_YEAR_MONTH_STRUCTinstance allocated withBufferUtils.
-
create
public static SQL_YEAR_MONTH_STRUCT create(long address)
Returns a newSQL_YEAR_MONTH_STRUCTinstance for the specified memory address.
-
createSafe
@Nullable public static SQL_YEAR_MONTH_STRUCT createSafe(long address)
-
malloc
public static SQL_YEAR_MONTH_STRUCT.Buffer malloc(int capacity)
Returns a newSQL_YEAR_MONTH_STRUCT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static SQL_YEAR_MONTH_STRUCT.Buffer calloc(int capacity)
Returns a newSQL_YEAR_MONTH_STRUCT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static SQL_YEAR_MONTH_STRUCT.Buffer create(int capacity)
Returns a newSQL_YEAR_MONTH_STRUCT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static SQL_YEAR_MONTH_STRUCT.Buffer create(long address, int capacity)
Create aSQL_YEAR_MONTH_STRUCT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static SQL_YEAR_MONTH_STRUCT.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static SQL_YEAR_MONTH_STRUCT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static SQL_YEAR_MONTH_STRUCT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static SQL_YEAR_MONTH_STRUCT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static SQL_YEAR_MONTH_STRUCT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static SQL_YEAR_MONTH_STRUCT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static SQL_YEAR_MONTH_STRUCT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static SQL_YEAR_MONTH_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_YEAR_MONTH_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_YEAR_MONTH_STRUCT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newSQL_YEAR_MONTH_STRUCTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static SQL_YEAR_MONTH_STRUCT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newSQL_YEAR_MONTH_STRUCTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static SQL_YEAR_MONTH_STRUCT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSQL_YEAR_MONTH_STRUCT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static SQL_YEAR_MONTH_STRUCT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSQL_YEAR_MONTH_STRUCT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nyear
public static int nyear(long struct)
Unsafe version ofyear().
-
nmonth
public static int nmonth(long struct)
Unsafe version ofmonth().
-
nyear
public static void nyear(long struct, int value)Unsafe version ofyear.
-
nmonth
public static void nmonth(long struct, int value)Unsafe version ofmonth.
-
-