Package org.lwjgl.odbc
Class SQL_TIMESTAMP_STRUCT.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<SQL_TIMESTAMP_STRUCT,SQL_TIMESTAMP_STRUCT.Buffer>
-
- org.lwjgl.odbc.SQL_TIMESTAMP_STRUCT.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<SQL_TIMESTAMP_STRUCT>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- SQL_TIMESTAMP_STRUCT
public static class SQL_TIMESTAMP_STRUCT.Buffer extends org.lwjgl.system.StructBuffer<SQL_TIMESTAMP_STRUCT,SQL_TIMESTAMP_STRUCT.Buffer> implements org.lwjgl.system.NativeResource
An array ofSQL_TIMESTAMP_STRUCTstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortday()SQL_TIMESTAMP_STRUCT.Bufferday(short value)Sets the specified value to thedayfield.intfraction()SQL_TIMESTAMP_STRUCT.Bufferfraction(int value)Sets the specified value to thefractionfield.shorthour()SQL_TIMESTAMP_STRUCT.Bufferhour(short value)Sets the specified value to thehourfield.shortminute()SQL_TIMESTAMP_STRUCT.Bufferminute(short value)Sets the specified value to theminutefield.shortmonth()SQL_TIMESTAMP_STRUCT.Buffermonth(short value)Sets the specified value to themonthfield.shortsecond()SQL_TIMESTAMP_STRUCT.Buffersecond(short value)Sets the specified value to thesecondfield.shortyear()SQL_TIMESTAMP_STRUCT.Bufferyear(short value)Sets the specified value to theyearfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newSQL_TIMESTAMP_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_TIMESTAMP_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
-
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.
-
year
public SQL_TIMESTAMP_STRUCT.Buffer year(short value)
Sets the specified value to theyearfield.
-
month
public SQL_TIMESTAMP_STRUCT.Buffer month(short value)
Sets the specified value to themonthfield.
-
day
public SQL_TIMESTAMP_STRUCT.Buffer day(short value)
Sets the specified value to thedayfield.
-
hour
public SQL_TIMESTAMP_STRUCT.Buffer hour(short value)
Sets the specified value to thehourfield.
-
minute
public SQL_TIMESTAMP_STRUCT.Buffer minute(short value)
Sets the specified value to theminutefield.
-
second
public SQL_TIMESTAMP_STRUCT.Buffer second(short value)
Sets the specified value to thesecondfield.
-
fraction
public SQL_TIMESTAMP_STRUCT.Buffer fraction(int value)
Sets the specified value to thefractionfield.
-
-