Class JnaServiceConnection

java.lang.Object
org.firebirdsql.gds.ng.AbstractConnection<T,C>
org.firebirdsql.gds.ng.jna.JnaConnection<org.firebirdsql.gds.ng.IServiceProperties,JnaService>
org.firebirdsql.gds.ng.jna.JnaServiceConnection

public final class JnaServiceConnection extends JnaConnection<org.firebirdsql.gds.ng.IServiceProperties,JnaService>
Class handling the initial setup of the JNA service connection.
Since:
3.0
Author:
Mark Rotteveel
  • Field Summary

    Fields inherited from class org.firebirdsql.gds.ng.AbstractConnection

    attachProperties
  • Constructor Summary

    Constructors
    Constructor
    Description
    JnaServiceConnection(FbClientLibrary clientLibrary, org.firebirdsql.gds.ng.IServiceProperties connectionProperties)
    Creates a JnaServiceConnection (without establishing a connection to the server).
    JnaServiceConnection(FbClientLibrary clientLibrary, org.firebirdsql.gds.ng.IServiceProperties connectionProperties, org.firebirdsql.encodings.IEncodingFactory encodingFactory)
    Creates a JnaServiceConnection (without establishing a connection to the server).
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    createAttachUrl(org.firebirdsql.gds.impl.DbAttachInfo dbAttachInfo, org.firebirdsql.gds.ng.IServiceProperties attachProperties)
     
    Contrary to the description in the super class, this will simply return an unconnected instance.

    Methods inherited from class org.firebirdsql.gds.ng.jna.JnaConnection

    getAttachUrl, getClientLibrary, processStatusVector, toAttachUrl

    Methods inherited from class org.firebirdsql.gds.ng.AbstractConnection

    createDbCryptCallback, getAttachProperties, getEncoding, getEncodingDefinition, getEncodingFactory, isLockedByCurrentThread, withLock

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JnaServiceConnection

      public JnaServiceConnection(FbClientLibrary clientLibrary, org.firebirdsql.gds.ng.IServiceProperties connectionProperties) throws SQLException
      Creates a JnaServiceConnection (without establishing a connection to the server).
      Parameters:
      clientLibrary - Client library to use
      connectionProperties - Connection properties
      Throws:
      SQLException
    • JnaServiceConnection

      public JnaServiceConnection(FbClientLibrary clientLibrary, org.firebirdsql.gds.ng.IServiceProperties connectionProperties, org.firebirdsql.encodings.IEncodingFactory encodingFactory) throws SQLException
      Creates a JnaServiceConnection (without establishing a connection to the server).
      Parameters:
      clientLibrary - Client library to use
      connectionProperties - Connection properties
      encodingFactory - Factory for encoding definitions
      Throws:
      SQLException
  • Method Details

    • createAttachUrl

      protected String createAttachUrl(org.firebirdsql.gds.impl.DbAttachInfo dbAttachInfo, org.firebirdsql.gds.ng.IServiceProperties attachProperties)
      Specified by:
      createAttachUrl in class JnaConnection<org.firebirdsql.gds.ng.IServiceProperties,JnaService>
    • identify

      public JnaService identify() throws SQLException
      Contrary to the description in the super class, this will simply return an unconnected instance.
      Specified by:
      identify in class org.firebirdsql.gds.ng.AbstractConnection<org.firebirdsql.gds.ng.IServiceProperties,JnaService>
      Returns:
      FbDatabase instance
      Throws:
      SQLException