Top Description Inners Fields Constructors Methods
org.lwjgl.odbc

public Class SQLPERF

extends Struct<SQLPERF>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

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 and Inner Type Summary

Modifier and TypeClass and Description
public static class
SQLPERF.Buffer

An array of SQLPERF structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
AVGCURSORSIZE

The struct member offsets.

public static final int
AVGCURSORUSED

The struct member offsets.

public static final int
AVGFETCHTIME

The struct member offsets.

public static final int
AVGTIMEOPENED

The struct member offsets.

public static final int
BUFFERSREC

The struct member offsets.

public static final int
BUFFERSSENT

The struct member offsets.

public static final int
BYTESREC

The struct member offsets.

public static final int
BYTESSENT

The struct member offsets.

public static final int
CURRENTCONNECTIONCOUNT

The struct member offsets.

public static final int
CURRENTSTMTCOUNT

The struct member offsets.

public static final int
CURSOROPENS

The struct member offsets.

public static final int
CURSORSIZE

The struct member offsets.

public static final int
CURSORUSED

The struct member offsets.

public static final int
EXECDIRECTS

The struct member offsets.

public static final int
MAXCONNECTIONSOPENED

The struct member offsets.

public static final int
MAXOPENSTMT

The struct member offsets.

public static final int
MSEXECUTIONTIME

The struct member offsets.

public static final int
MSNETWORKSERVERTIME

The struct member offsets.

public static final int
PERCENTCURSORUSED

The struct member offsets.

public static final int
SERVERRNDTRIPS

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SQLEXECUTES

The struct member offsets.

public static final int
SQLFETCHCOUNT

The struct member offsets.

public static final int
SQLFETCHTIME

The struct member offsets.

public static final int
SQLIDU

The struct member offsets.

public static final int
SQLIDUROWS

The struct member offsets.

public static final int
SQLPREPARES

The struct member offsets.

public static final int
SQLSELECTROWS

The struct member offsets.

public static final int
SQLSELECTS

The struct member offsets.

public static final int
SUMCONNECTIONSOPENED

The struct member offsets.

public static final int
SUMCONNECTIONTIME

The struct member offsets.

public static final int
SUMOPENSTMT

The struct member offsets.

public static final int
TIMERRESOLUTION

The struct member offsets.

public static final int
TRANSACTIONS

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
SQLPERF(long address, ByteBuffer container)

public
SQLPERF(ByteBuffer container)

Creates a SQLPERF instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public double

Returns:

the value of the AvgCursorSize field.
AvgCursorSize
()

public SQLPERF
AvgCursorSize(double value)

Sets the specified value to the AvgCursorSize field.

public double

Returns:

the value of the AvgCursorUsed field.
AvgCursorUsed
()

public SQLPERF
AvgCursorUsed(double value)

Sets the specified value to the AvgCursorUsed field.

public double

Returns:

the value of the AvgFetchTime field.
AvgFetchTime
()

public SQLPERF
AvgFetchTime(double value)

Sets the specified value to the AvgFetchTime field.

public double

Returns:

the value of the AvgTimeOpened field.
AvgTimeOpened
()

public SQLPERF
AvgTimeOpened(double value)

Sets the specified value to the AvgTimeOpened field.

public int

Returns:

the value of the BuffersRec field.
BuffersRec
()

public SQLPERF
BuffersRec(int value)

Sets the specified value to the BuffersRec field.

public int

Returns:

the value of the BuffersSent field.
BuffersSent
()

public SQLPERF
BuffersSent(int value)

Sets the specified value to the BuffersSent field.

public int

Returns:

the value of the BytesRec field.
BytesRec
()

public SQLPERF
BytesRec(int value)

Sets the specified value to the BytesRec field.

public int

Returns:

the value of the BytesSent field.
BytesSent
()

public SQLPERF
BytesSent(int value)

Sets the specified value to the BytesSent field.

public static SQLPERF
calloc()

Returns a new SQLPERF instance allocated with memCalloc.

public static SQLPERF.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new SQLPERF.Buffer instance allocated with memCalloc.

public static SQLPERF
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new SQLPERF instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static SQLPERF.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new SQLPERF.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static SQLPERF
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static SQLPERF
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static SQLPERF.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static SQLPERF.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected SQLPERF
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static SQLPERF
create()

Returns a new SQLPERF instance allocated with BufferUtils.

public static SQLPERF
create(long address)

Returns a new SQLPERF instance for the specified memory address.

public static SQLPERF.Buffer
create(int
the buffer capacity
capacity
)

Returns a new SQLPERF.Buffer instance allocated with BufferUtils.

public static SQLPERF.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a SQLPERF.Buffer instance at the specified memory.

public static SQLPERF
createSafe(long address)

Like create, but returns null if address is NULL.

public static SQLPERF.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int

Returns:

the value of the CurrentConnectionCount field.
CurrentConnectionCount
()

public SQLPERF
CurrentConnectionCount(int value)

Sets the specified value to the CurrentConnectionCount field.

public int

Returns:

the value of the CurrentStmtCount field.
CurrentStmtCount
()

public SQLPERF
CurrentStmtCount(int value)

Sets the specified value to the CurrentStmtCount field.

public int

Returns:

the value of the CursorOpens field.
CursorOpens
()

public SQLPERF
CursorOpens(int value)

Sets the specified value to the CursorOpens field.

public int

Returns:

the value of the CursorSize field.
CursorSize
()

public SQLPERF
CursorSize(int value)

Sets the specified value to the CursorSize field.

public int

Returns:

the value of the CursorUsed field.
CursorUsed
()

public SQLPERF
CursorUsed(int value)

Sets the specified value to the CursorUsed field.

public int

Returns:

the value of the ExecDirects field.
ExecDirects
()

public SQLPERF
ExecDirects(int value)

Sets the specified value to the ExecDirects field.

public static SQLPERF
malloc()

Returns a new SQLPERF instance allocated with memAlloc.

public static SQLPERF.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new SQLPERF.Buffer instance allocated with memAlloc.

public static SQLPERF
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new SQLPERF instance allocated on the specified MemoryStack.

public static SQLPERF.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new SQLPERF.Buffer instance allocated on the specified MemoryStack.

public static SQLPERF
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static SQLPERF
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static SQLPERF.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static SQLPERF.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public int

Returns:

the value of the MaxConnectionsOpened field.
MaxConnectionsOpened
()

public SQLPERF
MaxConnectionsOpened(int value)

Sets the specified value to the MaxConnectionsOpened field.

public int

Returns:

the value of the MaxOpenStmt field.
MaxOpenStmt
()

public SQLPERF
MaxOpenStmt(int value)

Sets the specified value to the MaxOpenStmt field.

public int

Returns:

the value of the msExecutionTime field.
msExecutionTime
()

public SQLPERF
msExecutionTime(int value)

Sets the specified value to the msExecutionTime field.

public int

Returns:

the value of the msNetWorkServerTime field.
msNetWorkServerTime
()

public SQLPERF
msNetWorkServerTime(int value)

Sets the specified value to the msNetWorkServerTime field.

public static int
nBuffersRec(long struct)

Unsafe version of BuffersRec.

public static void
nBuffersRec(long struct, int value)

Unsafe version of BuffersRec.

public static int
nBuffersSent(long struct)

Unsafe version of BuffersSent.

public static void
nBuffersSent(long struct, int value)

Unsafe version of BuffersSent.

public static int
nBytesRec(long struct)

Unsafe version of BytesRec.

public static void
nBytesRec(long struct, int value)

Unsafe version of BytesRec.

public static int
nBytesSent(long struct)

Unsafe version of BytesSent.

public static void
nBytesSent(long struct, int value)

Unsafe version of BytesSent.

public static int
nCurrentConnectionCount(long struct)

Unsafe version of CurrentConnectionCount.

public static void
nCurrentConnectionCount(long struct, int value)

Unsafe version of CurrentConnectionCount.

public static int
nCurrentStmtCount(long struct)

Unsafe version of CurrentStmtCount.

public static void
nCurrentStmtCount(long struct, int value)

Unsafe version of CurrentStmtCount.

public static int
nCursorOpens(long struct)

Unsafe version of CursorOpens.

public static void
nCursorOpens(long struct, int value)

Unsafe version of CursorOpens.

public static int
nCursorSize(long struct)

Unsafe version of CursorSize.

public static void
nCursorSize(long struct, int value)

Unsafe version of CursorSize.

public static int
nCursorUsed(long struct)

Unsafe version of CursorUsed.

public static void
nCursorUsed(long struct, int value)

Unsafe version of CursorUsed.

public static int
nExecDirects(long struct)

Unsafe version of ExecDirects.

public static void
nExecDirects(long struct, int value)

Unsafe version of ExecDirects.

public static int
nMaxConnectionsOpened(long struct)

Unsafe version of MaxConnectionsOpened.

public static void
nMaxConnectionsOpened(long struct, int value)

Unsafe version of MaxConnectionsOpened.

public static int
nMaxOpenStmt(long struct)

Unsafe version of MaxOpenStmt.

public static void
nMaxOpenStmt(long struct, int value)

Unsafe version of MaxOpenStmt.

public static int
nmsExecutionTime(long struct)

Unsafe version of msExecutionTime.

public static void
nmsExecutionTime(long struct, int value)

Unsafe version of msExecutionTime.

public static int
nmsNetWorkServerTime(long struct)

Unsafe version of msNetWorkServerTime.

public static void
nmsNetWorkServerTime(long struct, int value)

Unsafe version of msNetWorkServerTime.

public static double
nPercentCursorUsed(long struct)

Unsafe version of PercentCursorUsed.

public static void
nPercentCursorUsed(long struct, double value)

Unsafe version of PercentCursorUsed.

public static int
nServerRndTrips(long struct)

Unsafe version of ServerRndTrips.

public static void
nServerRndTrips(long struct, int value)

Unsafe version of ServerRndTrips.

public static int
nSQLExecutes(long struct)

Unsafe version of SQLExecutes.

public static void
nSQLExecutes(long struct, int value)

Unsafe version of SQLExecutes.

public static int
nSQLFetchCount(long struct)

Unsafe version of SQLFetchCount.

public static void
nSQLFetchCount(long struct, int value)

Unsafe version of SQLFetchCount.

public static int
nSQLFetchTime(long struct)

Unsafe version of SQLFetchTime.

public static void
nSQLFetchTime(long struct, int value)

Unsafe version of SQLFetchTime.

public static int
nSQLidu(long struct)

Unsafe version of SQLidu.

public static void
nSQLidu(long struct, int value)

Unsafe version of SQLidu.

public static int
nSQLiduRows(long struct)

Unsafe version of SQLiduRows.

public static void
nSQLiduRows(long struct, int value)

Unsafe version of SQLiduRows.

public static int
nSQLPrepares(long struct)

Unsafe version of SQLPrepares.

public static void
nSQLPrepares(long struct, int value)

Unsafe version of SQLPrepares.

public static int
nSQLSelectRows(long struct)

Unsafe version of SQLSelectRows.

public static void
nSQLSelectRows(long struct, int value)

Unsafe version of SQLSelectRows.

public static int
nSQLSelects(long struct)

Unsafe version of SQLSelects.

public static void
nSQLSelects(long struct, int value)

Unsafe version of SQLSelects.

public static int
nSumConnectionsOpened(long struct)

Unsafe version of SumConnectionsOpened.

public static void
nSumConnectionsOpened(long struct, int value)

Unsafe version of SumConnectionsOpened.

public static int
nSumConnectiontime(long struct)

Unsafe version of SumConnectiontime.

public static void
nSumConnectiontime(long struct, int value)

Unsafe version of SumConnectiontime.

public static int
nSumOpenStmt(long struct)

Unsafe version of SumOpenStmt.

public static void
nSumOpenStmt(long struct, int value)

Unsafe version of SumOpenStmt.

public static int
nTimerResolution(long struct)

Unsafe version of TimerResolution.

public static void
nTimerResolution(long struct, int value)

Unsafe version of TimerResolution.

public static int
nTransactions(long struct)

Unsafe version of Transactions.

public static void
nTransactions(long struct, int value)

Unsafe version of Transactions.

public double

Returns:

the value of the PercentCursorUsed field.
PercentCursorUsed
()

public SQLPERF
PercentCursorUsed(double value)

Sets the specified value to the PercentCursorUsed field.

public int

Returns:

the value of the ServerRndTrips field.
ServerRndTrips
()

public SQLPERF
ServerRndTrips(int value)

Sets the specified value to the ServerRndTrips field.

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.

public SQLPERF

Returns:

this struct
set
(SQLPERF
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int

Returns:

the value of the SQLExecutes field.
SQLExecutes
()

public SQLPERF
SQLExecutes(int value)

Sets the specified value to the SQLExecutes field.

public int

Returns:

the value of the SQLFetchCount field.
SQLFetchCount
()

public SQLPERF
SQLFetchCount(int value)

Sets the specified value to the SQLFetchCount field.

public int

Returns:

the value of the SQLFetchTime field.
SQLFetchTime
()

public SQLPERF
SQLFetchTime(int value)

Sets the specified value to the SQLFetchTime field.

public int

Returns:

the value of the SQLidu field.
SQLidu
()

public SQLPERF
SQLidu(int value)

Sets the specified value to the SQLidu field.

public int

Returns:

the value of the SQLiduRows field.
SQLiduRows
()

public SQLPERF
SQLiduRows(int value)

Sets the specified value to the SQLiduRows field.

public int

Returns:

the value of the SQLPrepares field.
SQLPrepares
()

public SQLPERF
SQLPrepares(int value)

Sets the specified value to the SQLPrepares field.

public int

Returns:

the value of the SQLSelectRows field.
SQLSelectRows
()

public SQLPERF
SQLSelectRows(int value)

Sets the specified value to the SQLSelectRows field.

public int

Returns:

the value of the SQLSelects field.
SQLSelects
()

public SQLPERF
SQLSelects(int value)

Sets the specified value to the SQLSelects field.

public int

Returns:

the value of the SumConnectionsOpened field.
SumConnectionsOpened
()

public SQLPERF
SumConnectionsOpened(int value)

Sets the specified value to the SumConnectionsOpened field.

public int

Returns:

the value of the SumConnectiontime field.
SumConnectiontime
()

public SQLPERF
SumConnectiontime(int value)

Sets the specified value to the SumConnectiontime field.

public int

Returns:

the value of the SumOpenStmt field.
SumOpenStmt
()

public SQLPERF
SumOpenStmt(int value)

Sets the specified value to the SumOpenStmt field.

public int

Returns:

the value of the TimerResolution field.
TimerResolution
()

public SQLPERF
TimerResolution(int value)

Sets the specified value to the TimerResolution field.

public int

Returns:

the value of the Transactions field.
Transactions
()

public SQLPERF
Transactions(int value)

Sets the specified value to the Transactions field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate