Produced by Araxis Merge on 6/11/2019 10:54:13 AM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\persistent\hibernate | AbstractDAOAction.java | Wed May 29 15:26:04 2019 UTC |
| 2 | HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\persistent\hibernate | AbstractDAOAction.java | Mon Jun 10 19:27:47 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 130 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | /********* ********** ********** ********** ********** ********** ********* | |
| 2 | * Copyrii ght 2004 V HA. All ri ghts reser ved | |
| 3 | ********* ********** ********** ********** ********** ********** *********/ | |
| 4 | package go v.va.med.f w.persiste nt.hiberna te; | |
| 5 | ||
| 6 | import jav a.util.Map ; | |
| 7 | ||
| 8 | import jav ax.persist ence.Entit yManager; | |
| 9 | import jav ax.persist ence.Persi stenceExce ption; | |
| 10 | ||
| 11 | import org .hibernate .CallbackE xception; | |
| 12 | ||
| 13 | import gov .va.med.fw .persisten t.DAOExcep tion; | |
| 14 | ||
| 15 | /** | |
| 16 | * Impleme nts Hibern ateCallbac k interfac e to provi de more fl exibilitie s to a | |
| 17 | * caller to perform any persi stent oper ation usin g Hibernat e session. This | |
| 18 | * abstrac t class is intended to allow d erived cla sses to be configure d as a | |
| 19 | * spring managed be an so that its depen dencies an d resource s can be i njected | |
| 20 | * through an applic ation cont ext file i n XML form at. | |
| 21 | * | |
| 22 | * Project : Framewor k | |
| 23 | * | |
| 24 | * @author DN S
|
|
| 25 | * @versio n 1.0 | |
| 26 | */ | |
| 27 | public abs tract clas s Abstract DAOAction { | |
| 28 | pr ivate Map< String, Ob ject> cont extData; | |
| 29 | ||
| 30 | /* * | |
| 31 | * A default construct or | |
| 32 | * / | |
| 33 | pr otected Ab stractDAOA ction() { | |
| 34 | supe r(); | |
| 35 | } | |
| 36 | ||
| 37 | pr otected Ab stractDAOA ction(Map< String, Ob ject> cont extData) { | |
| 38 | supe r(); | |
| 39 | this .contextDa ta = conte xtData; | |
| 40 | } | |
| 41 | ||
| 42 | pu blic Objec t doInJpa( EntityMana ger entity Manager) t hrows Pers istenceExc eption { | |
| 43 | try { | |
| 44 | return execute(e ntityManag er); | |
| 45 | } ca tch (DAOEx ception e) { | |
| 46 | throw new Callba ckExceptio n(e); | |
| 47 | } | |
| 48 | } | |
| 49 | ||
| 50 | pr otected ab stract Obj ect execut e(EntityMa nager enti tyManager) throws DA OException ; | |
| 51 | ||
| 52 | /* * | |
| 53 | * @return R eturns the contextDa ta. | |
| 54 | * / | |
| 55 | pu blic Map<S tring, Obj ect> getCo ntextData( ) { | |
| 56 | retu rn context Data; | |
| 57 | } | |
| 58 | ||
| 59 | /* * | |
| 60 | * @param co ntextData | |
| 61 | * The cont extData to set. | |
| 62 | * / | |
| 63 | pu blic void setContext Data(Map<S tring, Obj ect> conte xtData) { | |
| 64 | this .contextDa ta = conte xtData; | |
| 65 | } | |
| 66 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.