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
FieldsFields inherited from class org.firebirdsql.gds.ng.AbstractFbService
serviceListenerDispatcherFields inherited from class org.firebirdsql.gds.ng.AbstractFbAttachment
connection, exceptionListenerDispatcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattach()protected voidorg.firebirdsql.gds.ServiceParameterBufferorg.firebirdsql.gds.ServiceRequestBufferintcom.sun.jna.ptr.IntByReferenceintbyte[]getServiceInfo(org.firebirdsql.gds.ServiceParameterBuffer serviceParameterBuffer, org.firebirdsql.gds.ServiceRequestBuffer serviceRequestBuffer, int maxBufferLength) protected voidvoidprocessStatusVector(ISC_STATUS[] statusVector, org.firebirdsql.gds.ng.WarningMessageCallback warningMessageCallback) voidsetNetworkTimeout(int milliseconds) voidstartServiceAction(org.firebirdsql.gds.ServiceRequestBuffer serviceRequestBuffer) Methods inherited from class org.firebirdsql.gds.ng.AbstractFbService
addServiceListener, close, getDescribeServiceRequestBuffer, getServiceInfo, getServiceInformationProcessor, getServiceWarningCallback, removeServiceListenerMethods inherited from class org.firebirdsql.gds.ng.AbstractFbAttachment
addExceptionListener, forceClose, getDatatypeCoder, getEncoding, getEncodingFactory, getServerVersion, isAttached, isLockedByCurrentThread, removeExceptionListener, requireNotAttached, safelyDetach, setAttached, setDetached, setServerVersion, withLockMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.firebirdsql.gds.ng.listeners.ExceptionListenable
addExceptionListener, removeExceptionListenerMethods inherited from interface org.firebirdsql.gds.ng.FbAttachment
close, forceClose, getDatatypeCoder, getEncoding, getEncodingFactory, getServerVersion, isAttached, isLockedByCurrentThread, withLock
-
Field Details
-
STATUS_VECTOR_SIZE
public static final int STATUS_VECTOR_SIZE- See Also:
-
-
Constructor Details
-
JnaService
-
-
Method Details
-
createServiceParameterBuffer
public org.firebirdsql.gds.ServiceParameterBuffer createServiceParameterBuffer()- Specified by:
createServiceParameterBufferin interfaceorg.firebirdsql.gds.ng.FbService
-
createServiceRequestBuffer
public org.firebirdsql.gds.ServiceRequestBuffer createServiceRequestBuffer()- Specified by:
createServiceRequestBufferin interfaceorg.firebirdsql.gds.ng.FbService
-
checkConnected
- Specified by:
checkConnectedin classorg.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:
getServiceInfoin interfaceorg.firebirdsql.gds.ng.FbService- Throws:
SQLException
-
startServiceAction
public void startServiceAction(org.firebirdsql.gds.ServiceRequestBuffer serviceRequestBuffer) throws SQLException - Specified by:
startServiceActionin interfaceorg.firebirdsql.gds.ng.FbService- Throws:
SQLException
-
attach
- Specified by:
attachin interfaceorg.firebirdsql.gds.ng.FbAttachment- Throws:
SQLException
-
internalDetach
- Specified by:
internalDetachin classorg.firebirdsql.gds.ng.AbstractFbService<JnaServiceConnection>- Throws:
SQLException
-
getHandle
public int getHandle()- Specified by:
getHandlein interfaceorg.firebirdsql.gds.ng.FbAttachment- Specified by:
getHandlein interfaceorg.firebirdsql.gds.ng.FbService
-
getJnaHandle
public com.sun.jna.ptr.IntByReference getJnaHandle() -
setNetworkTimeout
- Specified by:
setNetworkTimeoutin interfaceorg.firebirdsql.gds.ng.FbAttachment- Throws:
SQLException
-
getNetworkTimeout
- Specified by:
getNetworkTimeoutin interfaceorg.firebirdsql.gds.ng.FbAttachment- Overrides:
getNetworkTimeoutin classorg.firebirdsql.gds.ng.AbstractFbAttachment<JnaServiceConnection>- Throws:
SQLException
-
processStatusVector
public void processStatusVector(ISC_STATUS[] statusVector, org.firebirdsql.gds.ng.WarningMessageCallback warningMessageCallback) throws SQLException - Throws:
SQLException
-