Package com.invirgance.convirgance.jdbc
Class StoredConnections
java.lang.Object
com.invirgance.convirgance.jdbc.StoredConnections
- All Implemented Interfaces:
Iterable<StoredConnection>
Contains builders for creating the driver, the drivers data source, and a list of
StoredConnections that have been saved. To obtain a builder to construct a
new StoredConnection, use
AutomaticDriver.createConnection(String)
.- Author:
- jbanes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builds the DataSourceConfig for the driver of a StoredConnection.static class
Builds a DriverConfig for a StoredConnectionBuilder.static class
A Builder for creating and StoredConnections. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StoredConnection
getConnection
(String name) Gets the StoredConnection that has the provided name.iterator()
static Iterable
<StoredConnection> list()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
StoredConnections
public StoredConnections()
-
-
Method Details
-
getConnection
Gets the StoredConnection that has the provided name. This would be used to retrieve a saved StoredConnection. Example: The user saved a StoredConnection and named it "CoolDatabase".- Parameters:
name
- The name assigned to the StoredConnection.- Returns:
- The StoredConnection.
-
list
-
iterator
- Specified by:
iterator
in interfaceIterable<StoredConnection>
-