Class JnaConnection<T extends IAttachProperties<T>,​C extends JnaAttachment>

    • Constructor Detail

      • JnaConnection

        protected JnaConnection​(FbClientLibrary clientLibrary,
                                T attachProperties,
                                IEncodingFactory encodingFactory)
                         throws java.sql.SQLException
        Creates a JnaConnection (without establishing a connection to the server).
        Parameters:
        clientLibrary - Client library to use
        attachProperties - Attach properties
        encodingFactory - Encoding factory
        Throws:
        java.sql.SQLException
    • Method Detail

      • createAttachUrl

        protected abstract java.lang.String createAttachUrl​(DbAttachInfo dbAttachInfo,
                                                            T attachProperties)
                                                     throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getClientLibrary

        public final FbClientLibrary getClientLibrary()
        Returns:
        The client library instance associated with the connection.
      • processStatusVector

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

        public java.lang.String getAttachUrl()
        Gets the attach URL for the library.
        Returns:
        Attach URL
      • toAttachUrl

        protected static java.lang.String toAttachUrl​(DbAttachInfo dbAttachInfo)
        Builds the attach URL for the library.
        Returns:
        Attach URL