Package net.hydromatic.quidem
Interface Quidem.ConnectionFactory
- Enclosing class:
Quidem
public static interface Quidem.ConnectionFactory
Creates a connection for a given name.
It is kind of a directory service.
Caller must close the connection.
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Nullable ConnectionCreates a connection to the named database or reference database.default Supplier<Connection> Returns a supplier of connections to a particular database.
-
Method Details
-
connect
Creates a connection to the named database or reference database.Returns null if the database is not known (except
UnsupportedConnectionFactory.- Parameters:
name- Name of the databasereference- Whether we require a real connection or a reference connection- Throws:
Exception
-
supplier
Returns a supplier of connections to a particular database.- Parameters:
name- Database name
-