Class AbstractConnection<T extends IAttachProperties<T>,​C extends FbAttachment>

    • Constructor Detail

      • AbstractConnection

        protected AbstractConnection​(T attachProperties,
                                     IEncodingFactory encodingFactory)
                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
    • Method Detail

      • identify

        public abstract C identify()
                            throws java.sql.SQLException
        Performs the connection identification phase of the protocol and returns the connection handle implementation for the agreed protocol.
        Returns:
        Connection handle (ie FbDatabase or FbService)
        Throws:
        java.sql.SQLException - For exceptions connecting
      • getAttachProperties

        public final T getAttachProperties()
        Returns:
        An immutable copy of the current attach properties.
      • getEncoding

        public final Encoding getEncoding()
      • createDbCryptCallback

        @InternalApi
        public final DbCryptCallback createDbCryptCallback()
                                                    throws java.sql.SQLException
        Creates an instance of DbCryptCallback for this connection.
        Returns:
        Database encryption callback.
        Throws:
        java.sql.SQLException - For errors initializing the callback