Class AlpacaTimesTenConnectionManager


  • public class AlpacaTimesTenConnectionManager
    extends Object
    • Constructor Detail

      • AlpacaTimesTenConnectionManager

        public AlpacaTimesTenConnectionManager()
    • Method Detail

      • 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 openening 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.