org.ifeth.sehr.beans
Class CenterData

java.lang.Object
  |
  +--org.ifeth.sehr.lib.DAOBase
        |
        +--org.ifeth.sehr.beans.CenterData
All Implemented Interfaces:
DAOBaseInterface

public class CenterData
extends DAOBase
implements DAOBaseInterface

This bean is used to manage the centers on a SEHR server.

Version:
$Id: CenterData.java,v 1.3 2005/01/16 12:15:57 hansjhaase Exp $
Author:
hansjhaase

Field Summary
 
Fields inherited from interface org.ifeth.sehr.lib.DAOBaseInterface
INTRADOC, INTRASEC
 
Constructor Summary
CenterData()
           
CenterData(NetCenter nc)
           
 
Method Summary
 void _delete(java.lang.String s, java.lang.Object o)
           
 void _getOptionList(java.lang.String mastertyp)
           
 java.util.List _getResList()
           
 void _insert(java.lang.String s, java.lang.Object o)
           
 void _select(java.lang.Object o)
           
 void _select(java.lang.String s, java.lang.Object o)
           
 void _setSEHRDataSource(SEHRDataSource fbds)
           
 void _update(java.lang.String s, java.lang.Object o)
           
 NetCenter getCenterByID(int centerid, NetCenter nc)
          Get center record by given unique id (pik); The record will be stored in netcenter object...
 java.lang.String getCenterHTMLSelect()
          Get list of centers as HTML SELECT for local zone (indentified by cfg) w/o 'add center' option This method is usefull in JSP's using the 'c:out' tag
 java.lang.String getCenterHTMLSelect(int zoneid, boolean is_create)
          Get list of centers as HTML SELECT for given zone
 NetCenter getNetcenter()
           
 void init()
           
 void init(SEHRCfg cfg)
           
static void main(java.lang.String[] args)
          For testing purposes...
 void setNetcenter(NetCenter netcenter)
           
 
Methods inherited from class org.ifeth.sehr.lib.DAOBase
getOptionList, getResList, setSEHRDataSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CenterData

public CenterData()

CenterData

public CenterData(NetCenter nc)
Method Detail

init

public void init()

init

public void init(SEHRCfg cfg)

getNetcenter

public NetCenter getNetcenter()

setNetcenter

public void setNetcenter(NetCenter netcenter)

getCenterHTMLSelect

public java.lang.String getCenterHTMLSelect()
Get list of centers as HTML SELECT for local zone (indentified by cfg) w/o 'add center' option

This method is usefull in JSP's using the 'c:out' tag


getCenterHTMLSelect

public java.lang.String getCenterHTMLSelect(int zoneid,
                                            boolean is_create)
Get list of centers as HTML SELECT for given zone


getCenterByID

public NetCenter getCenterByID(int centerid,
                               NetCenter nc)
Get center record by given unique id (pik); The record will be stored in netcenter object...


_setSEHRDataSource

public void _setSEHRDataSource(SEHRDataSource fbds)
                        throws java.lang.Exception
Specified by:
_setSEHRDataSource in interface DAOBaseInterface
java.lang.Exception

_select

public void _select(java.lang.String s,
                    java.lang.Object o)
             throws java.lang.Exception
Specified by:
_select in interface DAOBaseInterface
java.lang.Exception

_select

public void _select(java.lang.Object o)
             throws java.lang.Exception
Specified by:
_select in interface DAOBaseInterface
java.lang.Exception

_insert

public void _insert(java.lang.String s,
                    java.lang.Object o)
             throws java.lang.Exception
Specified by:
_insert in interface DAOBaseInterface
java.lang.Exception

_getResList

public java.util.List _getResList()
Specified by:
_getResList in interface DAOBaseInterface

_getOptionList

public void _getOptionList(java.lang.String mastertyp)
Specified by:
_getOptionList in interface DAOBaseInterface

_update

public void _update(java.lang.String s,
                    java.lang.Object o)
             throws java.lang.Exception
Specified by:
_update in interface DAOBaseInterface
java.lang.Exception

_delete

public void _delete(java.lang.String s,
                    java.lang.Object o)
             throws java.lang.Exception
Specified by:
_delete in interface DAOBaseInterface
java.lang.Exception

main

public static void main(java.lang.String[] args)
For testing purposes...

How to test w/o a running SEHR server
Check and edit enclosed /etc/sehr.cfg file;
Create and use a local firebird database "intrasec.fdb"
Edit your local /etc/sehr.cfg to connect to the db...
Fill in some test records
(Tip: 'ibexplorer' works well for creating, editing a firebird db...)