Package org.firebirdsql.jdbc
Interface FirebirdDriver
-
- All Superinterfaces:
java.sql.Driver
- All Known Implementing Classes:
FBDriver
public interface FirebirdDriver extends java.sql.DriverExtension of theDriverproviding methods to set the connection properties programmatically.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FirebirdConnectionconnect(FirebirdConnectionProperties properties)Connect to the specified database using the specified connection properties.FirebirdConnectionPropertiesnewConnectionProperties()Create new instance ofFirebirdConnectionPropertiesthat can later be used inconnect(FirebirdConnectionProperties)call.
-
-
-
Method Detail
-
newConnectionProperties
FirebirdConnectionProperties newConnectionProperties()
Create new instance ofFirebirdConnectionPropertiesthat can later be used inconnect(FirebirdConnectionProperties)call.- Returns:
- instance of
FirebirdConnectionProperties.
-
connect
FirebirdConnection connect(FirebirdConnectionProperties properties) throws java.sql.SQLException
Connect to the specified database using the specified connection properties.- Parameters:
properties- instance ofFirebirdConnectionPropertiescreated innewConnectionProperties()method.- Returns:
- new connection to the Firebird database.
- Throws:
java.sql.SQLException- if an error happened while connecting to the database.
-
-