Package org.firebirdsql.gds.ng.jna
Class JnaDatabaseConnection
- java.lang.Object
- 
- org.firebirdsql.gds.ng.AbstractConnection<T,C>
- 
- org.firebirdsql.gds.ng.jna.JnaConnection<IConnectionProperties,JnaDatabase>
- 
- org.firebirdsql.gds.ng.jna.JnaDatabaseConnection
 
 
 
- 
 public class JnaDatabaseConnection extends JnaConnection<IConnectionProperties,JnaDatabase> Class handling the initial setup of the JNA database connection.- Since:
- 3.0
- Author:
- Mark Rotteveel
 
- 
- 
Field Summary- 
Fields inherited from class org.firebirdsql.gds.ng.AbstractConnectionattachProperties
 
- 
 - 
Constructor SummaryConstructors Constructor Description JnaDatabaseConnection(FbClientLibrary clientLibrary, IConnectionProperties connectionProperties)Creates a JnaDatabaseConnection (without establishing a connection to the server).JnaDatabaseConnection(FbClientLibrary clientLibrary, IConnectionProperties connectionProperties, IEncodingFactory encodingFactory)Creates a JnaDatabaseConnection (without establishing a connection to the server).
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringcreateAttachUrl(DbAttachInfo dbAttachInfo, IConnectionProperties connectionProperties)JnaDatabaseidentify()Contrary to the description in the super class, this will simply return an unconnected instance.- 
Methods inherited from class org.firebirdsql.gds.ng.jna.JnaConnectiongetAttachUrl, getClientLibrary, processStatusVector, toAttachUrl
 - 
Methods inherited from class org.firebirdsql.gds.ng.AbstractConnectioncreateDbCryptCallback, getAttachProperties, getEncoding, getEncodingDefinition, getEncodingFactory, isLockedByCurrentThread, withLock
 
- 
 
- 
- 
- 
Constructor Detail- 
JnaDatabaseConnectionpublic JnaDatabaseConnection(FbClientLibrary clientLibrary, IConnectionProperties connectionProperties) throws java.sql.SQLException Creates a JnaDatabaseConnection (without establishing a connection to the server).- Parameters:
- clientLibrary- Client library to use
- connectionProperties- Connection properties
- Throws:
- java.sql.SQLException
 
 - 
JnaDatabaseConnectionpublic JnaDatabaseConnection(FbClientLibrary clientLibrary, IConnectionProperties connectionProperties, IEncodingFactory encodingFactory) throws java.sql.SQLException Creates a JnaDatabaseConnection (without establishing a connection to the server).- Parameters:
- clientLibrary- Client library to use
- connectionProperties- Connection properties
- encodingFactory- Factory for encoding definitions
- Throws:
- java.sql.SQLException
 
 
- 
 - 
Method Detail- 
createAttachUrlprotected java.lang.String createAttachUrl(DbAttachInfo dbAttachInfo, IConnectionProperties connectionProperties) throws java.sql.SQLException - Specified by:
- createAttachUrlin class- JnaConnection<IConnectionProperties,JnaDatabase>
- Throws:
- java.sql.SQLException
 
 - 
identifypublic JnaDatabase identify() throws java.sql.SQLException Contrary to the description in the super class, this will simply return an unconnected instance.- Specified by:
- identifyin class- AbstractConnection<IConnectionProperties,JnaDatabase>
- Returns:
- FbDatabase instance
- Throws:
- java.sql.SQLException- For exceptions connecting
 
 
- 
 
-