Class JnaService

java.lang.Object
org.firebirdsql.gds.ng.AbstractFbAttachment<T>
org.firebirdsql.gds.ng.AbstractFbService<JnaServiceConnection>
org.firebirdsql.gds.ng.jna.JnaService
All Implemented Interfaces:
AutoCloseable, org.firebirdsql.gds.ng.FbAttachment, org.firebirdsql.gds.ng.FbService, JnaAttachment, org.firebirdsql.gds.ng.listeners.ExceptionListenable

public final class JnaService extends org.firebirdsql.gds.ng.AbstractFbService<JnaServiceConnection> implements JnaAttachment
Implementation of FbService for native client access.
Since:
3.0
Author:
Mark Rotteveel
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     

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

    serviceListenerDispatcher

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

    connection, exceptionListenerDispatcher
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected void
     
    org.firebirdsql.gds.ServiceParameterBuffer
     
    org.firebirdsql.gds.ServiceRequestBuffer
     
    int
     
    com.sun.jna.ptr.IntByReference
     
    int
     
    byte[]
    getServiceInfo(org.firebirdsql.gds.ServiceParameterBuffer serviceParameterBuffer, org.firebirdsql.gds.ServiceRequestBuffer serviceRequestBuffer, int maxBufferLength)
     
    protected void
     
    void
    processStatusVector(ISC_STATUS[] statusVector, org.firebirdsql.gds.ng.WarningMessageCallback warningMessageCallback)
     
    void
    setNetworkTimeout(int milliseconds)
     
    void
    startServiceAction(org.firebirdsql.gds.ServiceRequestBuffer serviceRequestBuffer)
     

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

    addServiceListener, close, getDescribeServiceRequestBuffer, getServiceInfo, getServiceInformationProcessor, getServiceWarningCallback, removeServiceListener

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

    addExceptionListener, forceClose, getDatatypeCoder, getEncoding, getEncodingFactory, getServerVersion, isAttached, isLockedByCurrentThread, removeExceptionListener, requireNotAttached, safelyDetach, setAttached, setDetached, setServerVersion, withLock

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.firebirdsql.gds.ng.listeners.ExceptionListenable

    addExceptionListener, removeExceptionListener

    Methods inherited from interface org.firebirdsql.gds.ng.FbAttachment

    close, forceClose, getDatatypeCoder, getEncoding, getEncodingFactory, getServerVersion, isAttached, isLockedByCurrentThread, withLock
  • Field Details

  • Constructor Details

  • Method Details

    • createServiceParameterBuffer

      public org.firebirdsql.gds.ServiceParameterBuffer createServiceParameterBuffer()
      Specified by:
      createServiceParameterBuffer in interface org.firebirdsql.gds.ng.FbService
    • createServiceRequestBuffer

      public org.firebirdsql.gds.ServiceRequestBuffer createServiceRequestBuffer()
      Specified by:
      createServiceRequestBuffer in interface org.firebirdsql.gds.ng.FbService
    • checkConnected

      protected void checkConnected() throws SQLException
      Specified by:
      checkConnected in class org.firebirdsql.gds.ng.AbstractFbAttachment<JnaServiceConnection>
      Throws:
      SQLException
    • getServiceInfo

      public byte[] getServiceInfo(org.firebirdsql.gds.ServiceParameterBuffer serviceParameterBuffer, org.firebirdsql.gds.ServiceRequestBuffer serviceRequestBuffer, int maxBufferLength) throws SQLException
      Specified by:
      getServiceInfo in interface org.firebirdsql.gds.ng.FbService
      Throws:
      SQLException
    • startServiceAction

      public void startServiceAction(org.firebirdsql.gds.ServiceRequestBuffer serviceRequestBuffer) throws SQLException
      Specified by:
      startServiceAction in interface org.firebirdsql.gds.ng.FbService
      Throws:
      SQLException
    • attach

      public void attach() throws SQLException
      Specified by:
      attach in interface org.firebirdsql.gds.ng.FbAttachment
      Throws:
      SQLException
    • internalDetach

      protected void internalDetach() throws SQLException
      Specified by:
      internalDetach in class org.firebirdsql.gds.ng.AbstractFbService<JnaServiceConnection>
      Throws:
      SQLException
    • getHandle

      public int getHandle()
      Specified by:
      getHandle in interface org.firebirdsql.gds.ng.FbAttachment
      Specified by:
      getHandle in interface org.firebirdsql.gds.ng.FbService
    • getJnaHandle

      public com.sun.jna.ptr.IntByReference getJnaHandle()
    • setNetworkTimeout

      public void setNetworkTimeout(int milliseconds) throws SQLException
      Specified by:
      setNetworkTimeout in interface org.firebirdsql.gds.ng.FbAttachment
      Throws:
      SQLException
    • getNetworkTimeout

      public int getNetworkTimeout() throws SQLException
      Specified by:
      getNetworkTimeout in interface org.firebirdsql.gds.ng.FbAttachment
      Overrides:
      getNetworkTimeout in class org.firebirdsql.gds.ng.AbstractFbAttachment<JnaServiceConnection>
      Throws:
      SQLException
    • processStatusVector

      public void processStatusVector(ISC_STATUS[] statusVector, org.firebirdsql.gds.ng.WarningMessageCallback warningMessageCallback) throws SQLException
      Throws:
      SQLException