Package org.lwjgl.odbc
Class SQL_TIME_STRUCT.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<SQL_TIME_STRUCT,SQL_TIME_STRUCT.Buffer>
-
- org.lwjgl.odbc.SQL_TIME_STRUCT.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<SQL_TIME_STRUCT>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- SQL_TIME_STRUCT
public static class SQL_TIME_STRUCT.Buffer extends org.lwjgl.system.StructBuffer<SQL_TIME_STRUCT,SQL_TIME_STRUCT.Buffer> implements org.lwjgl.system.NativeResource
An array ofSQL_TIME_STRUCT
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
hour()
Returns the value of thehour
field.SQL_TIME_STRUCT.Buffer
hour(short value)
Sets the specified value to thehour
field.short
minute()
Returns the value of theminute
field.SQL_TIME_STRUCT.Buffer
minute(short value)
Sets the specified value to theminute
field.short
second()
Returns the value of thesecond
field.SQL_TIME_STRUCT.Buffer
second(short value)
Sets the specified value to thesecond
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newSQL_TIME_STRUCT.Buffer
instance 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_TIME_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
-
hour
public short hour()
Returns the value of thehour
field.
-
minute
public short minute()
Returns the value of theminute
field.
-
second
public short second()
Returns the value of thesecond
field.
-
hour
public SQL_TIME_STRUCT.Buffer hour(short value)
Sets the specified value to thehour
field.
-
minute
public SQL_TIME_STRUCT.Buffer minute(short value)
Sets the specified value to theminute
field.
-
second
public SQL_TIME_STRUCT.Buffer second(short value)
Sets the specified value to thesecond
field.
-
-