Package org.lwjgl.odbc
Class SQL_DAY_SECOND_STRUCT.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<SQL_DAY_SECOND_STRUCT,SQL_DAY_SECOND_STRUCT.Buffer>
-
- org.lwjgl.odbc.SQL_DAY_SECOND_STRUCT.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<SQL_DAY_SECOND_STRUCT>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- SQL_DAY_SECOND_STRUCT
public static class SQL_DAY_SECOND_STRUCT.Buffer extends org.lwjgl.system.StructBuffer<SQL_DAY_SECOND_STRUCT,SQL_DAY_SECOND_STRUCT.Buffer> implements org.lwjgl.system.NativeResource
An array ofSQL_DAY_SECOND_STRUCTstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intday()SQL_DAY_SECOND_STRUCT.Bufferday(int value)Sets the specified value to thedayfield.intfraction()SQL_DAY_SECOND_STRUCT.Bufferfraction(int value)Sets the specified value to thefractionfield.inthour()SQL_DAY_SECOND_STRUCT.Bufferhour(int value)Sets the specified value to thehourfield.intminute()SQL_DAY_SECOND_STRUCT.Bufferminute(int value)Sets the specified value to theminutefield.intsecond()SQL_DAY_SECOND_STRUCT.Buffersecond(int value)Sets the specified value to thesecondfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newSQL_DAY_SECOND_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_DAY_SECOND_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
-
day
public int day()
- Returns:
- the value of the
dayfield.
-
hour
public int hour()
- Returns:
- the value of the
hourfield.
-
minute
public int minute()
- Returns:
- the value of the
minutefield.
-
second
public int second()
- Returns:
- the value of the
secondfield.
-
fraction
public int fraction()
- Returns:
- the value of the
fractionfield.
-
day
public SQL_DAY_SECOND_STRUCT.Buffer day(int value)
Sets the specified value to thedayfield.
-
hour
public SQL_DAY_SECOND_STRUCT.Buffer hour(int value)
Sets the specified value to thehourfield.
-
minute
public SQL_DAY_SECOND_STRUCT.Buffer minute(int value)
Sets the specified value to theminutefield.
-
second
public SQL_DAY_SECOND_STRUCT.Buffer second(int value)
Sets the specified value to thesecondfield.
-
fraction
public SQL_DAY_SECOND_STRUCT.Buffer fraction(int value)
Sets the specified value to thefractionfield.
-
-