Class AlpacaTimesTenConnectionManager

java.lang.Object
co.ecg.alpaca.toolkit.timesten.AlpacaTimesTenConnectionManager

public class AlpacaTimesTenConnectionManager extends Object
  • Constructor Details

    • AlpacaTimesTenConnectionManager

      public AlpacaTimesTenConnectionManager()
  • Method Details

    • getConnection

      public static Connection getConnection(String hostName, String DSN, int port, String userId, String password) throws SQLException, TimesTenException
      Retrieves a Connection by retrieving an existing TimesTenDataSource and opening a new connection if one has been created. If the DataSource needs to be instantiated it is created before opening a new connection.
      Throws:
      SQLException - Thrown if unable to retrieve the TimesTenDataSource with the provided information.
      TimesTenException
    • getDataSource

      public static com.timesten.jdbc.TimesTenDataSource getDataSource(String url) throws TimesTenException
      Opens a new TimesTenDataSource with the provided TimesTen URL.
      Throws:
      TimesTenException - Thrown if an error occurs while opening the DataSource.