Class StoredConnections

java.lang.Object
com.invirgance.convirgance.jdbc.StoredConnections
All Implemented Interfaces:
Iterable<StoredConnection>

public class StoredConnections extends Object implements 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
  • Constructor Details

    • StoredConnections

      public StoredConnections()
  • Method Details

    • getConnection

      public static StoredConnection getConnection(String name)
      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

      public static Iterable<StoredConnection> list()
    • iterator

      public Iterator<StoredConnection> iterator()
      Specified by:
      iterator in interface Iterable<StoredConnection>