Class SQLPERF

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class SQLPERF
    extends Struct
    implements 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;
     }
    • 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 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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • 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​(long address)
        Returns a new SQLPERF instance for the specified memory address.
      • createSafe

        @Nullable
        public static 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​(long address,
                                            int capacity)
        Create a SQLPERF.Buffer instance at the specified memory.
        Parameters:
        address - the memory address
        capacity - the buffer capacity
      • createSafe

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

        public static SQLPERF mallocStack()
        Returns a new SQLPERF instance allocated on the thread-local MemoryStack.
      • callocStack

        public static SQLPERF callocStack()
        Returns a new SQLPERF instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

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

        public static SQLPERF callocStack​(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
      • mallocStack

        public static SQLPERF.Buffer mallocStack​(int capacity)
        Returns a new SQLPERF.Buffer instance allocated on the thread-local MemoryStack.
        Parameters:
        capacity - the buffer capacity
      • callocStack

        public static SQLPERF.Buffer callocStack​(int capacity)
        Returns a new SQLPERF.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • mallocStack

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

        public static SQLPERF.Buffer callocStack​(int capacity,
                                                 MemoryStack stack)
        Returns a new SQLPERF.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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().
      • nAvgFetchTime

        public static double nAvgFetchTime​(long struct)
        Unsafe version of AvgFetchTime().
      • nAvgCursorSize

        public static double nAvgCursorSize​(long struct)
        Unsafe version of AvgCursorSize().
      • nAvgCursorUsed

        public static double nAvgCursorUsed​(long struct)
        Unsafe version of AvgCursorUsed().
      • 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().
      • nAvgTimeOpened

        public static double nAvgTimeOpened​(long struct)
        Unsafe version of AvgTimeOpened().
      • 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.
      • nAvgFetchTime

        public static void nAvgFetchTime​(long struct,
                                         double value)
        Unsafe version of AvgFetchTime.
      • nAvgCursorSize

        public static void nAvgCursorSize​(long struct,
                                          double value)
        Unsafe version of AvgCursorSize.
      • nAvgCursorUsed

        public static void nAvgCursorUsed​(long struct,
                                          double value)
        Unsafe version of AvgCursorUsed.
      • 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.
      • nAvgTimeOpened

        public static void nAvgTimeOpened​(long struct,
                                          double value)
        Unsafe version of AvgTimeOpened.
      • 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.