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 <T extends IAttachProperties<T>> |
filterProperties(T attachProperties)
Allows the database factory to perform modification of the attach properties before use.
|
protected abstract FbClientLibrary |
getClientLibrary() |
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 abstract FbClientLibrary getClientLibrary()
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-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.