Class AbstractFbService<T extends AbstractConnection<IServiceProperties,​? extends FbService>>

    • Constructor Detail

      • AbstractFbService

        protected AbstractFbService​(T connection,
                                    DatatypeCoder datatypeCoder)
    • Method Detail

      • getServiceInfo

        public final <R> R getServiceInfo​(ServiceParameterBuffer serviceParameterBuffer,
                                          ServiceRequestBuffer serviceRequestBuffer,
                                          int bufferLength,
                                          InfoProcessor<R> infoProcessor)
                                   throws java.sql.SQLException
        Description copied from interface: FbService
        Request service info (service query).
        Specified by:
        getServiceInfo in interface FbService
        Parameters:
        serviceParameterBuffer - Service parameters
        serviceRequestBuffer - Service request info
        bufferLength - Response buffer length to use
        infoProcessor - Implementation of InfoProcessor to transform the info response
        Returns:
        Transformed info response of type T
        Throws:
        java.sql.SQLException - For errors retrieving or transforming the response.
      • close

        public final void close()
                         throws java.sql.SQLException
        Detaches and closes the connection.

        Implementation note: Calls AbstractFbAttachment.checkConnected() and notifies service listeners of the detaching event, then calls internalDetach() and finally notifies service listeners of database detach and removes all listeners.

        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface FbAttachment
        Throws:
        java.sql.SQLException - If not currently connected, or another problem occurred detaching.
      • getServiceWarningCallback

        protected final WarningMessageCallback getServiceWarningCallback()
        Returns:
        The warning callback for this service.
      • getDescribeServiceRequestBuffer

        protected ServiceRequestBuffer getDescribeServiceRequestBuffer()