Class JnaService

    • Method Detail

      • getServiceInfo

        public byte[] getServiceInfo​(ServiceParameterBuffer serviceParameterBuffer,
                                     ServiceRequestBuffer serviceRequestBuffer,
                                     int maxBufferLength)
                              throws java.sql.SQLException
        Description copied from interface: FbService
        Performs a service info request (service query.
        Specified by:
        getServiceInfo in interface FbService
        Parameters:
        serviceParameterBuffer - Service parameters (can be null)
        serviceRequestBuffer - Service request info
        maxBufferLength - Maximum response buffer length to use
        Returns:
        The response buffer (note: length is the actual length of the response, not maxBufferLength
        Throws:
        java.sql.SQLException - For errors retrieving the information.
      • startServiceAction

        public void startServiceAction​(ServiceRequestBuffer serviceRequestBuffer)
                                throws java.sql.SQLException
        Description copied from interface: FbService
        Starts a service action.
        Specified by:
        startServiceAction in interface FbService
        Parameters:
        serviceRequestBuffer - Service action request details
        Throws:
        java.sql.SQLException - For errors starting the service action.
      • attach

        public void attach()
                    throws java.sql.SQLException
        Description copied from interface: FbAttachment
        Attach to the attachment type.
        Specified by:
        attach in interface FbAttachment
        Throws:
        java.sql.SQLException
      • getJnaHandle

        public com.sun.jna.ptr.IntByReference getJnaHandle()
      • setNetworkTimeout

        public void setNetworkTimeout​(int milliseconds)
                               throws java.sql.SQLException
        Description copied from interface: FbAttachment
        Sets the network timeout for this attachment.
        Specified by:
        setNetworkTimeout in interface FbAttachment
        Parameters:
        milliseconds - Timeout in milliseconds; 0 means no timeout. If the attachment doesn't support milliseconds, it should round up to the nearest second.
        Throws:
        java.sql.SQLException - If this attachment is closed, the value of milliseconds is smaller than 0, or if setting the timeout fails.
        java.sql.SQLFeatureNotSupportedException - If this attachment doesn't support (changing) the network timeout.
      • getNetworkTimeout

        public int getNetworkTimeout()
                              throws java.sql.SQLException
        Description copied from interface: FbAttachment
        Gets the current network timeout for this attachment.
        Specified by:
        getNetworkTimeout in interface FbAttachment
        Overrides:
        getNetworkTimeout in class AbstractFbAttachment<JnaServiceConnection>
        Returns:
        Timeout in milliseconds, 0 means no timeout
        Throws:
        java.sql.SQLException - If this attachment is closed
        java.sql.SQLFeatureNotSupportedException - If this attachment doesn't support network timeout
      • processStatusVector

        public void processStatusVector​(ISC_STATUS[] statusVector,
                                        WarningMessageCallback warningMessageCallback)
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable