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_STRUCTstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shorthour()SQL_TIME_STRUCT.Bufferhour(short value)Sets the specified value to thehourfield.shortminute()SQL_TIME_STRUCT.Bufferminute(short value)Sets the specified value to theminutefield.shortsecond()SQL_TIME_STRUCT.Buffersecond(short value)Sets the specified value to thesecondfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newSQL_TIME_STRUCT.Bufferinstance 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 the
hourfield.
-
minute
public short minute()
- Returns:
- the value of the
minutefield.
-
second
public short second()
- Returns:
- the value of the
secondfield.
-
hour
public SQL_TIME_STRUCT.Buffer hour(short value)
Sets the specified value to thehourfield.
-
minute
public SQL_TIME_STRUCT.Buffer minute(short value)
Sets the specified value to theminutefield.
-
second
public SQL_TIME_STRUCT.Buffer second(short value)
Sets the specified value to thesecondfield.
-
-