Package com.krminc.phr.dao

Examples of com.krminc.phr.dao.PersistenceService.commitTx()


                                res = false;
                            }
                        } else {
                            ii.setDataSourceId(healthRecordId);
                            em.merge(ii);
                            persistenceSvc.commitTx();
                        }
                    }

                }
            } catch (Exception e) {
View Full Code Here


                transitionInfo.setHopesText(hopesText);
                transitionInfo.setComments(comments);
                transitionInfo.setDataSourceId(healthRecordId);

                em.merge(transitionInfo);
                persistenceSvc.commitTx();
            } catch (Exception e) {
                logger.error("Transition Save Failed", e);
                res = false;
            } finally {
                persistenceSvc.close();
View Full Code Here

                        if (i.getEmploymentId() != null) {
                            Employment existingEntry = em.find(Employment.class, i.getEmploymentId());
                            if (existingEntry.getHealthRecordId().compareTo(healthRecordId) == 0) {
                                i.setDataSourceId(healthRecordId);
                                em.merge(i);
                                persistenceSvc.commitTx();
                            } else {
                                logger.error("Non-matching HRID on merge attempt");
                                res = false;
                            }
                        } else {
View Full Code Here

                                res = false;
                            }
                        } else {
                            i.setDataSourceId(healthRecordId);
                            em.merge(i);
                            persistenceSvc.commitTx();
                        }
                    }

                }
            } catch (Exception e) {
View Full Code Here

                        if (i.getSchoolId() != null) {
                            School existingEntry = em.find(School.class, i.getSchoolId());
                            if (existingEntry.getHealthRecordId().compareTo(healthRecordId) == 0) {
                                i.setDataSourceId(healthRecordId);
                                em.merge(i);
                                persistenceSvc.commitTx();
                            } else {
                                logger.error("Non-matching HRID on merge attempt");
                                res = false;
                            }
                        } else {
View Full Code Here

                                res = false;
                            }
                        } else {
                            i.setDataSourceId(healthRecordId);
                            em.merge(i);
                            persistenceSvc.commitTx();
                        }
                    }

                }
            } catch (Exception e) {
View Full Code Here

                        if (i.getPersonnelId() != null) {
                            SchoolPersonnel existingEntry = em.find(SchoolPersonnel.class, i.getPersonnelId());
                            if (existingEntry.getHealthRecordId().compareTo(healthRecordId) == 0) {
                                i.setDataSourceId(healthRecordId);
                                em.merge(i);
                                persistenceSvc.commitTx();
                            } else {
                                logger.error("Non-matching HRID on merge attempt");
                                res = false;
                            }
                        } else {
View Full Code Here

                                res = false;
                            }
                        } else {
                            i.setDataSourceId(healthRecordId);
                            em.merge(i);
                            persistenceSvc.commitTx();
                        }
                    }

                }
            } catch (Exception e) {
View Full Code Here

                        if (i.getMeetingId() != null) {
                            Meeting existingEntry = em.find(Meeting.class, i.getMeetingId());
                            if (existingEntry.getHealthRecordId().compareTo(healthRecordId) == 0) {
                                i.setDataSourceId(healthRecordId);
                                em.merge(i);
                                persistenceSvc.commitTx();
                            } else {
                                logger.error("Non-matching HRID on merge attempt");
                                res = false;
                            }
                        } else {
View Full Code Here

                                res = false;
                            }
                        } else {
                            i.setDataSourceId(healthRecordId);
                            em.merge(i);
                            persistenceSvc.commitTx();
                        }
                    }

                }
            } catch (Exception e) {
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.