- All Superinterfaces:
AutoCloseable,org.firebirdsql.gds.ng.listeners.ExceptionListenable,org.firebirdsql.gds.ng.FbAttachment
- All Known Implementing Classes:
JnaDatabase,JnaService
public interface JnaAttachment
extends org.firebirdsql.gds.ng.FbAttachment
- Since:
- 3.0
- Author:
- Mark Rotteveel
-
Method Summary
Modifier and TypeMethodDescriptiondefault org.firebirdsql.gds.impl.GDSServerVersionReports the client library version of this attachment.Methods inherited from interface org.firebirdsql.gds.ng.listeners.ExceptionListenable
addExceptionListener, removeExceptionListenerMethods inherited from interface org.firebirdsql.gds.ng.FbAttachment
attach, close, forceClose, getDatatypeCoder, getEncoding, getEncodingFactory, getHandle, getNetworkTimeout, getServerVersion, isAttached, isLockedByCurrentThread, setNetworkTimeout, withLock
-
Method Details
-
getClientVersion
default org.firebirdsql.gds.impl.GDSServerVersion getClientVersion()Reports the client library version of this attachment.The default implementation extracts the last raw version string of
FbAttachment.getServerVersion()and parses that.- Returns:
- client version, may report
GDSServerVersion.INVALID_VERSIONif the implementation can't determine the client version or if parsing fails. - Since:
- 6.0.2
-