Package co.ecg.alpaca.toolkit.timesten
Class AlpacaTimesTenConnectionManager
- java.lang.Object
-
- co.ecg.alpaca.toolkit.timesten.AlpacaTimesTenConnectionManager
-
public class AlpacaTimesTenConnectionManager extends Object
-
-
Constructor Summary
Constructors Constructor Description AlpacaTimesTenConnectionManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Connection
getConnection(String hostName, String DSN, int port, String userId, String password)
Retrieves aConnection
by retrieving an existingTimesTenDataSource
and opening a new connection if one has been created.static com.timesten.jdbc.TimesTenDataSource
getDataSource(String url)
Opens a new TimesTenDataSource with the provided TimesTen URL.
-
-
-
Method Detail
-
getConnection
public static Connection getConnection(String hostName, String DSN, int port, String userId, String password) throws SQLException, TimesTenException
Retrieves aConnection
by retrieving an existingTimesTenDataSource
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 theTimesTenDataSource
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.
-
-