Examples of PatientlogBean


Examples of org.openqreg.bean.PatientlogBean

* @return A populated PatientlogBean
*
* @throws SQLException
*/
protected static PatientlogBean populate(ResultSet rs) throws SQLException {
PatientlogBean valueObject = new PatientlogBean();
valueObject.setId((Long)rs.getObject(1));
valueObject.setPid((Long)rs.getObject(2));
valueObject.setUserid((String)rs.getObject(3));
valueObject.setCentreid((String)rs.getObject(4));
valueObject.setContext((String)rs.getObject(5));
valueObject.setStep((String)rs.getObject(6));
valueObject.setSearchid((Long)rs.getObject(7));
valueObject.setTscreated((java.sql.Timestamp)rs.getObject(8));
return valueObject;
}
View Full Code Here

Examples of org.openqreg.bean.PatientlogBean

* @throws SQLException
*/
public static Collection<PatientlogBean> findAll(Connection con) throws SQLException {
PreparedStatement pStmt = null;
ResultSet rs = null;
PatientlogBean valueObject = null;
Collection<PatientlogBean> col = Collections.synchronizedList(new ArrayList<PatientlogBean>());
try{
pStmt = con.prepareStatement(FIND_ALL_STATEMENT);
rs = pStmt.executeQuery();
while (rs.next()){
valueObject = populate(rs);
valueObject.afterPopulate(con);
col.add(valueObject);
}
return col;
}finally{
if(null!=rs){
View Full Code Here

Examples of org.openqreg.bean.PatientlogBean

* @throws SQLException
*/
public static Object findByPrimaryKey(Connection con, PrimaryKey key) throws SQLException {
PreparedStatement pStmt = null;
ResultSet rs = null;
PatientlogBean valueObject = null;
PatientlogKey primaryKey = (PatientlogKey) key;
try{
pStmt = con.prepareStatement(PatientlogBeanBase.SELECT_STATEMENT);
pStmt.setObject(1, primaryKey.getId());
rs = pStmt.executeQuery();
while (rs.next()){
valueObject = populate(rs);
valueObject.afterPopulate(con);
}
return valueObject;
}finally{
if(null!=rs){
rs.close();
View Full Code Here

Examples of org.openqreg.bean.PatientlogBean

   */
  private static Logger log = Logger.getLogger(PatientlogHandler.class.getName());
 
  public static void logToPatientLog(User user, Long pid, String context, String STEP, Long searchid) {
    try {
      PatientlogBean logBean = new PatientlogBean();
      logBean.setPid(pid);
      logBean.setUserid(user.getId());
      logBean.setCentreid(user.getCentreid());
      logBean.setContext(context);
      logBean.setStep(STEP);
      logBean.setSearchid(searchid);
      logBean.create();
    } catch (SQLException sqle) {
      log.log(Level.ERROR, "Error in creating patient log", sqle);
    }
   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.