org.ifeth.sehr.lib
Class SEHRDataSource

java.lang.Object
  extended byorg.ifeth.sehr.lib.SEHRDataSource

public class SEHRDataSource
extends java.lang.Object

Simple class for accessing the firebird database from SEHR projects and to read/save local files like profiles, datastores encrypted.

To access a SEHR database there are three basic, but different ways
1) using the SQL layer iBATIS(C)
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 constructor in conjunction with some setter methods.
Tip: If using the 2nd choice 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 time in coding instead of using java.sql methods.

To use pooled connection do