Package org.lwjgl.odbc
Class SQLPERF.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<SQLPERF>,NativeResource,Pointer
- Enclosing class:
SQLPERF
public static class SQLPERF.Buffer
extends StructBuffer<SQLPERF,SQLPERF.Buffer>
implements NativeResource
An array of
SQLPERF structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newSQLPERF.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptiondoubleAvgCursorSize(double value) Sets the specified value to theAvgCursorSizefield.doubleAvgCursorUsed(double value) Sets the specified value to theAvgCursorUsedfield.doubleAvgFetchTime(double value) Sets the specified value to theAvgFetchTimefield.doubleAvgTimeOpened(double value) Sets the specified value to theAvgTimeOpenedfield.intBuffersRec(int value) Sets the specified value to theBuffersRecfield.intBuffersSent(int value) Sets the specified value to theBuffersSentfield.intBytesRec()BytesRec(int value) Sets the specified value to theBytesRecfield.intBytesSent(int value) Sets the specified value to theBytesSentfield.intCurrentConnectionCount(int value) Sets the specified value to theCurrentConnectionCountfield.intCurrentStmtCount(int value) Sets the specified value to theCurrentStmtCountfield.intCursorOpens(int value) Sets the specified value to theCursorOpensfield.intCursorSize(int value) Sets the specified value to theCursorSizefield.intCursorUsed(int value) Sets the specified value to theCursorUsedfield.intExecDirects(int value) Sets the specified value to theExecDirectsfield.intMaxConnectionsOpened(int value) Sets the specified value to theMaxConnectionsOpenedfield.intMaxOpenStmt(int value) Sets the specified value to theMaxOpenStmtfield.intmsExecutionTime(int value) Sets the specified value to themsExecutionTimefield.intmsNetWorkServerTime(int value) Sets the specified value to themsNetWorkServerTimefield.doublePercentCursorUsed(double value) Sets the specified value to thePercentCursorUsedfield.intServerRndTrips(int value) Sets the specified value to theServerRndTripsfield.intSQLExecutes(int value) Sets the specified value to theSQLExecutesfield.intSQLFetchCount(int value) Sets the specified value to theSQLFetchCountfield.intSQLFetchTime(int value) Sets the specified value to theSQLFetchTimefield.intSQLidu()SQLidu(int value) Sets the specified value to theSQLidufield.intSQLiduRows(int value) Sets the specified value to theSQLiduRowsfield.intSQLPrepares(int value) Sets the specified value to theSQLPreparesfield.intSQLSelectRows(int value) Sets the specified value to theSQLSelectRowsfield.intSQLSelects(int value) Sets the specified value to theSQLSelectsfield.intSumConnectionsOpened(int value) Sets the specified value to theSumConnectionsOpenedfield.intSumConnectiontime(int value) Sets the specified value to theSumConnectiontimefield.intSumOpenStmt(int value) Sets the specified value to theSumOpenStmtfield.intTimerResolution(int value) Sets the specified value to theTimerResolutionfield.intTransactions(int value) Sets the specified value to theTransactionsfield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newSQLPERF.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 by
SQLPERF.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 Details
-
TimerResolution
public int TimerResolution()- Returns:
- the value of the
TimerResolutionfield.
-
SQLidu
public int SQLidu()- Returns:
- the value of the
SQLidufield.
-
SQLiduRows
public int SQLiduRows()- Returns:
- the value of the
SQLiduRowsfield.
-
SQLSelects
public int SQLSelects()- Returns:
- the value of the
SQLSelectsfield.
-
SQLSelectRows
public int SQLSelectRows()- Returns:
- the value of the
SQLSelectRowsfield.
-
Transactions
public int Transactions()- Returns:
- the value of the
Transactionsfield.
-
SQLPrepares
public int SQLPrepares()- Returns:
- the value of the
SQLPreparesfield.
-
ExecDirects
public int ExecDirects()- Returns:
- the value of the
ExecDirectsfield.
-
SQLExecutes
public int SQLExecutes()- Returns:
- the value of the
SQLExecutesfield.
-
CursorOpens
public int CursorOpens()- Returns:
- the value of the
CursorOpensfield.
-
CursorSize
public int CursorSize()- Returns:
- the value of the
CursorSizefield.
-
CursorUsed
public int CursorUsed()- Returns:
- the value of the
CursorUsedfield.
-
PercentCursorUsed
public double PercentCursorUsed()- Returns:
- the value of the
PercentCursorUsedfield.
-
AvgFetchTime
public double AvgFetchTime()- Returns:
- the value of the
AvgFetchTimefield.
-
AvgCursorSize
public double AvgCursorSize()- Returns:
- the value of the
AvgCursorSizefield.
-
AvgCursorUsed
public double AvgCursorUsed()- Returns:
- the value of the
AvgCursorUsedfield.
-
SQLFetchTime
public int SQLFetchTime()- Returns:
- the value of the
SQLFetchTimefield.
-
SQLFetchCount
public int SQLFetchCount()- Returns:
- the value of the
SQLFetchCountfield.
-
CurrentStmtCount
public int CurrentStmtCount()- Returns:
- the value of the
CurrentStmtCountfield.
-
MaxOpenStmt
public int MaxOpenStmt()- Returns:
- the value of the
MaxOpenStmtfield.
-
SumOpenStmt
public int SumOpenStmt()- Returns:
- the value of the
SumOpenStmtfield.
-
CurrentConnectionCount
public int CurrentConnectionCount()- Returns:
- the value of the
CurrentConnectionCountfield.
-
MaxConnectionsOpened
public int MaxConnectionsOpened()- Returns:
- the value of the
MaxConnectionsOpenedfield.
-
SumConnectionsOpened
public int SumConnectionsOpened()- Returns:
- the value of the
SumConnectionsOpenedfield.
-
SumConnectiontime
public int SumConnectiontime()- Returns:
- the value of the
SumConnectiontimefield.
-
AvgTimeOpened
public double AvgTimeOpened()- Returns:
- the value of the
AvgTimeOpenedfield.
-
ServerRndTrips
public int ServerRndTrips()- Returns:
- the value of the
ServerRndTripsfield.
-
BuffersSent
public int BuffersSent()- Returns:
- the value of the
BuffersSentfield.
-
BuffersRec
public int BuffersRec()- Returns:
- the value of the
BuffersRecfield.
-
BytesSent
public int BytesSent()- Returns:
- the value of the
BytesSentfield.
-
BytesRec
public int BytesRec()- Returns:
- the value of the
BytesRecfield.
-
msExecutionTime
public int msExecutionTime()- Returns:
- the value of the
msExecutionTimefield.
-
msNetWorkServerTime
public int msNetWorkServerTime()- Returns:
- the value of the
msNetWorkServerTimefield.
-
TimerResolution
Sets the specified value to theTimerResolutionfield. -
SQLidu
Sets the specified value to theSQLidufield. -
SQLiduRows
Sets the specified value to theSQLiduRowsfield. -
SQLSelects
Sets the specified value to theSQLSelectsfield. -
SQLSelectRows
Sets the specified value to theSQLSelectRowsfield. -
Transactions
Sets the specified value to theTransactionsfield. -
SQLPrepares
Sets the specified value to theSQLPreparesfield. -
ExecDirects
Sets the specified value to theExecDirectsfield. -
SQLExecutes
Sets the specified value to theSQLExecutesfield. -
CursorOpens
Sets the specified value to theCursorOpensfield. -
CursorSize
Sets the specified value to theCursorSizefield. -
CursorUsed
Sets the specified value to theCursorUsedfield. -
PercentCursorUsed
Sets the specified value to thePercentCursorUsedfield. -
AvgFetchTime
Sets the specified value to theAvgFetchTimefield. -
AvgCursorSize
Sets the specified value to theAvgCursorSizefield. -
AvgCursorUsed
Sets the specified value to theAvgCursorUsedfield. -
SQLFetchTime
Sets the specified value to theSQLFetchTimefield. -
SQLFetchCount
Sets the specified value to theSQLFetchCountfield. -
CurrentStmtCount
Sets the specified value to theCurrentStmtCountfield. -
MaxOpenStmt
Sets the specified value to theMaxOpenStmtfield. -
SumOpenStmt
Sets the specified value to theSumOpenStmtfield. -
CurrentConnectionCount
Sets the specified value to theCurrentConnectionCountfield. -
MaxConnectionsOpened
Sets the specified value to theMaxConnectionsOpenedfield. -
SumConnectionsOpened
Sets the specified value to theSumConnectionsOpenedfield. -
SumConnectiontime
Sets the specified value to theSumConnectiontimefield. -
AvgTimeOpened
Sets the specified value to theAvgTimeOpenedfield. -
ServerRndTrips
Sets the specified value to theServerRndTripsfield. -
BuffersSent
Sets the specified value to theBuffersSentfield. -
BuffersRec
Sets the specified value to theBuffersRecfield. -
BytesSent
Sets the specified value to theBytesSentfield. -
BytesRec
Sets the specified value to theBytesRecfield. -
msExecutionTime
Sets the specified value to themsExecutionTimefield. -
msNetWorkServerTime
Sets the specified value to themsNetWorkServerTimefield.
-