org.ifeth.sehr.lib
Class SEHRDataSource

java.lang.Object
  |
  +--org.ifeth.sehr.lib.SEHRDataSource

public class SEHRDataSource
extends java.lang.Object

Simple object for accessing a firebird database within SEHR projects.

To access a SEHR database there are three basic, but different ways
1) using the SQL layer iBATIS
2) accessing the database by using 'java.sql' methods
3) using pooled connections

In any case the database must be connected first. This object can be used either in SEHR server environments where the connection parameters are available by the SEHRCfg.SEHRCfg()configuration object or in a client environment by setting the parameters during object initialization or by using the parameterless construcor together with some setter methods.
Tip: If using 2) to access the database you should use DAOJdbc.DAOJdbc(SEHRDataSource) as a layer between this datasource connector and your application. The DAO provides some commonly used methods for prepared statements in dependence to singleton or pooled connections, executing prepared queries etc.;
In brief the DAO object will save some code to implement java.sql methods.

To use pooled connection do