Package org.lwjgl.odbc
Class SQL_SS_TIMESTAMPOFFSET_STRUCT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.odbc.SQL_SS_TIMESTAMPOFFSET_STRUCT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class SQL_SS_TIMESTAMPOFFSET_STRUCT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct SQL_SS_TIMESTAMPOFFSET_STRUCT { SQLSMALLINT year; SQLUSMALLINT month; SQLUSMALLINT day; SQLUSMALLINT hour; SQLUSMALLINT minute; SQLUSMALLINT second; SQLUINTEGER fraction; SQLSMALLINT timezone_hour; SQLSMALLINT timezone_minute; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSQL_SS_TIMESTAMPOFFSET_STRUCT.BufferAn array ofSQL_SS_TIMESTAMPOFFSET_STRUCTstructs.
-
Constructor Summary
Constructors Constructor Description SQL_SS_TIMESTAMPOFFSET_STRUCT(java.nio.ByteBuffer container)Creates aSQL_SS_TIMESTAMPOFFSET_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_SS_TIMESTAMPOFFSET_STRUCTcalloc()Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCTinstance allocated withmemCalloc.static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffercalloc(int capacity)Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Bufferinstance allocated withmemCalloc.static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SQL_SS_TIMESTAMPOFFSET_STRUCTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SQL_SS_TIMESTAMPOFFSET_STRUCTcallocStack()Deprecated.static SQL_SS_TIMESTAMPOFFSET_STRUCT.BuffercallocStack(int capacity)Deprecated.static SQL_SS_TIMESTAMPOFFSET_STRUCT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static SQL_SS_TIMESTAMPOFFSET_STRUCTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static SQL_SS_TIMESTAMPOFFSET_STRUCTcreate()Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCTinstance allocated withBufferUtils.static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffercreate(int capacity)Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Bufferinstance allocated withBufferUtils.static SQL_SS_TIMESTAMPOFFSET_STRUCTcreate(long address)Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCTinstance for the specified memory address.static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffercreate(long address, int capacity)Create aSQL_SS_TIMESTAMPOFFSET_STRUCT.Bufferinstance at the specified memory.static SQL_SS_TIMESTAMPOFFSET_STRUCTcreateSafe(long address)static SQL_SS_TIMESTAMPOFFSET_STRUCT.BuffercreateSafe(long address, int capacity)shortday()SQL_SS_TIMESTAMPOFFSET_STRUCTday(short value)Sets the specified value to thedayfield.intfraction()SQL_SS_TIMESTAMPOFFSET_STRUCTfraction(int value)Sets the specified value to thefractionfield.shorthour()SQL_SS_TIMESTAMPOFFSET_STRUCThour(short value)Sets the specified value to thehourfield.static SQL_SS_TIMESTAMPOFFSET_STRUCTmalloc()Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCTinstance allocated withmemAlloc.static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffermalloc(int capacity)Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Bufferinstance allocated withmemAlloc.static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Bufferinstance allocated on the specifiedMemoryStack.static SQL_SS_TIMESTAMPOFFSET_STRUCTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCTinstance allocated on the specifiedMemoryStack.static SQL_SS_TIMESTAMPOFFSET_STRUCTmallocStack()Deprecated.static SQL_SS_TIMESTAMPOFFSET_STRUCT.BuffermallocStack(int capacity)Deprecated.static SQL_SS_TIMESTAMPOFFSET_STRUCT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static SQL_SS_TIMESTAMPOFFSET_STRUCTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.shortminute()SQL_SS_TIMESTAMPOFFSET_STRUCTminute(short value)Sets the specified value to theminutefield.shortmonth()SQL_SS_TIMESTAMPOFFSET_STRUCTmonth(short value)Sets the specified value to themonthfield.static shortnday(long struct)Unsafe version ofday().static voidnday(long struct, short value)Unsafe version ofday.static intnfraction(long struct)Unsafe version offraction().static voidnfraction(long struct, int value)Unsafe version offraction.static shortnhour(long struct)Unsafe version ofhour().static voidnhour(long struct, short value)Unsafe version ofhour.static shortnminute(long struct)Unsafe version ofminute().static voidnminute(long struct, short value)Unsafe version ofminute.static shortnmonth(long struct)Unsafe version ofmonth().static voidnmonth(long struct, short value)Unsafe version ofmonth.static shortnsecond(long struct)Unsafe version ofsecond().static voidnsecond(long struct, short value)Unsafe version ofsecond.static shortntimezone_hour(long struct)Unsafe version oftimezone_hour().static voidntimezone_hour(long struct, short value)Unsafe version oftimezone_hour.static shortntimezone_minute(long struct)Unsafe version oftimezone_minute().static voidntimezone_minute(long struct, short value)Unsafe version oftimezone_minute.static shortnyear(long struct)Unsafe version ofyear().static voidnyear(long struct, short value)Unsafe version ofyear.shortsecond()SQL_SS_TIMESTAMPOFFSET_STRUCTsecond(short value)Sets the specified value to thesecondfield.SQL_SS_TIMESTAMPOFFSET_STRUCTset(short year, short month, short day, short hour, short minute, short second, int fraction, short timezone_hour, short timezone_minute)Initializes this struct with the specified values.SQL_SS_TIMESTAMPOFFSET_STRUCTset(SQL_SS_TIMESTAMPOFFSET_STRUCT src)Copies the specified struct data to this struct.intsizeof()shorttimezone_hour()SQL_SS_TIMESTAMPOFFSET_STRUCTtimezone_hour(short value)Sets the specified value to thetimezone_hourfield.shorttimezone_minute()SQL_SS_TIMESTAMPOFFSET_STRUCTtimezone_minute(short value)Sets the specified value to thetimezone_minutefield.shortyear()SQL_SS_TIMESTAMPOFFSET_STRUCTyear(short value)Sets the specified value to theyearfield.
-
-
-
Constructor Detail
-
SQL_SS_TIMESTAMPOFFSET_STRUCT
public SQL_SS_TIMESTAMPOFFSET_STRUCT(java.nio.ByteBuffer container)
Creates aSQL_SS_TIMESTAMPOFFSET_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 short year()
- Returns:
- the value of the
yearfield.
-
month
public short month()
- Returns:
- the value of the
monthfield.
-
day
public short day()
- Returns:
- the value of the
dayfield.
-
hour
public short hour()
- Returns:
- the value of the
hourfield.
-
minute
public short minute()
- Returns:
- the value of the
minutefield.
-
second
public short second()
- Returns:
- the value of the
secondfield.
-
fraction
public int fraction()
- Returns:
- the value of the
fractionfield.
-
timezone_hour
public short timezone_hour()
- Returns:
- the value of the
timezone_hourfield.
-
timezone_minute
public short timezone_minute()
- Returns:
- the value of the
timezone_minutefield.
-
year
public SQL_SS_TIMESTAMPOFFSET_STRUCT year(short value)
Sets the specified value to theyearfield.
-
month
public SQL_SS_TIMESTAMPOFFSET_STRUCT month(short value)
Sets the specified value to themonthfield.
-
day
public SQL_SS_TIMESTAMPOFFSET_STRUCT day(short value)
Sets the specified value to thedayfield.
-
hour
public SQL_SS_TIMESTAMPOFFSET_STRUCT hour(short value)
Sets the specified value to thehourfield.
-
minute
public SQL_SS_TIMESTAMPOFFSET_STRUCT minute(short value)
Sets the specified value to theminutefield.
-
second
public SQL_SS_TIMESTAMPOFFSET_STRUCT second(short value)
Sets the specified value to thesecondfield.
-
fraction
public SQL_SS_TIMESTAMPOFFSET_STRUCT fraction(int value)
Sets the specified value to thefractionfield.
-
timezone_hour
public SQL_SS_TIMESTAMPOFFSET_STRUCT timezone_hour(short value)
Sets the specified value to thetimezone_hourfield.
-
timezone_minute
public SQL_SS_TIMESTAMPOFFSET_STRUCT timezone_minute(short value)
Sets the specified value to thetimezone_minutefield.
-
set
public SQL_SS_TIMESTAMPOFFSET_STRUCT set(short year, short month, short day, short hour, short minute, short second, int fraction, short timezone_hour, short timezone_minute)
Initializes this struct with the specified values.
-
set
public SQL_SS_TIMESTAMPOFFSET_STRUCT set(SQL_SS_TIMESTAMPOFFSET_STRUCT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static SQL_SS_TIMESTAMPOFFSET_STRUCT malloc()
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static SQL_SS_TIMESTAMPOFFSET_STRUCT calloc()
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static SQL_SS_TIMESTAMPOFFSET_STRUCT create()
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCTinstance allocated withBufferUtils.
-
create
public static SQL_SS_TIMESTAMPOFFSET_STRUCT create(long address)
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCTinstance for the specified memory address.
-
createSafe
@Nullable public static SQL_SS_TIMESTAMPOFFSET_STRUCT createSafe(long address)
-
malloc
public static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer malloc(int capacity)
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer calloc(int capacity)
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer create(int capacity)
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer create(long address, int capacity)
Create aSQL_SS_TIMESTAMPOFFSET_STRUCT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static SQL_SS_TIMESTAMPOFFSET_STRUCT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static SQL_SS_TIMESTAMPOFFSET_STRUCT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static SQL_SS_TIMESTAMPOFFSET_STRUCT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static SQL_SS_TIMESTAMPOFFSET_STRUCT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static SQL_SS_TIMESTAMPOFFSET_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_SS_TIMESTAMPOFFSET_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_SS_TIMESTAMPOFFSET_STRUCT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static SQL_SS_TIMESTAMPOFFSET_STRUCT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSQL_SS_TIMESTAMPOFFSET_STRUCT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static SQL_SS_TIMESTAMPOFFSET_STRUCT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSQL_SS_TIMESTAMPOFFSET_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 short nyear(long struct)
Unsafe version ofyear().
-
nmonth
public static short nmonth(long struct)
Unsafe version ofmonth().
-
nday
public static short nday(long struct)
Unsafe version ofday().
-
nhour
public static short nhour(long struct)
Unsafe version ofhour().
-
nminute
public static short nminute(long struct)
Unsafe version ofminute().
-
nsecond
public static short nsecond(long struct)
Unsafe version ofsecond().
-
nfraction
public static int nfraction(long struct)
Unsafe version offraction().
-
ntimezone_hour
public static short ntimezone_hour(long struct)
Unsafe version oftimezone_hour().
-
ntimezone_minute
public static short ntimezone_minute(long struct)
Unsafe version oftimezone_minute().
-
nyear
public static void nyear(long struct, short value)Unsafe version ofyear.
-
nmonth
public static void nmonth(long struct, short value)Unsafe version ofmonth.
-
nday
public static void nday(long struct, short value)Unsafe version ofday.
-
nhour
public static void nhour(long struct, short value)Unsafe version ofhour.
-
nminute
public static void nminute(long struct, short value)Unsafe version ofminute.
-
nsecond
public static void nsecond(long struct, short value)Unsafe version ofsecond.
-
nfraction
public static void nfraction(long struct, int value)Unsafe version offraction.
-
ntimezone_hour
public static void ntimezone_hour(long struct, short value)Unsafe version oftimezone_hour.
-
ntimezone_minute
public static void ntimezone_minute(long struct, short value)Unsafe version oftimezone_minute.
-
-