Class SQLPERF

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SQLPERF extends Struct<SQLPERF> implements NativeResource

 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;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TIMERRESOLUTION

      public static final int TIMERRESOLUTION
      The struct member offsets.
    • SQLIDU

      public static final int SQLIDU
      The struct member offsets.
    • SQLIDUROWS

      public static final int SQLIDUROWS
      The struct member offsets.
    • SQLSELECTS

      public static final int SQLSELECTS
      The struct member offsets.
    • SQLSELECTROWS

      public static final int SQLSELECTROWS
      The struct member offsets.
    • TRANSACTIONS

      public static final int TRANSACTIONS
      The struct member offsets.
    • SQLPREPARES

      public static final int SQLPREPARES
      The struct member offsets.
    • EXECDIRECTS

      public static final int EXECDIRECTS
      The struct member offsets.
    • SQLEXECUTES

      public static final int SQLEXECUTES
      The struct member offsets.
    • CURSOROPENS

      public static final int CURSOROPENS
      The struct member offsets.
    • CURSORSIZE

      public static final int CURSORSIZE
      The struct member offsets.
    • CURSORUSED

      public static final int CURSORUSED
      The struct member offsets.
    • PERCENTCURSORUSED

      public static final int PERCENTCURSORUSED
      The struct member offsets.
    • AVGFETCHTIME

      public static final int AVGFETCHTIME
      The struct member offsets.
    • AVGCURSORSIZE

      public static final int AVGCURSORSIZE
      The struct member offsets.
    • AVGCURSORUSED

      public static final int AVGCURSORUSED
      The struct member offsets.
    • SQLFETCHTIME

      public static final int SQLFETCHTIME
      The struct member offsets.
    • SQLFETCHCOUNT

      public static final int SQLFETCHCOUNT
      The struct member offsets.
    • CURRENTSTMTCOUNT

      public static final int CURRENTSTMTCOUNT
      The struct member offsets.
    • MAXOPENSTMT

      public static final int MAXOPENSTMT
      The struct member offsets.
    • SUMOPENSTMT

      public static final int SUMOPENSTMT
      The struct member offsets.
    • CURRENTCONNECTIONCOUNT

      public static final int CURRENTCONNECTIONCOUNT
      The struct member offsets.
    • MAXCONNECTIONSOPENED

      public static final int MAXCONNECTIONSOPENED
      The struct member offsets.
    • SUMCONNECTIONSOPENED

      public static final int SUMCONNECTIONSOPENED
      The struct member offsets.
    • SUMCONNECTIONTIME

      public static final int SUMCONNECTIONTIME
      The struct member offsets.
    • AVGTIMEOPENED

      public static final int AVGTIMEOPENED
      The struct member offsets.
    • SERVERRNDTRIPS

      public static final int SERVERRNDTRIPS
      The struct member offsets.
    • BUFFERSSENT

      public static final int BUFFERSSENT
      The struct member offsets.
    • BUFFERSREC

      public static final int BUFFERSREC
      The struct member offsets.
    • BYTESSENT

      public static final int BYTESSENT
      The struct member offsets.
    • BYTESREC

      public static final int BYTESREC
      The struct member offsets.
    • MSEXECUTIONTIME

      public static final int MSEXECUTIONTIME
      The struct member offsets.
    • MSNETWORKSERVERTIME

      public static final int MSNETWORKSERVERTIME
      The struct member offsets.
  • Constructor Details

    • SQLPERF

      public SQLPERF(ByteBuffer container)
      Creates a SQLPERF instance at the current position of the specified ByteBuffer 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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<SQLPERF>
    • TimerResolution

      public int TimerResolution()
      Returns:
      the value of the TimerResolution field.
    • SQLidu

      public int SQLidu()
      Returns:
      the value of the SQLidu field.
    • SQLiduRows

      public int SQLiduRows()
      Returns:
      the value of the SQLiduRows field.
    • SQLSelects

      public int SQLSelects()
      Returns:
      the value of the SQLSelects field.
    • SQLSelectRows

      public int SQLSelectRows()
      Returns:
      the value of the SQLSelectRows field.
    • Transactions

      public int Transactions()
      Returns:
      the value of the Transactions field.
    • SQLPrepares

      public int SQLPrepares()
      Returns:
      the value of the SQLPrepares field.
    • ExecDirects

      public int ExecDirects()
      Returns:
      the value of the ExecDirects field.
    • SQLExecutes

      public int SQLExecutes()
      Returns:
      the value of the SQLExecutes field.
    • CursorOpens

      public int CursorOpens()
      Returns:
      the value of the CursorOpens field.
    • CursorSize

      public int CursorSize()
      Returns:
      the value of the CursorSize field.
    • CursorUsed

      public int CursorUsed()
      Returns:
      the value of the CursorUsed field.
    • PercentCursorUsed

      public double PercentCursorUsed()
      Returns:
      the value of the PercentCursorUsed field.
    • AvgFetchTime

      public double AvgFetchTime()
      Returns:
      the value of the AvgFetchTime field.
    • AvgCursorSize

      public double AvgCursorSize()
      Returns:
      the value of the AvgCursorSize field.
    • AvgCursorUsed

      public double AvgCursorUsed()
      Returns:
      the value of the AvgCursorUsed field.
    • SQLFetchTime

      public int SQLFetchTime()
      Returns:
      the value of the SQLFetchTime field.
    • SQLFetchCount

      public int SQLFetchCount()
      Returns:
      the value of the SQLFetchCount field.
    • CurrentStmtCount

      public int CurrentStmtCount()
      Returns:
      the value of the CurrentStmtCount field.
    • MaxOpenStmt

      public int MaxOpenStmt()
      Returns:
      the value of the MaxOpenStmt field.
    • SumOpenStmt

      public int SumOpenStmt()
      Returns:
      the value of the SumOpenStmt field.
    • CurrentConnectionCount

      public int CurrentConnectionCount()
      Returns:
      the value of the CurrentConnectionCount field.
    • MaxConnectionsOpened

      public int MaxConnectionsOpened()
      Returns:
      the value of the MaxConnectionsOpened field.
    • SumConnectionsOpened

      public int SumConnectionsOpened()
      Returns:
      the value of the SumConnectionsOpened field.
    • SumConnectiontime

      public int SumConnectiontime()
      Returns:
      the value of the SumConnectiontime field.
    • AvgTimeOpened

      public double AvgTimeOpened()
      Returns:
      the value of the AvgTimeOpened field.
    • ServerRndTrips

      public int ServerRndTrips()
      Returns:
      the value of the ServerRndTrips field.
    • BuffersSent

      public int BuffersSent()
      Returns:
      the value of the BuffersSent field.
    • BuffersRec

      public int BuffersRec()
      Returns:
      the value of the BuffersRec field.
    • BytesSent

      public int BytesSent()
      Returns:
      the value of the BytesSent field.
    • BytesRec

      public int BytesRec()
      Returns:
      the value of the BytesRec field.
    • msExecutionTime

      public int msExecutionTime()
      Returns:
      the value of the msExecutionTime field.
    • msNetWorkServerTime

      public int msNetWorkServerTime()
      Returns:
      the value of the msNetWorkServerTime field.
    • TimerResolution

      public SQLPERF TimerResolution(int value)
      Sets the specified value to the TimerResolution field.
    • SQLidu

      public SQLPERF SQLidu(int value)
      Sets the specified value to the SQLidu field.
    • SQLiduRows

      public SQLPERF SQLiduRows(int value)
      Sets the specified value to the SQLiduRows field.
    • SQLSelects

      public SQLPERF SQLSelects(int value)
      Sets the specified value to the SQLSelects field.
    • SQLSelectRows

      public SQLPERF SQLSelectRows(int value)
      Sets the specified value to the SQLSelectRows field.
    • Transactions

      public SQLPERF Transactions(int value)
      Sets the specified value to the Transactions field.
    • SQLPrepares

      public SQLPERF SQLPrepares(int value)
      Sets the specified value to the SQLPrepares field.
    • ExecDirects

      public SQLPERF ExecDirects(int value)
      Sets the specified value to the ExecDirects field.
    • SQLExecutes

      public SQLPERF SQLExecutes(int value)
      Sets the specified value to the SQLExecutes field.
    • CursorOpens

      public SQLPERF CursorOpens(int value)
      Sets the specified value to the CursorOpens field.
    • CursorSize

      public SQLPERF CursorSize(int value)
      Sets the specified value to the CursorSize field.
    • CursorUsed

      public SQLPERF CursorUsed(int value)
      Sets the specified value to the CursorUsed field.
    • PercentCursorUsed

      public SQLPERF PercentCursorUsed(double value)
      Sets the specified value to the PercentCursorUsed field.
    • AvgFetchTime

      public SQLPERF AvgFetchTime(double value)
      Sets the specified value to the AvgFetchTime field.
    • AvgCursorSize

      public SQLPERF AvgCursorSize(double value)
      Sets the specified value to the AvgCursorSize field.
    • AvgCursorUsed

      public SQLPERF AvgCursorUsed(double value)
      Sets the specified value to the AvgCursorUsed field.
    • SQLFetchTime

      public SQLPERF SQLFetchTime(int value)
      Sets the specified value to the SQLFetchTime field.
    • SQLFetchCount

      public SQLPERF SQLFetchCount(int value)
      Sets the specified value to the SQLFetchCount field.
    • CurrentStmtCount

      public SQLPERF CurrentStmtCount(int value)
      Sets the specified value to the CurrentStmtCount field.
    • MaxOpenStmt

      public SQLPERF MaxOpenStmt(int value)
      Sets the specified value to the MaxOpenStmt field.
    • SumOpenStmt

      public SQLPERF SumOpenStmt(int value)
      Sets the specified value to the SumOpenStmt field.
    • CurrentConnectionCount

      public SQLPERF CurrentConnectionCount(int value)
      Sets the specified value to the CurrentConnectionCount field.
    • MaxConnectionsOpened

      public SQLPERF MaxConnectionsOpened(int value)
      Sets the specified value to the MaxConnectionsOpened field.
    • SumConnectionsOpened

      public SQLPERF SumConnectionsOpened(int value)
      Sets the specified value to the SumConnectionsOpened field.
    • SumConnectiontime

      public SQLPERF SumConnectiontime(int value)
      Sets the specified value to the SumConnectiontime field.
    • AvgTimeOpened

      public SQLPERF AvgTimeOpened(double value)
      Sets the specified value to the AvgTimeOpened field.
    • ServerRndTrips

      public SQLPERF ServerRndTrips(int value)
      Sets the specified value to the ServerRndTrips field.
    • BuffersSent

      public SQLPERF BuffersSent(int value)
      Sets the specified value to the BuffersSent field.
    • BuffersRec

      public SQLPERF BuffersRec(int value)
      Sets the specified value to the BuffersRec field.
    • BytesSent

      public SQLPERF BytesSent(int value)
      Sets the specified value to the BytesSent field.
    • BytesRec

      public SQLPERF BytesRec(int value)
      Sets the specified value to the BytesRec field.
    • msExecutionTime

      public SQLPERF msExecutionTime(int value)
      Sets the specified value to the msExecutionTime field.
    • msNetWorkServerTime

      public SQLPERF msNetWorkServerTime(int value)
      Sets the specified value to the msNetWorkServerTime 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 new SQLPERF instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static SQLPERF calloc()
      Returns a new SQLPERF instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static SQLPERF create()
      Returns a new SQLPERF instance allocated with BufferUtils.
    • create

      public static SQLPERF create(long address)
      Returns a new SQLPERF instance for the specified memory address.
    • createSafe

      public static @Nullable SQLPERF createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static SQLPERF.Buffer malloc(int capacity)
      Returns a new SQLPERF.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static SQLPERF.Buffer calloc(int capacity)
      Returns a new SQLPERF.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static SQLPERF.Buffer create(int capacity)
      Returns a new SQLPERF.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static SQLPERF.Buffer create(long address, int capacity)
      Create a SQLPERF.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable SQLPERF.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • mallocStack

      @Deprecated public static SQLPERF mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static SQLPERF callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static SQLPERF mallocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static SQLPERF callocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static SQLPERF.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static SQLPERF.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static SQLPERF.Buffer mallocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static SQLPERF.Buffer callocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

      public static SQLPERF malloc(MemoryStack stack)
      Returns a new SQLPERF instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static SQLPERF calloc(MemoryStack stack)
      Returns a new SQLPERF instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static SQLPERF.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new SQLPERF.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static SQLPERF.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new SQLPERF.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nTimerResolution

      public static int nTimerResolution(long struct)
      Unsafe version of TimerResolution().
    • nSQLidu

      public static int nSQLidu(long struct)
      Unsafe version of SQLidu().
    • nSQLiduRows

      public static int nSQLiduRows(long struct)
      Unsafe version of SQLiduRows().
    • nSQLSelects

      public static int nSQLSelects(long struct)
      Unsafe version of SQLSelects().
    • nSQLSelectRows

      public static int nSQLSelectRows(long struct)
      Unsafe version of SQLSelectRows().
    • nTransactions

      public static int nTransactions(long struct)
      Unsafe version of Transactions().
    • nSQLPrepares

      public static int nSQLPrepares(long struct)
      Unsafe version of SQLPrepares().
    • nExecDirects

      public static int nExecDirects(long struct)
      Unsafe version of ExecDirects().
    • nSQLExecutes

      public static int nSQLExecutes(long struct)
      Unsafe version of SQLExecutes().
    • nCursorOpens

      public static int nCursorOpens(long struct)
      Unsafe version of CursorOpens().
    • nCursorSize

      public static int nCursorSize(long struct)
      Unsafe version of CursorSize().
    • nCursorUsed

      public static int nCursorUsed(long struct)
      Unsafe version of CursorUsed().
    • nPercentCursorUsed

      public static double nPercentCursorUsed(long struct)
      Unsafe version of PercentCursorUsed().
    • nSQLFetchTime

      public static int nSQLFetchTime(long struct)
      Unsafe version of SQLFetchTime().
    • nSQLFetchCount

      public static int nSQLFetchCount(long struct)
      Unsafe version of SQLFetchCount().
    • nCurrentStmtCount

      public static int nCurrentStmtCount(long struct)
      Unsafe version of CurrentStmtCount().
    • nMaxOpenStmt

      public static int nMaxOpenStmt(long struct)
      Unsafe version of MaxOpenStmt().
    • nSumOpenStmt

      public static int nSumOpenStmt(long struct)
      Unsafe version of SumOpenStmt().
    • nCurrentConnectionCount

      public static int nCurrentConnectionCount(long struct)
      Unsafe version of CurrentConnectionCount().
    • nMaxConnectionsOpened

      public static int nMaxConnectionsOpened(long struct)
      Unsafe version of MaxConnectionsOpened().
    • nSumConnectionsOpened

      public static int nSumConnectionsOpened(long struct)
      Unsafe version of SumConnectionsOpened().
    • nSumConnectiontime

      public static int nSumConnectiontime(long struct)
      Unsafe version of SumConnectiontime().
    • nServerRndTrips

      public static int nServerRndTrips(long struct)
      Unsafe version of ServerRndTrips().
    • nBuffersSent

      public static int nBuffersSent(long struct)
      Unsafe version of BuffersSent().
    • nBuffersRec

      public static int nBuffersRec(long struct)
      Unsafe version of BuffersRec().
    • nBytesSent

      public static int nBytesSent(long struct)
      Unsafe version of BytesSent().
    • nBytesRec

      public static int nBytesRec(long struct)
      Unsafe version of BytesRec().
    • nmsExecutionTime

      public static int nmsExecutionTime(long struct)
      Unsafe version of msExecutionTime().
    • nmsNetWorkServerTime

      public static int nmsNetWorkServerTime(long struct)
      Unsafe version of msNetWorkServerTime().
    • nTimerResolution

      public static void nTimerResolution(long struct, int value)
      Unsafe version of TimerResolution.
    • nSQLidu

      public static void nSQLidu(long struct, int value)
      Unsafe version of SQLidu.
    • nSQLiduRows

      public static void nSQLiduRows(long struct, int value)
      Unsafe version of SQLiduRows.
    • nSQLSelects

      public static void nSQLSelects(long struct, int value)
      Unsafe version of SQLSelects.
    • nSQLSelectRows

      public static void nSQLSelectRows(long struct, int value)
      Unsafe version of SQLSelectRows.
    • nTransactions

      public static void nTransactions(long struct, int value)
      Unsafe version of Transactions.
    • nSQLPrepares

      public static void nSQLPrepares(long struct, int value)
      Unsafe version of SQLPrepares.
    • nExecDirects

      public static void nExecDirects(long struct, int value)
      Unsafe version of ExecDirects.
    • nSQLExecutes

      public static void nSQLExecutes(long struct, int value)
      Unsafe version of SQLExecutes.
    • nCursorOpens

      public static void nCursorOpens(long struct, int value)
      Unsafe version of CursorOpens.
    • nCursorSize

      public static void nCursorSize(long struct, int value)
      Unsafe version of CursorSize.
    • nCursorUsed

      public static void nCursorUsed(long struct, int value)
      Unsafe version of CursorUsed.
    • nPercentCursorUsed

      public static void nPercentCursorUsed(long struct, double value)
      Unsafe version of PercentCursorUsed.
    • nSQLFetchTime

      public static void nSQLFetchTime(long struct, int value)
      Unsafe version of SQLFetchTime.
    • nSQLFetchCount

      public static void nSQLFetchCount(long struct, int value)
      Unsafe version of SQLFetchCount.
    • nCurrentStmtCount

      public static void nCurrentStmtCount(long struct, int value)
      Unsafe version of CurrentStmtCount.
    • nMaxOpenStmt

      public static void nMaxOpenStmt(long struct, int value)
      Unsafe version of MaxOpenStmt.
    • nSumOpenStmt

      public static void nSumOpenStmt(long struct, int value)
      Unsafe version of SumOpenStmt.
    • nCurrentConnectionCount

      public static void nCurrentConnectionCount(long struct, int value)
      Unsafe version of CurrentConnectionCount.
    • nMaxConnectionsOpened

      public static void nMaxConnectionsOpened(long struct, int value)
      Unsafe version of MaxConnectionsOpened.
    • nSumConnectionsOpened

      public static void nSumConnectionsOpened(long struct, int value)
      Unsafe version of SumConnectionsOpened.
    • nSumConnectiontime

      public static void nSumConnectiontime(long struct, int value)
      Unsafe version of SumConnectiontime.
    • nServerRndTrips

      public static void nServerRndTrips(long struct, int value)
      Unsafe version of ServerRndTrips.
    • nBuffersSent

      public static void nBuffersSent(long struct, int value)
      Unsafe version of BuffersSent.
    • nBuffersRec

      public static void nBuffersRec(long struct, int value)
      Unsafe version of BuffersRec.
    • nBytesSent

      public static void nBytesSent(long struct, int value)
      Unsafe version of BytesSent.
    • nBytesRec

      public static void nBytesRec(long struct, int value)
      Unsafe version of BytesRec.
    • nmsExecutionTime

      public static void nmsExecutionTime(long struct, int value)
      Unsafe version of msExecutionTime.
    • nmsNetWorkServerTime

      public static void nmsNetWorkServerTime(long struct, int value)
      Unsafe version of msNetWorkServerTime.