public abstract class AbstractNativeDatabaseFactory extends java.lang.Object implements FbDatabaseFactory
Constructor and Description |
---|
AbstractNativeDatabaseFactory() |
Modifier and Type | Method and Description |
---|---|
JnaDatabase |
connect(IConnectionProperties connectionProperties)
Connects to a Firebird server based on the supplied connection properties.
|
protected abstract FbClientLibrary |
createClientLibrary()
Creates and initialize a new instance of the client library.
|
protected <T extends IAttachProperties<T>> |
filterProperties(T attachProperties)
Allows the database factory to perform modification of the attach properties before use.
|
protected FbClientLibrary |
getClientLibrary()
Gets the current instance of the client library.
|
JnaService |
serviceConnect(IServiceProperties serviceProperties)
Connects to the service manager of a Firebird server with the supplied service properties.
|
public JnaDatabase connect(IConnectionProperties connectionProperties) throws java.sql.SQLException
FbDatabaseFactory
The FbDatabase
instance will be connected to the server, but is not yet attached.
connect
in interface FbDatabaseFactory
connectionProperties
- Connection propertiesjava.sql.SQLException
public JnaService serviceConnect(IServiceProperties serviceProperties) throws java.sql.SQLException
FbDatabaseFactory
serviceConnect
in interface FbDatabaseFactory
serviceProperties
- Service propertiesjava.sql.SQLException
protected FbClientLibrary getClientLibrary()
Most implementations should not override this method (contrary to previous versions of Jaybird), to ensure native libraries are properly disposed of.
protected abstract FbClientLibrary createClientLibrary()
Instances should not be cached (caching - if any - is the responsibility of the caller).
protected <T extends IAttachProperties<T>> T filterProperties(T attachProperties)
Implementations should be prepared to handle immutable attach properties. Implementations are strongly advised to copy the attach properties before modification and return this copy.
T
- Type of attach propertiesattachProperties
- Attach propertiesCopyright © 2001-2022 Jaybird (Firebird JDBC/JCA) team. All rights reserved.