Class V10Service

    • Method Detail

      • 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
      • processAttachResponse

        protected void processAttachResponse​(GenericResponse genericResponse)
        Processes the response from the server to the attach or create operation.
        Parameters:
        genericResponse - GenericResponse received from the server.
      • afterAttachActions

        protected void afterAttachActions()
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • sendAttachToBuffer

        protected void sendAttachToBuffer​(ServiceParameterBuffer spb)
                                   throws java.sql.SQLException,
                                          java.io.IOException
        Sends the buffer for op_service_attach
        Parameters:
        spb - Service parameter buffer
        Throws:
        java.sql.SQLException - If the connection is not open
        java.io.IOException - For errors writing to the connection
      • 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.
      • authReceiveResponse

        public final void authReceiveResponse​(FbWireAttachment.AcceptPacket acceptPacket)
                                       throws java.io.IOException,
                                              java.sql.SQLException
        Description copied from interface: FbWireAttachment
        Receive authentication response from the server.

        This method is only relevant for protocol V13 or higher.

        Specified by:
        authReceiveResponse in interface FbWireAttachment
        Parameters:
        acceptPacket - Packet with op_cond_accept data, or null when the data should be read from the connection.
        Throws:
        java.io.IOException - For errors reading the response from the connection.
        java.sql.SQLException - For errors returned from the server, or when attempting to read.