Package org.firebirdsql.gds.ng.jna
Class JnaServiceConnection
java.lang.Object
org.firebirdsql.gds.ng.AbstractConnection<T,C>
org.firebirdsql.gds.ng.jna.JnaConnection<IServiceProperties,JnaService>
org.firebirdsql.gds.ng.jna.JnaServiceConnection
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
ConstructorsConstructorDescriptionJnaServiceConnection(FbClientLibrary clientLibrary, IServiceProperties connectionProperties) Creates a JnaServiceConnection (without establishing a connection to the server).JnaServiceConnection(FbClientLibrary clientLibrary, IServiceProperties connectionProperties, IEncodingFactory encodingFactory) Creates a JnaServiceConnection (without establishing a connection to the server). -
Method Summary
Modifier and TypeMethodDescriptionidentify()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, processStatusVectorMethods inherited from class org.firebirdsql.gds.ng.AbstractConnection
createDbCryptCallback, getAttachObjectName, getAttachProperties, getEncoding, getEncodingDefinition, getEncodingFactory, getPortNumber, getServerName
-
Constructor Details
-
JnaServiceConnection
public JnaServiceConnection(FbClientLibrary clientLibrary, IServiceProperties connectionProperties) throws SQLException Creates a JnaServiceConnection (without establishing a connection to the server).- Parameters:
clientLibrary- Client library to useconnectionProperties- Connection properties- Throws:
SQLException
-
JnaServiceConnection
public JnaServiceConnection(FbClientLibrary clientLibrary, IServiceProperties connectionProperties, IEncodingFactory encodingFactory) throws SQLException Creates a JnaServiceConnection (without establishing a connection to the server).- Parameters:
clientLibrary- Client library to useconnectionProperties- Connection propertiesencodingFactory- Factory for encoding definitions- Throws:
SQLException
-
-
Method Details
-
identify
Contrary to the description in the super class, this will simply return an unconnected instance.- Specified by:
identifyin classAbstractConnection<IServiceProperties,JnaService> - Returns:
- FbDatabase instance
- Throws:
SQLException
-