Package org.lwjgl.odbc
Class SQLPERF
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.odbc.SQLPERF
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class SQLPERF extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct SQLPERF { DWORD TimerResolution; DWORD SQLidu; DWORD SQLiduRows; DWORD SQLSelects; DWORD SQLSelectRows; DWORD Transactions; DWORD SQLPrepares; DWORD ExecDirects; DWORD SQLExecutes; DWORD CursorOpens; DWORD CursorSize; DWORD CursorUsed; LDOUBLE PercentCursorUsed; LDOUBLE AvgFetchTime; LDOUBLE AvgCursorSize; LDOUBLE AvgCursorUsed; DWORD SQLFetchTime; DWORD SQLFetchCount; DWORD CurrentStmtCount; DWORD MaxOpenStmt; DWORD SumOpenStmt; DWORD CurrentConnectionCount; DWORD MaxConnectionsOpened; DWORD SumConnectionsOpened; DWORD SumConnectiontime; LDOUBLE AvgTimeOpened; DWORD ServerRndTrips; DWORD BuffersSent; DWORD BuffersRec; DWORD BytesSent; DWORD BytesRec; DWORD msExecutionTime; DWORD msNetWorkServerTime; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SQLPERF.Buffer
An array ofSQLPERF
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
AVGCURSORSIZE
AVGCURSORUSED
AVGFETCHTIME
AVGTIMEOPENED
BUFFERSREC
BUFFERSSENT
BYTESREC
BYTESSENT
CURRENTCONNECTIONCOUNT
CURRENTSTMTCOUNT
CURSOROPENS
CURSORSIZE
CURSORUSED
EXECDIRECTS
MAXCONNECTIONSOPENED
MAXOPENSTMT
MSEXECUTIONTIME
MSNETWORKSERVERTIME
PERCENTCURSORUSED
SERVERRNDTRIPSThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
SQLEXECUTES
SQLFETCHCOUNT
SQLFETCHTIME
SQLIDU
SQLIDUROWS
SQLPREPARES
SQLSELECTROWS
SQLSELECTS
SUMCONNECTIONSOPENED
SUMCONNECTIONTIME
SUMOPENSTMT
TIMERRESOLUTION
TRANSACTIONSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description SQLPERF(java.nio.ByteBuffer container)
Creates aSQLPERF
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
AvgCursorSize()
Returns the value of theAvgCursorSize
field.SQLPERF
AvgCursorSize(double value)
Sets the specified value to theAvgCursorSize
field.double
AvgCursorUsed()
Returns the value of theAvgCursorUsed
field.SQLPERF
AvgCursorUsed(double value)
Sets the specified value to theAvgCursorUsed
field.double
AvgFetchTime()
Returns the value of theAvgFetchTime
field.SQLPERF
AvgFetchTime(double value)
Sets the specified value to theAvgFetchTime
field.double
AvgTimeOpened()
Returns the value of theAvgTimeOpened
field.SQLPERF
AvgTimeOpened(double value)
Sets the specified value to theAvgTimeOpened
field.int
BuffersRec()
Returns the value of theBuffersRec
field.SQLPERF
BuffersRec(int value)
Sets the specified value to theBuffersRec
field.int
BuffersSent()
Returns the value of theBuffersSent
field.SQLPERF
BuffersSent(int value)
Sets the specified value to theBuffersSent
field.int
BytesRec()
Returns the value of theBytesRec
field.SQLPERF
BytesRec(int value)
Sets the specified value to theBytesRec
field.int
BytesSent()
Returns the value of theBytesSent
field.SQLPERF
BytesSent(int value)
Sets the specified value to theBytesSent
field.static SQLPERF
calloc()
Returns a newSQLPERF
instance allocated withmemCalloc
.static SQLPERF.Buffer
calloc(int capacity)
Returns a newSQLPERF.Buffer
instance allocated withmemCalloc
.static SQLPERF
callocStack()
Returns a newSQLPERF
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static SQLPERF.Buffer
callocStack(int capacity)
Returns a newSQLPERF.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static SQLPERF.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSQLPERF.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SQLPERF
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newSQLPERF
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SQLPERF
create()
Returns a newSQLPERF
instance allocated withBufferUtils
.static SQLPERF.Buffer
create(int capacity)
Returns a newSQLPERF.Buffer
instance allocated withBufferUtils
.static SQLPERF
create(long address)
Returns a newSQLPERF
instance for the specified memory address.static SQLPERF.Buffer
create(long address, int capacity)
Create aSQLPERF.Buffer
instance at the specified memory.static SQLPERF
createSafe(long address)
static SQLPERF.Buffer
createSafe(long address, int capacity)
int
CurrentConnectionCount()
Returns the value of theCurrentConnectionCount
field.SQLPERF
CurrentConnectionCount(int value)
Sets the specified value to theCurrentConnectionCount
field.int
CurrentStmtCount()
Returns the value of theCurrentStmtCount
field.SQLPERF
CurrentStmtCount(int value)
Sets the specified value to theCurrentStmtCount
field.int
CursorOpens()
Returns the value of theCursorOpens
field.SQLPERF
CursorOpens(int value)
Sets the specified value to theCursorOpens
field.int
CursorSize()
Returns the value of theCursorSize
field.SQLPERF
CursorSize(int value)
Sets the specified value to theCursorSize
field.int
CursorUsed()
Returns the value of theCursorUsed
field.SQLPERF
CursorUsed(int value)
Sets the specified value to theCursorUsed
field.int
ExecDirects()
Returns the value of theExecDirects
field.SQLPERF
ExecDirects(int value)
Sets the specified value to theExecDirects
field.static SQLPERF
malloc()
Returns a newSQLPERF
instance allocated withmemAlloc
.static SQLPERF.Buffer
malloc(int capacity)
Returns a newSQLPERF.Buffer
instance allocated withmemAlloc
.static SQLPERF
mallocStack()
Returns a newSQLPERF
instance allocated on the thread-localMemoryStack
.static SQLPERF.Buffer
mallocStack(int capacity)
Returns a newSQLPERF.Buffer
instance allocated on the thread-localMemoryStack
.static SQLPERF.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSQLPERF.Buffer
instance allocated on the specifiedMemoryStack
.static SQLPERF
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newSQLPERF
instance allocated on the specifiedMemoryStack
.int
MaxConnectionsOpened()
Returns the value of theMaxConnectionsOpened
field.SQLPERF
MaxConnectionsOpened(int value)
Sets the specified value to theMaxConnectionsOpened
field.int
MaxOpenStmt()
Returns the value of theMaxOpenStmt
field.SQLPERF
MaxOpenStmt(int value)
Sets the specified value to theMaxOpenStmt
field.int
msExecutionTime()
Returns the value of themsExecutionTime
field.SQLPERF
msExecutionTime(int value)
Sets the specified value to themsExecutionTime
field.int
msNetWorkServerTime()
Returns the value of themsNetWorkServerTime
field.SQLPERF
msNetWorkServerTime(int value)
Sets the specified value to themsNetWorkServerTime
field.static double
nAvgCursorSize(long struct)
Unsafe version ofAvgCursorSize()
.static void
nAvgCursorSize(long struct, double value)
Unsafe version ofAvgCursorSize
.static double
nAvgCursorUsed(long struct)
Unsafe version ofAvgCursorUsed()
.static void
nAvgCursorUsed(long struct, double value)
Unsafe version ofAvgCursorUsed
.static double
nAvgFetchTime(long struct)
Unsafe version ofAvgFetchTime()
.static void
nAvgFetchTime(long struct, double value)
Unsafe version ofAvgFetchTime
.static double
nAvgTimeOpened(long struct)
Unsafe version ofAvgTimeOpened()
.static void
nAvgTimeOpened(long struct, double value)
Unsafe version ofAvgTimeOpened
.static int
nBuffersRec(long struct)
Unsafe version ofBuffersRec()
.static void
nBuffersRec(long struct, int value)
Unsafe version ofBuffersRec
.static int
nBuffersSent(long struct)
Unsafe version ofBuffersSent()
.static void
nBuffersSent(long struct, int value)
Unsafe version ofBuffersSent
.static int
nBytesRec(long struct)
Unsafe version ofBytesRec()
.static void
nBytesRec(long struct, int value)
Unsafe version ofBytesRec
.static int
nBytesSent(long struct)
Unsafe version ofBytesSent()
.static void
nBytesSent(long struct, int value)
Unsafe version ofBytesSent
.static int
nCurrentConnectionCount(long struct)
Unsafe version ofCurrentConnectionCount()
.static void
nCurrentConnectionCount(long struct, int value)
Unsafe version ofCurrentConnectionCount
.static int
nCurrentStmtCount(long struct)
Unsafe version ofCurrentStmtCount()
.static void
nCurrentStmtCount(long struct, int value)
Unsafe version ofCurrentStmtCount
.static int
nCursorOpens(long struct)
Unsafe version ofCursorOpens()
.static void
nCursorOpens(long struct, int value)
Unsafe version ofCursorOpens
.static int
nCursorSize(long struct)
Unsafe version ofCursorSize()
.static void
nCursorSize(long struct, int value)
Unsafe version ofCursorSize
.static int
nCursorUsed(long struct)
Unsafe version ofCursorUsed()
.static void
nCursorUsed(long struct, int value)
Unsafe version ofCursorUsed
.static int
nExecDirects(long struct)
Unsafe version ofExecDirects()
.static void
nExecDirects(long struct, int value)
Unsafe version ofExecDirects
.static int
nMaxConnectionsOpened(long struct)
Unsafe version ofMaxConnectionsOpened()
.static void
nMaxConnectionsOpened(long struct, int value)
Unsafe version ofMaxConnectionsOpened
.static int
nMaxOpenStmt(long struct)
Unsafe version ofMaxOpenStmt()
.static void
nMaxOpenStmt(long struct, int value)
Unsafe version ofMaxOpenStmt
.static int
nmsExecutionTime(long struct)
Unsafe version ofmsExecutionTime()
.static void
nmsExecutionTime(long struct, int value)
Unsafe version ofmsExecutionTime
.static int
nmsNetWorkServerTime(long struct)
Unsafe version ofmsNetWorkServerTime()
.static void
nmsNetWorkServerTime(long struct, int value)
Unsafe version ofmsNetWorkServerTime
.static double
nPercentCursorUsed(long struct)
Unsafe version ofPercentCursorUsed()
.static void
nPercentCursorUsed(long struct, double value)
Unsafe version ofPercentCursorUsed
.static int
nServerRndTrips(long struct)
Unsafe version ofServerRndTrips()
.static void
nServerRndTrips(long struct, int value)
Unsafe version ofServerRndTrips
.static int
nSQLExecutes(long struct)
Unsafe version ofSQLExecutes()
.static void
nSQLExecutes(long struct, int value)
Unsafe version ofSQLExecutes
.static int
nSQLFetchCount(long struct)
Unsafe version ofSQLFetchCount()
.static void
nSQLFetchCount(long struct, int value)
Unsafe version ofSQLFetchCount
.static int
nSQLFetchTime(long struct)
Unsafe version ofSQLFetchTime()
.static void
nSQLFetchTime(long struct, int value)
Unsafe version ofSQLFetchTime
.static int
nSQLidu(long struct)
Unsafe version ofSQLidu()
.static void
nSQLidu(long struct, int value)
Unsafe version ofSQLidu
.static int
nSQLiduRows(long struct)
Unsafe version ofSQLiduRows()
.static void
nSQLiduRows(long struct, int value)
Unsafe version ofSQLiduRows
.static int
nSQLPrepares(long struct)
Unsafe version ofSQLPrepares()
.static void
nSQLPrepares(long struct, int value)
Unsafe version ofSQLPrepares
.static int
nSQLSelectRows(long struct)
Unsafe version ofSQLSelectRows()
.static void
nSQLSelectRows(long struct, int value)
Unsafe version ofSQLSelectRows
.static int
nSQLSelects(long struct)
Unsafe version ofSQLSelects()
.static void
nSQLSelects(long struct, int value)
Unsafe version ofSQLSelects
.static int
nSumConnectionsOpened(long struct)
Unsafe version ofSumConnectionsOpened()
.static void
nSumConnectionsOpened(long struct, int value)
Unsafe version ofSumConnectionsOpened
.static int
nSumConnectiontime(long struct)
Unsafe version ofSumConnectiontime()
.static void
nSumConnectiontime(long struct, int value)
Unsafe version ofSumConnectiontime
.static int
nSumOpenStmt(long struct)
Unsafe version ofSumOpenStmt()
.static void
nSumOpenStmt(long struct, int value)
Unsafe version ofSumOpenStmt
.static int
nTimerResolution(long struct)
Unsafe version ofTimerResolution()
.static void
nTimerResolution(long struct, int value)
Unsafe version ofTimerResolution
.static int
nTransactions(long struct)
Unsafe version ofTransactions()
.static void
nTransactions(long struct, int value)
Unsafe version ofTransactions
.double
PercentCursorUsed()
Returns the value of thePercentCursorUsed
field.SQLPERF
PercentCursorUsed(double value)
Sets the specified value to thePercentCursorUsed
field.int
ServerRndTrips()
Returns the value of theServerRndTrips
field.SQLPERF
ServerRndTrips(int value)
Sets the specified value to theServerRndTrips
field.SQLPERF
set(int TimerResolution, int SQLidu, int SQLiduRows, int SQLSelects, int SQLSelectRows, int Transactions, int SQLPrepares, int ExecDirects, int SQLExecutes, int CursorOpens, int CursorSize, int CursorUsed, double PercentCursorUsed, double AvgFetchTime, double AvgCursorSize, double AvgCursorUsed, int SQLFetchTime, int SQLFetchCount, int CurrentStmtCount, int MaxOpenStmt, int SumOpenStmt, int CurrentConnectionCount, int MaxConnectionsOpened, int SumConnectionsOpened, int SumConnectiontime, double AvgTimeOpened, int ServerRndTrips, int BuffersSent, int BuffersRec, int BytesSent, int BytesRec, int msExecutionTime, int msNetWorkServerTime)
Initializes this struct with the specified values.SQLPERF
set(SQLPERF src)
Copies the specified struct data to this struct.int
sizeof()
int
SQLExecutes()
Returns the value of theSQLExecutes
field.SQLPERF
SQLExecutes(int value)
Sets the specified value to theSQLExecutes
field.int
SQLFetchCount()
Returns the value of theSQLFetchCount
field.SQLPERF
SQLFetchCount(int value)
Sets the specified value to theSQLFetchCount
field.int
SQLFetchTime()
Returns the value of theSQLFetchTime
field.SQLPERF
SQLFetchTime(int value)
Sets the specified value to theSQLFetchTime
field.int
SQLidu()
Returns the value of theSQLidu
field.SQLPERF
SQLidu(int value)
Sets the specified value to theSQLidu
field.int
SQLiduRows()
Returns the value of theSQLiduRows
field.SQLPERF
SQLiduRows(int value)
Sets the specified value to theSQLiduRows
field.int
SQLPrepares()
Returns the value of theSQLPrepares
field.SQLPERF
SQLPrepares(int value)
Sets the specified value to theSQLPrepares
field.int
SQLSelectRows()
Returns the value of theSQLSelectRows
field.SQLPERF
SQLSelectRows(int value)
Sets the specified value to theSQLSelectRows
field.int
SQLSelects()
Returns the value of theSQLSelects
field.SQLPERF
SQLSelects(int value)
Sets the specified value to theSQLSelects
field.int
SumConnectionsOpened()
Returns the value of theSumConnectionsOpened
field.SQLPERF
SumConnectionsOpened(int value)
Sets the specified value to theSumConnectionsOpened
field.int
SumConnectiontime()
Returns the value of theSumConnectiontime
field.SQLPERF
SumConnectiontime(int value)
Sets the specified value to theSumConnectiontime
field.int
SumOpenStmt()
Returns the value of theSumOpenStmt
field.SQLPERF
SumOpenStmt(int value)
Sets the specified value to theSumOpenStmt
field.int
TimerResolution()
Returns the value of theTimerResolution
field.SQLPERF
TimerResolution(int value)
Sets the specified value to theTimerResolution
field.int
Transactions()
Returns the value of theTransactions
field.SQLPERF
Transactions(int value)
Sets the specified value to theTransactions
field.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
TIMERRESOLUTION, SQLIDU, SQLIDUROWS, SQLSELECTS, SQLSELECTROWS, TRANSACTIONS, SQLPREPARES, EXECDIRECTS, SQLEXECUTES, CURSOROPENS, CURSORSIZE, CURSORUSED, PERCENTCURSORUSED, AVGFETCHTIME, AVGCURSORSIZE, AVGCURSORUSED, SQLFETCHTIME, SQLFETCHCOUNT, CURRENTSTMTCOUNT, MAXOPENSTMT, SUMOPENSTMT, CURRENTCONNECTIONCOUNT, MAXCONNECTIONSOPENED, SUMCONNECTIONSOPENED, SUMCONNECTIONTIME, AVGTIMEOPENED, SERVERRNDTRIPS, BUFFERSSENT, BUFFERSREC, BYTESSENT, BYTESREC, MSEXECUTIONTIME, MSNETWORKSERVERTIME
The struct member offsets.
-
-
Constructor Detail
-
SQLPERF
public SQLPERF(java.nio.ByteBuffer container)
Creates aSQLPERF
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
TimerResolution
public int TimerResolution()
Returns the value of theTimerResolution
field.
-
SQLidu
public int SQLidu()
Returns the value of theSQLidu
field.
-
SQLiduRows
public int SQLiduRows()
Returns the value of theSQLiduRows
field.
-
SQLSelects
public int SQLSelects()
Returns the value of theSQLSelects
field.
-
SQLSelectRows
public int SQLSelectRows()
Returns the value of theSQLSelectRows
field.
-
Transactions
public int Transactions()
Returns the value of theTransactions
field.
-
SQLPrepares
public int SQLPrepares()
Returns the value of theSQLPrepares
field.
-
ExecDirects
public int ExecDirects()
Returns the value of theExecDirects
field.
-
SQLExecutes
public int SQLExecutes()
Returns the value of theSQLExecutes
field.
-
CursorOpens
public int CursorOpens()
Returns the value of theCursorOpens
field.
-
CursorSize
public int CursorSize()
Returns the value of theCursorSize
field.
-
CursorUsed
public int CursorUsed()
Returns the value of theCursorUsed
field.
-
PercentCursorUsed
public double PercentCursorUsed()
Returns the value of thePercentCursorUsed
field.
-
AvgFetchTime
public double AvgFetchTime()
Returns the value of theAvgFetchTime
field.
-
AvgCursorSize
public double AvgCursorSize()
Returns the value of theAvgCursorSize
field.
-
AvgCursorUsed
public double AvgCursorUsed()
Returns the value of theAvgCursorUsed
field.
-
SQLFetchTime
public int SQLFetchTime()
Returns the value of theSQLFetchTime
field.
-
SQLFetchCount
public int SQLFetchCount()
Returns the value of theSQLFetchCount
field.
-
CurrentStmtCount
public int CurrentStmtCount()
Returns the value of theCurrentStmtCount
field.
-
MaxOpenStmt
public int MaxOpenStmt()
Returns the value of theMaxOpenStmt
field.
-
SumOpenStmt
public int SumOpenStmt()
Returns the value of theSumOpenStmt
field.
-
CurrentConnectionCount
public int CurrentConnectionCount()
Returns the value of theCurrentConnectionCount
field.
-
MaxConnectionsOpened
public int MaxConnectionsOpened()
Returns the value of theMaxConnectionsOpened
field.
-
SumConnectionsOpened
public int SumConnectionsOpened()
Returns the value of theSumConnectionsOpened
field.
-
SumConnectiontime
public int SumConnectiontime()
Returns the value of theSumConnectiontime
field.
-
AvgTimeOpened
public double AvgTimeOpened()
Returns the value of theAvgTimeOpened
field.
-
ServerRndTrips
public int ServerRndTrips()
Returns the value of theServerRndTrips
field.
-
BuffersSent
public int BuffersSent()
Returns the value of theBuffersSent
field.
-
BuffersRec
public int BuffersRec()
Returns the value of theBuffersRec
field.
-
BytesSent
public int BytesSent()
Returns the value of theBytesSent
field.
-
BytesRec
public int BytesRec()
Returns the value of theBytesRec
field.
-
msExecutionTime
public int msExecutionTime()
Returns the value of themsExecutionTime
field.
-
msNetWorkServerTime
public int msNetWorkServerTime()
Returns the value of themsNetWorkServerTime
field.
-
TimerResolution
public SQLPERF TimerResolution(int value)
Sets the specified value to theTimerResolution
field.
-
SQLidu
public SQLPERF SQLidu(int value)
Sets the specified value to theSQLidu
field.
-
SQLiduRows
public SQLPERF SQLiduRows(int value)
Sets the specified value to theSQLiduRows
field.
-
SQLSelects
public SQLPERF SQLSelects(int value)
Sets the specified value to theSQLSelects
field.
-
SQLSelectRows
public SQLPERF SQLSelectRows(int value)
Sets the specified value to theSQLSelectRows
field.
-
Transactions
public SQLPERF Transactions(int value)
Sets the specified value to theTransactions
field.
-
SQLPrepares
public SQLPERF SQLPrepares(int value)
Sets the specified value to theSQLPrepares
field.
-
ExecDirects
public SQLPERF ExecDirects(int value)
Sets the specified value to theExecDirects
field.
-
SQLExecutes
public SQLPERF SQLExecutes(int value)
Sets the specified value to theSQLExecutes
field.
-
CursorOpens
public SQLPERF CursorOpens(int value)
Sets the specified value to theCursorOpens
field.
-
CursorSize
public SQLPERF CursorSize(int value)
Sets the specified value to theCursorSize
field.
-
CursorUsed
public SQLPERF CursorUsed(int value)
Sets the specified value to theCursorUsed
field.
-
PercentCursorUsed
public SQLPERF PercentCursorUsed(double value)
Sets the specified value to thePercentCursorUsed
field.
-
AvgFetchTime
public SQLPERF AvgFetchTime(double value)
Sets the specified value to theAvgFetchTime
field.
-
AvgCursorSize
public SQLPERF AvgCursorSize(double value)
Sets the specified value to theAvgCursorSize
field.
-
AvgCursorUsed
public SQLPERF AvgCursorUsed(double value)
Sets the specified value to theAvgCursorUsed
field.
-
SQLFetchTime
public SQLPERF SQLFetchTime(int value)
Sets the specified value to theSQLFetchTime
field.
-
SQLFetchCount
public SQLPERF SQLFetchCount(int value)
Sets the specified value to theSQLFetchCount
field.
-
CurrentStmtCount
public SQLPERF CurrentStmtCount(int value)
Sets the specified value to theCurrentStmtCount
field.
-
MaxOpenStmt
public SQLPERF MaxOpenStmt(int value)
Sets the specified value to theMaxOpenStmt
field.
-
SumOpenStmt
public SQLPERF SumOpenStmt(int value)
Sets the specified value to theSumOpenStmt
field.
-
CurrentConnectionCount
public SQLPERF CurrentConnectionCount(int value)
Sets the specified value to theCurrentConnectionCount
field.
-
MaxConnectionsOpened
public SQLPERF MaxConnectionsOpened(int value)
Sets the specified value to theMaxConnectionsOpened
field.
-
SumConnectionsOpened
public SQLPERF SumConnectionsOpened(int value)
Sets the specified value to theSumConnectionsOpened
field.
-
SumConnectiontime
public SQLPERF SumConnectiontime(int value)
Sets the specified value to theSumConnectiontime
field.
-
AvgTimeOpened
public SQLPERF AvgTimeOpened(double value)
Sets the specified value to theAvgTimeOpened
field.
-
ServerRndTrips
public SQLPERF ServerRndTrips(int value)
Sets the specified value to theServerRndTrips
field.
-
BuffersSent
public SQLPERF BuffersSent(int value)
Sets the specified value to theBuffersSent
field.
-
BuffersRec
public SQLPERF BuffersRec(int value)
Sets the specified value to theBuffersRec
field.
-
BytesSent
public SQLPERF BytesSent(int value)
Sets the specified value to theBytesSent
field.
-
BytesRec
public SQLPERF BytesRec(int value)
Sets the specified value to theBytesRec
field.
-
msExecutionTime
public SQLPERF msExecutionTime(int value)
Sets the specified value to themsExecutionTime
field.
-
msNetWorkServerTime
public SQLPERF msNetWorkServerTime(int value)
Sets the specified value to themsNetWorkServerTime
field.
-
set
public SQLPERF set(int TimerResolution, int SQLidu, int SQLiduRows, int SQLSelects, int SQLSelectRows, int Transactions, int SQLPrepares, int ExecDirects, int SQLExecutes, int CursorOpens, int CursorSize, int CursorUsed, double PercentCursorUsed, double AvgFetchTime, double AvgCursorSize, double AvgCursorUsed, int SQLFetchTime, int SQLFetchCount, int CurrentStmtCount, int MaxOpenStmt, int SumOpenStmt, int CurrentConnectionCount, int MaxConnectionsOpened, int SumConnectionsOpened, int SumConnectiontime, double AvgTimeOpened, int ServerRndTrips, int BuffersSent, int BuffersRec, int BytesSent, int BytesRec, int msExecutionTime, int msNetWorkServerTime)
Initializes this struct with the specified values.
-
set
public SQLPERF set(SQLPERF src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static SQLPERF malloc()
Returns a newSQLPERF
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static SQLPERF calloc()
Returns a newSQLPERF
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static SQLPERF create()
Returns a newSQLPERF
instance allocated withBufferUtils
.
-
create
public static SQLPERF create(long address)
Returns a newSQLPERF
instance for the specified memory address.
-
createSafe
@Nullable public static SQLPERF createSafe(long address)
-
malloc
public static SQLPERF.Buffer malloc(int capacity)
Returns a newSQLPERF.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static SQLPERF.Buffer calloc(int capacity)
Returns a newSQLPERF.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static SQLPERF.Buffer create(int capacity)
Returns a newSQLPERF.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static SQLPERF.Buffer create(long address, int capacity)
Create aSQLPERF.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static SQLPERF.Buffer createSafe(long address, int capacity)
-
mallocStack
public static SQLPERF mallocStack()
Returns a newSQLPERF
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static SQLPERF callocStack()
Returns a newSQLPERF
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static SQLPERF mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newSQLPERF
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static SQLPERF callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newSQLPERF
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static SQLPERF.Buffer mallocStack(int capacity)
Returns a newSQLPERF.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static SQLPERF.Buffer callocStack(int capacity)
Returns a newSQLPERF.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static SQLPERF.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSQLPERF.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static SQLPERF.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSQLPERF.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nTimerResolution
public static int nTimerResolution(long struct)
Unsafe version ofTimerResolution()
.
-
nSQLidu
public static int nSQLidu(long struct)
Unsafe version ofSQLidu()
.
-
nSQLiduRows
public static int nSQLiduRows(long struct)
Unsafe version ofSQLiduRows()
.
-
nSQLSelects
public static int nSQLSelects(long struct)
Unsafe version ofSQLSelects()
.
-
nSQLSelectRows
public static int nSQLSelectRows(long struct)
Unsafe version ofSQLSelectRows()
.
-
nTransactions
public static int nTransactions(long struct)
Unsafe version ofTransactions()
.
-
nSQLPrepares
public static int nSQLPrepares(long struct)
Unsafe version ofSQLPrepares()
.
-
nExecDirects
public static int nExecDirects(long struct)
Unsafe version ofExecDirects()
.
-
nSQLExecutes
public static int nSQLExecutes(long struct)
Unsafe version ofSQLExecutes()
.
-
nCursorOpens
public static int nCursorOpens(long struct)
Unsafe version ofCursorOpens()
.
-
nCursorSize
public static int nCursorSize(long struct)
Unsafe version ofCursorSize()
.
-
nCursorUsed
public static int nCursorUsed(long struct)
Unsafe version ofCursorUsed()
.
-
nPercentCursorUsed
public static double nPercentCursorUsed(long struct)
Unsafe version ofPercentCursorUsed()
.
-
nAvgFetchTime
public static double nAvgFetchTime(long struct)
Unsafe version ofAvgFetchTime()
.
-
nAvgCursorSize
public static double nAvgCursorSize(long struct)
Unsafe version ofAvgCursorSize()
.
-
nAvgCursorUsed
public static double nAvgCursorUsed(long struct)
Unsafe version ofAvgCursorUsed()
.
-
nSQLFetchTime
public static int nSQLFetchTime(long struct)
Unsafe version ofSQLFetchTime()
.
-
nSQLFetchCount
public static int nSQLFetchCount(long struct)
Unsafe version ofSQLFetchCount()
.
-
nCurrentStmtCount
public static int nCurrentStmtCount(long struct)
Unsafe version ofCurrentStmtCount()
.
-
nMaxOpenStmt
public static int nMaxOpenStmt(long struct)
Unsafe version ofMaxOpenStmt()
.
-
nSumOpenStmt
public static int nSumOpenStmt(long struct)
Unsafe version ofSumOpenStmt()
.
-
nCurrentConnectionCount
public static int nCurrentConnectionCount(long struct)
Unsafe version ofCurrentConnectionCount()
.
-
nMaxConnectionsOpened
public static int nMaxConnectionsOpened(long struct)
Unsafe version ofMaxConnectionsOpened()
.
-
nSumConnectionsOpened
public static int nSumConnectionsOpened(long struct)
Unsafe version ofSumConnectionsOpened()
.
-
nSumConnectiontime
public static int nSumConnectiontime(long struct)
Unsafe version ofSumConnectiontime()
.
-
nAvgTimeOpened
public static double nAvgTimeOpened(long struct)
Unsafe version ofAvgTimeOpened()
.
-
nServerRndTrips
public static int nServerRndTrips(long struct)
Unsafe version ofServerRndTrips()
.
-
nBuffersSent
public static int nBuffersSent(long struct)
Unsafe version ofBuffersSent()
.
-
nBuffersRec
public static int nBuffersRec(long struct)
Unsafe version ofBuffersRec()
.
-
nBytesSent
public static int nBytesSent(long struct)
Unsafe version ofBytesSent()
.
-
nBytesRec
public static int nBytesRec(long struct)
Unsafe version ofBytesRec()
.
-
nmsExecutionTime
public static int nmsExecutionTime(long struct)
Unsafe version ofmsExecutionTime()
.
-
nmsNetWorkServerTime
public static int nmsNetWorkServerTime(long struct)
Unsafe version ofmsNetWorkServerTime()
.
-
nTimerResolution
public static void nTimerResolution(long struct, int value)
Unsafe version ofTimerResolution
.
-
nSQLidu
public static void nSQLidu(long struct, int value)
Unsafe version ofSQLidu
.
-
nSQLiduRows
public static void nSQLiduRows(long struct, int value)
Unsafe version ofSQLiduRows
.
-
nSQLSelects
public static void nSQLSelects(long struct, int value)
Unsafe version ofSQLSelects
.
-
nSQLSelectRows
public static void nSQLSelectRows(long struct, int value)
Unsafe version ofSQLSelectRows
.
-
nTransactions
public static void nTransactions(long struct, int value)
Unsafe version ofTransactions
.
-
nSQLPrepares
public static void nSQLPrepares(long struct, int value)
Unsafe version ofSQLPrepares
.
-
nExecDirects
public static void nExecDirects(long struct, int value)
Unsafe version ofExecDirects
.
-
nSQLExecutes
public static void nSQLExecutes(long struct, int value)
Unsafe version ofSQLExecutes
.
-
nCursorOpens
public static void nCursorOpens(long struct, int value)
Unsafe version ofCursorOpens
.
-
nCursorSize
public static void nCursorSize(long struct, int value)
Unsafe version ofCursorSize
.
-
nCursorUsed
public static void nCursorUsed(long struct, int value)
Unsafe version ofCursorUsed
.
-
nPercentCursorUsed
public static void nPercentCursorUsed(long struct, double value)
Unsafe version ofPercentCursorUsed
.
-
nAvgFetchTime
public static void nAvgFetchTime(long struct, double value)
Unsafe version ofAvgFetchTime
.
-
nAvgCursorSize
public static void nAvgCursorSize(long struct, double value)
Unsafe version ofAvgCursorSize
.
-
nAvgCursorUsed
public static void nAvgCursorUsed(long struct, double value)
Unsafe version ofAvgCursorUsed
.
-
nSQLFetchTime
public static void nSQLFetchTime(long struct, int value)
Unsafe version ofSQLFetchTime
.
-
nSQLFetchCount
public static void nSQLFetchCount(long struct, int value)
Unsafe version ofSQLFetchCount
.
-
nCurrentStmtCount
public static void nCurrentStmtCount(long struct, int value)
Unsafe version ofCurrentStmtCount
.
-
nMaxOpenStmt
public static void nMaxOpenStmt(long struct, int value)
Unsafe version ofMaxOpenStmt
.
-
nSumOpenStmt
public static void nSumOpenStmt(long struct, int value)
Unsafe version ofSumOpenStmt
.
-
nCurrentConnectionCount
public static void nCurrentConnectionCount(long struct, int value)
Unsafe version ofCurrentConnectionCount
.
-
nMaxConnectionsOpened
public static void nMaxConnectionsOpened(long struct, int value)
Unsafe version ofMaxConnectionsOpened
.
-
nSumConnectionsOpened
public static void nSumConnectionsOpened(long struct, int value)
Unsafe version ofSumConnectionsOpened
.
-
nSumConnectiontime
public static void nSumConnectiontime(long struct, int value)
Unsafe version ofSumConnectiontime
.
-
nAvgTimeOpened
public static void nAvgTimeOpened(long struct, double value)
Unsafe version ofAvgTimeOpened
.
-
nServerRndTrips
public static void nServerRndTrips(long struct, int value)
Unsafe version ofServerRndTrips
.
-
nBuffersSent
public static void nBuffersSent(long struct, int value)
Unsafe version ofBuffersSent
.
-
nBuffersRec
public static void nBuffersRec(long struct, int value)
Unsafe version ofBuffersRec
.
-
nBytesSent
public static void nBytesSent(long struct, int value)
Unsafe version ofBytesSent
.
-
nBytesRec
public static void nBytesRec(long struct, int value)
Unsafe version ofBytesRec
.
-
nmsExecutionTime
public static void nmsExecutionTime(long struct, int value)
Unsafe version ofmsExecutionTime
.
-
nmsNetWorkServerTime
public static void nmsNetWorkServerTime(long struct, int value)
Unsafe version ofmsNetWorkServerTime
.
-
-