Produced by Araxis Merge on 12/13/2018 10:35:27 AM Eastern Standard 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 | v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\persistent\hibernate | QueryAndParams.java | Fri Dec 7 17:36:34 2018 UTC |
| 2 | v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\persistent\hibernate | QueryAndParams.java | Thu Dec 13 15:05:37 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 122 |
| 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 | package go v.va.med.f w.persiste nt.hiberna te; | |
| 2 | ||
| 3 | import jav a.util.Has hMap; | |
| 4 | import jav a.util.Map ; | |
| 5 | ||
| 6 | /** | |
| 7 | * Simple class cont aining bot h a query (intended to contain named par ameters) | |
| 8 | * and a m apping of parameters to their respective values wh ich will b e used in | |
| 9 | * the que ry. | |
| 10 | * | |
| 11 | * @author DNS | |
| 12 | * | |
| 13 | */ | |
| 14 | public cla ss QueryAn dParams { | |
| 15 | ||
| 16 | // --------- ---------- -------- F ields | |
| 17 | ||
| 18 | pr ivate Stri ngBuilder query = ne w StringBu ilder(); | |
| 19 | pr ivate Map< String, Ob ject> para ms = new H ashMap<Str ing, Objec t>(); | |
| 20 | ||
| 21 | // --------- ---------- -------- C onstructor s | |
| 22 | ||
| 23 | pu blic Query AndParams( ) { | |
| 24 | } | |
| 25 | ||
| 26 | pu blic Query AndParams( String que ry) { | |
| 27 | this .query.app end(query) ; | |
| 28 | } | |
| 29 | ||
| 30 | pu blic Query AndParams( String que ry, Map<St ring, Obje ct> params ) { | |
| 31 | this (query); | |
| 32 | this .params = params; | |
| 33 | } | |
| 34 | ||
| 35 | // --------- ---------- -------- B usiness Me thods | |
| 36 | ||
| 37 | pu blic Query AndParams addParam(S tring s, O bject o) { | |
| 38 | para ms.put(s, o); | |
| 39 | retu rn this; | |
| 40 | } | |
| 41 | ||
| 42 | pu blic Query AndParams addParams( Map<String , Object> newParams) { | |
| 43 | para ms.putAll( newParams) ; | |
| 44 | retu rn this; | |
| 45 | } | |
| 46 | ||
| 47 | pu blic Query AndParams append(Str ing s) { | |
| 48 | quer y.append(s ); | |
| 49 | retu rn this; | |
| 50 | } | |
| 51 | ||
| 52 | // --------- ---------- -------- A ccessor Me thods | |
| 53 | ||
| 54 | pu blic Strin g getQuery () { | |
| 55 | retu rn query.t oString(); | |
| 56 | } | |
| 57 | ||
| 58 | pu blic Map<S tring, Obj ect> getPa rams() { | |
| 59 | retu rn params; | |
| 60 | } | |
| 61 | ||
| 62 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.