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
serviceListenerDispatcher
Fields inherited from class org.firebirdsql.gds.ng.AbstractFbAttachment
connection, exceptionListenerDispatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attach()
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
-
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:
createServiceParameterBuffer
in interfaceorg.firebirdsql.gds.ng.FbService
-
createServiceRequestBuffer
public org.firebirdsql.gds.ServiceRequestBuffer createServiceRequestBuffer()- Specified by:
createServiceRequestBuffer
in interfaceorg.firebirdsql.gds.ng.FbService
-
checkConnected
- Specified by:
checkConnected
in 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:
getServiceInfo
in interfaceorg.firebirdsql.gds.ng.FbService
- Throws:
SQLException
-
startServiceAction
public void startServiceAction(org.firebirdsql.gds.ServiceRequestBuffer serviceRequestBuffer) throws SQLException - Specified by:
startServiceAction
in interfaceorg.firebirdsql.gds.ng.FbService
- Throws:
SQLException
-
attach
- Specified by:
attach
in interfaceorg.firebirdsql.gds.ng.FbAttachment
- Throws:
SQLException
-
internalDetach
- Specified by:
internalDetach
in classorg.firebirdsql.gds.ng.AbstractFbService<JnaServiceConnection>
- Throws:
SQLException
-
getHandle
public int getHandle()- Specified by:
getHandle
in interfaceorg.firebirdsql.gds.ng.FbAttachment
- Specified by:
getHandle
in interfaceorg.firebirdsql.gds.ng.FbService
-
getJnaHandle
public com.sun.jna.ptr.IntByReference getJnaHandle() -
setNetworkTimeout
- Specified by:
setNetworkTimeout
in interfaceorg.firebirdsql.gds.ng.FbAttachment
- Throws:
SQLException
-
getNetworkTimeout
- Specified by:
getNetworkTimeout
in interfaceorg.firebirdsql.gds.ng.FbAttachment
- Overrides:
getNetworkTimeout
in 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
-