Interface FbWireAttachment

    • Method Detail

      • readGenericResponse

        GenericResponse readGenericResponse​(WarningMessageCallback callback)
                                     throws java.sql.SQLException,
                                            java.io.IOException
        Convenience method to read a Response to a GenericResponse
        Parameters:
        callback - Callback object for warnings, null for default callback
        Returns:
        GenericResponse
        Throws:
        java.sql.SQLException - For errors returned from the server, or when attempting to read.
        java.io.IOException - For errors reading the response from the connection.
      • authReceiveResponse

        void authReceiveResponse​(FbWireAttachment.AcceptPacket acceptPacket)
                          throws java.io.IOException,
                                 java.sql.SQLException
        Receive authentication response from the server.

        This method is only relevant for protocol V13 or higher.

        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.