Package org.firebirdsql.gds.ng.jna
Class FbLocalDatabaseFactory
- java.lang.Object
- 
- org.firebirdsql.gds.ng.jna.AbstractNativeDatabaseFactory
- 
- org.firebirdsql.gds.ng.jna.FbLocalDatabaseFactory
 
 
- 
- All Implemented Interfaces:
- FbDatabaseFactory
 
 public class FbLocalDatabaseFactory extends AbstractNativeDatabaseFactory Implementation ofFbDatabaseFactoryfor establishing local connections using the Firebird client library.- Since:
- 3.0
- Author:
- Mark Rotteveel
 
- 
- 
Constructor SummaryConstructors Constructor Description FbLocalDatabaseFactory()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FbClientLibrarycreateClientLibrary()Creates and initialize a new instance of the client library.protected <T extends IAttachProperties<T>>
 TfilterProperties(T attachProperties)Allows the database factory to perform modification of the attach properties before use.protected FbClientLibrarygetClientLibrary()Gets the current instance of the client library.static FbLocalDatabaseFactorygetInstance()- 
Methods inherited from class org.firebirdsql.gds.ng.jna.AbstractNativeDatabaseFactoryconnect, serviceConnect
 
- 
 
- 
- 
- 
Method Detail- 
getClientLibraryprotected FbClientLibrary getClientLibrary() Description copied from class:AbstractNativeDatabaseFactoryGets the current instance of the client library.Most implementations should not override this method (contrary to previous versions of Jaybird), to ensure native libraries are properly disposed of. - Overrides:
- getClientLibraryin class- AbstractNativeDatabaseFactory
- Returns:
- Client library instance.
 
 - 
filterPropertiesprotected <T extends IAttachProperties<T>> T filterProperties(T attachProperties) Description copied from class:AbstractNativeDatabaseFactoryAllows the database factory to perform modification of the attach properties before use.Implementations should be prepared to handle immutable attach properties. Implementations are strongly advised to copy the attach properties before modification and return this copy. - Overrides:
- filterPropertiesin class- AbstractNativeDatabaseFactory
- Type Parameters:
- T- Type of attach properties
- Parameters:
- attachProperties- Attach properties
- Returns:
- Filtered properties
 
 - 
createClientLibraryprotected final FbClientLibrary createClientLibrary() Description copied from class:AbstractNativeDatabaseFactoryCreates and initialize a new instance of the client library.Instances should not be cached (caching - if any - is the responsibility of the caller). - Specified by:
- createClientLibraryin class- AbstractNativeDatabaseFactory
- Returns:
- new client library instance
 
 - 
getInstancepublic static FbLocalDatabaseFactory getInstance() 
 
- 
 
-