Package org.lwjgl.odbc
Class SQL_SS_TIME2_STRUCT.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<SQL_SS_TIME2_STRUCT,SQL_SS_TIME2_STRUCT.Buffer>
-
- org.lwjgl.odbc.SQL_SS_TIME2_STRUCT.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<SQL_SS_TIME2_STRUCT>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- SQL_SS_TIME2_STRUCT
public static class SQL_SS_TIME2_STRUCT.Buffer extends org.lwjgl.system.StructBuffer<SQL_SS_TIME2_STRUCT,SQL_SS_TIME2_STRUCT.Buffer> implements org.lwjgl.system.NativeResource
An array ofSQL_SS_TIME2_STRUCTstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfraction()SQL_SS_TIME2_STRUCT.Bufferfraction(int value)Sets the specified value to thefractionfield.shorthour()SQL_SS_TIME2_STRUCT.Bufferhour(short value)Sets the specified value to thehourfield.shortminute()SQL_SS_TIME2_STRUCT.Bufferminute(short value)Sets the specified value to theminutefield.shortsecond()SQL_SS_TIME2_STRUCT.Buffersecond(short value)Sets the specified value to thesecondfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newSQL_SS_TIME2_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_SS_TIME2_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.
-
fraction
public int fraction()
- Returns:
- the value of the
fractionfield.
-
hour
public SQL_SS_TIME2_STRUCT.Buffer hour(short value)
Sets the specified value to thehourfield.
-
minute
public SQL_SS_TIME2_STRUCT.Buffer minute(short value)
Sets the specified value to theminutefield.
-
second
public SQL_SS_TIME2_STRUCT.Buffer second(short value)
Sets the specified value to thesecondfield.
-
fraction
public SQL_SS_TIME2_STRUCT.Buffer fraction(int value)
Sets the specified value to thefractionfield.
-
-