Package co.ecg.alpaca.toolkit.timesten
Class AlpacaTimesTenConnectionManager
java.lang.Object
co.ecg.alpaca.toolkit.timesten.AlpacaTimesTenConnectionManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectiongetConnection(String hostName, String DSN, int port, String userId, String password) Retrieves aConnectionby retrieving an existingTimesTenDataSourceand opening a new connection if one has been created.static com.timesten.jdbc.TimesTenDataSourcegetDataSource(String url) Opens a new TimesTenDataSource with the provided TimesTen URL.
-
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 aConnectionby retrieving an existingTimesTenDataSourceand 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 theTimesTenDataSourcewith 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.
-