Produced by Araxis Merge on 6/9/2017 3:51:19 PM 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 | Fri Jun 9 19:51:19 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-svc-consent-mgmt\src\main\java\gov\va\nvap\svc\consentmgmt\stub\data | Organization.java | Fri Apr 21 20:03:30 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 212 |
| 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 | * To chan ge this te mplate, ch oose Tools | Templat es | |||||
| 3 | * and ope n the temp late in th e editor. | |||||
| 4 | */ | |||||
| 5 | ||||||
| 6 | package go v.va.nvap. svc.consen tmgmt.stub .data; | |||||
| 7 | ||||||
| 8 | import jav a.io.Seria lizable; | |||||
| 9 | import jav ax.persist ence.Basic ; | |||||
| 10 | import jav ax.persist ence.Colum n; | |||||
| 11 | import jav ax.persist ence.Entit y; | |||||
| 12 | import jav ax.persist ence.Gener atedValue; | |||||
| 13 | import jav ax.persist ence.Gener ationType; | |||||
| 14 | import jav ax.persist ence.Id; | |||||
| 15 | import jav ax.persist ence.Named Queries; | |||||
| 16 | import jav ax.persist ence.Named Query; | |||||
| 17 | import jav ax.persist ence.Table ; | |||||
| 18 | ||||||
| 19 | /** | |||||
| 20 | * | |||||
| 21 | * @author vhaislegb erb | |||||
| 22 | */ | |||||
| 23 | @Entity | |||||
| 24 | @Table(nam e = "ALLOW ED_ORG") | |||||
| 25 | @NamedQuer ies({ | |||||
| 26 | @Nam edQuery(na me = "Orga nization.f indAll", q uery = "SE LECT o FRO M Organiza tion o"), | |||||
| 27 | @Nam edQuery(na me = "Orga nization.f indByOrgId ", query = "SELECT o FROM Orga nization o WHERE o.o rgId = :or gId"), | |||||
| 28 | @Nam edQuery(na me = "Orga nization.f indByOrgOi d", query = "SELECT o FROM Org anization o WHERE o. orgOid = : orgOid"), | |||||
| 29 | @Nam edQuery(na me = "Orga nization.f indByOrgNa me", query = "SELECT o FROM Or ganization o WHERE o .orgName = :orgName" ), | |||||
| 30 | @Nam edQuery(na me = "Orga nization.f indByOrgCo ntact", qu ery = "SEL ECT o FROM Organizat ion o WHER E o.orgCon tact = :or gContact") , | |||||
| 31 | @Nam edQuery(na me = "Orga nization.f indByOorgP honeNumber ", query = "SELECT o FROM Orga nization o WHERE o.o orgPhoneNu mber = :oo rgPhoneNum ber"), | |||||
| 32 | @Nam edQuery(na me = "Orga nization.f indByActiv e", query = "SELECT o FROM Org anization o WHERE o. active = : active ord er by lowe r(o.orgNam e)"), | |||||
| 33 | @Nam edQuery(na me = "Orga nization.f indByActiv eOrgConsum erOnly", q uery = "SE LECT o FRO M Organiza tion o WHE RE o.activ e = :activ e AND o.or gConsumerO nly = :org ConsumerOn ly order b y lower(o. orgName)") , | |||||
| 34 | @N amedQuery( name = "Or ganization .getIsTrus tedClinica lSource", query = "S ELECT o.is TrustedCli nicalSourc e FROM Org anization o WHERE o. orgOid = : organizati onId")}) | |||||
| 35 | public cla ss Organiz ation impl ements Ser ializable { | |||||
| 36 | pr ivate stat ic final l ong serial VersionUID = 1L; | |||||
| 37 | ||||||
| 38 | @C olumn(name = "ORG_PH ONE_NUMBER ") | |||||
| 39 | pr ivate Stri ng oorgPho neNumber; | |||||
| 40 | @C olumn(name = "ORG_CO MMUNITY_ID _PREFIX") | |||||
| 41 | @B asic(optio nal = fals e) | |||||
| 42 | pr ivate Stri ng orgComm unityIdPre fix; | |||||
| 43 | @C olumn(name = "ORG_CO NTACT") | |||||
| 44 | pr ivate Stri ng orgCont act; | |||||
| 45 | @C olumn(name = "ORG_DO MAIN") | |||||
| 46 | @B asic(optio nal = fals e) | |||||
| 47 | pr ivate Stri ng orgDoma in; | |||||
| 48 | @I d | |||||
| 49 | @G eneratedVa lue(strate gy = Gener ationType. AUTO) | |||||
| 50 | @B asic(optio nal = fals e) | |||||
| 51 | @C olumn(name = "ORG_ID ") | |||||
| 52 | pr ivate Long orgId; | |||||
| 53 | @B asic(optio nal = fals e) | |||||
| 54 | @C olumn(name = "ORG_NA ME") | |||||
| 55 | pr ivate Stri ng orgName ; | |||||
| 56 | @C olumn(name = "ORG_NU MBER") | |||||
| 57 | @B asic(optio nal = fals e) | |||||
| 58 | pr ivate Stri ng orgNumb er; | |||||
| 59 | @B asic(optio nal = fals e) | |||||
| 60 | @C olumn(name = "ORG_OI D") | |||||
| 61 | pr ivate Stri ng orgOid; | |||||
| 62 | @B asic(optio nal = fals e) | |||||
| 63 | @C olumn(name = "ORG_CO NSUMER_ONL Y") | |||||
| 64 | pr ivate char orgConsum erOnly; | |||||
| 65 | @B asic(optio nal = fals e) | |||||
| 66 | @C olumn(name = "ACTIVE ") | |||||
| 67 | pr ivate char active; | |||||
| 68 | @Basic (optional = false) | |||||
| 69 | @C olumn(name = "IS_TRU STED_CLINI CAL_SOURCE ") | |||||
| 70 | pr ivate char isTrusted ClinicalSo urce; | |||||
| 71 | ||||||
| 72 | pu blic Organ ization() { | |||||
| 73 | } | |||||
| 74 | ||||||
| 75 | pu blic Organ ization(fi nal Long o rgId) { | |||||
| 76 | this .orgId = o rgId; | |||||
| 77 | } | |||||
| 78 | ||||||
| 79 | pu blic Organ ization(fi nal Long o rgId, fina l String o rgNumber, | |||||
| 80 | final String org Oid, final String or gName, fin al String orgDomain, | |||||
| 81 | final String org CommunityI dPrefix, f inal char active, fi nal char o rgConsumer Only, fina l char isT rustedClin icalSource ) { | |||||
| 82 | this .orgId = o rgId; | |||||
| 83 | this .orgNumber = orgNumb er; | |||||
| 84 | this .orgOid = orgOid; | |||||
| 85 | this .orgName = orgName; | |||||
| 86 | this .orgDomain = orgDoma in; | |||||
| 87 | this .orgCommun ityIdPrefi x = orgCom munityIdPr efix; | |||||
| 88 | this .orgConsum erOnly = o rgConsumer Only; | |||||
| 89 | this .active = active; | |||||
| 90 | th is.isTrust edClinical Source = i sTrustedCl inicalSour ce; | |||||
| 91 | } | |||||
| 92 | ||||||
| 93 | @O verride | |||||
| 94 | pu blic boole an equals( final Obje ct object) { | |||||
| 95 | // T ODO: Warni ng - this method won 't work in the case the id fie lds are | |||||
| 96 | // n ot set | |||||
| 97 | if ( !(object i nstanceof Organizati on)) { | |||||
| 98 | return false; | |||||
| 99 | } | |||||
| 100 | fina l Organiza tion other = (Organi zation) ob ject; | |||||
| 101 | if ( ((this.org Id == null ) && (othe r.orgId != null)) | |||||
| 102 | || ((thi s.orgId != null) && !this.orgI d.equals(o ther.orgId ))) { | |||||
| 103 | return false; | |||||
| 104 | } | |||||
| 105 | retu rn true; | |||||
| 106 | } | |||||
| 107 | ||||||
| 108 | pu blic boole an isOrgCo nsumerOnly () { | |||||
| 109 | retu rn (Charac ter.toUppe rCase(getO rgConsumer Only()) == 'Y'); | |||||
| 110 | } | |||||
| 111 | ||||||
| 112 | pu blic char getOrgCons umerOnly() { | |||||
| 113 | retu rn this.or gConsumerO nly; | |||||
| 114 | } | |||||
| 115 | ||||||
| 116 | pu blic char getIsTrust edClinical Source() { | |||||
| 117 | retu rn this.is TrustedCli nicalSourc e; | |||||
| 118 | } | |||||
| 119 | ||||||
| 120 | pu blic char getActive( ) { | |||||
| 121 | retu rn this.ac tive; | |||||
| 122 | } | |||||
| 123 | ||||||
| 124 | pu blic Strin g getOorgP honeNumber () { | |||||
| 125 | retu rn this.oo rgPhoneNum ber; | |||||
| 126 | } | |||||
| 127 | ||||||
| 128 | pu blic Strin g getOrgCo mmunityIdP refix() { | |||||
| 129 | retu rn this.or gCommunity IdPrefix; | |||||
| 130 | } | |||||
| 131 | ||||||
| 132 | pu blic Strin g getOrgCo ntact() { | |||||
| 133 | retu rn this.or gContact; | |||||
| 134 | } | |||||
| 135 | ||||||
| 136 | pu blic Strin g getOrgDo main() { | |||||
| 137 | retu rn this.or gDomain; | |||||
| 138 | } | |||||
| 139 | ||||||
| 140 | pu blic Long getOrgId() { | |||||
| 141 | retu rn this.or gId; | |||||
| 142 | } | |||||
| 143 | ||||||
| 144 | pu blic Strin g getOrgNa me() { | |||||
| 145 | retu rn this.or gName; | |||||
| 146 | } | |||||
| 147 | ||||||
| 148 | pu blic Strin g getOrgNu mber() { | |||||
| 149 | retu rn this.or gNumber; | |||||
| 150 | } | |||||
| 151 | ||||||
| 152 | pu blic Strin g getOrgOi d() { | |||||
| 153 | retu rn this.or gOid; | |||||
| 154 | } | |||||
| 155 | ||||||
| 156 | @O verride | |||||
| 157 | pu blic int h ashCode() { | |||||
| 158 | int hash = 0; | |||||
| 159 | hash += (this. orgId != n ull ? this .orgId.has hCode() : 0); | |||||
| 160 | retu rn hash; | |||||
| 161 | } | |||||
| 162 | ||||||
| 163 | pu blic void setOrgCons umerOnly(f inal char orgConsume rOnly) { | |||||
| 164 | this .orgConsum erOnly = o rgConsumer Only; | |||||
| 165 | } | |||||
| 166 | ||||||
| 167 | public void setI sTrustedCl inicalSour ce(final c har isTrus tedClinica lSource) { | |||||
| 168 | this .isTrusted ClinicalSo urce = isT rustedClin icalSource ; | |||||
| 169 | } | |||||
| 170 | ||||||
| 171 | pu blic void setActive( final char active) { | |||||
| 172 | this .active = active; | |||||
| 173 | } | |||||
| 174 | ||||||
| 175 | pu blic void setOrgComm unityIdPre fix(final String org CommunityI dPrefix) { | |||||
| 176 | this .orgCommun ityIdPrefi x = orgCom munityIdPr efix; | |||||
| 177 | } | |||||
| 178 | ||||||
| 179 | pu blic void setOrgCont act(final String org Contact) { | |||||
| 180 | this .orgContac t = orgCon tact; | |||||
| 181 | } | |||||
| 182 | ||||||
| 183 | pu blic void setOrgDoma in(final S tring orgD omain) { | |||||
| 184 | this .orgDomain = orgDoma in; | |||||
| 185 | } | |||||
| 186 | ||||||
| 187 | pu blic void setOrgId(f inal Long orgId) { | |||||
| 188 | this .orgId = o rgId; | |||||
| 189 | } | |||||
| 190 | ||||||
| 191 | pu blic void setOrgName (final Str ing orgNam e) { | |||||
| 192 | this .orgName = orgName; | |||||
| 193 | } | |||||
| 194 | ||||||
| 195 | pu blic void setOrgNumb er(final S tring orgN umber) { | |||||
| 196 | this .orgNumber = orgNumb er; | |||||
| 197 | } | |||||
| 198 | ||||||
| 199 | pu blic void setOrgOid( final Stri ng orgOid) { | |||||
| 200 | this .orgOid = orgOid; | |||||
| 201 | } | |||||
| 202 | ||||||
| 203 | pu blic void setOrgPhon eNumber(fi nal String oorgPhone Number) { | |||||
| 204 | this .oorgPhone Number = o orgPhoneNu mber; | |||||
| 205 | } | |||||
| 206 | ||||||
| 207 | @O verride | |||||
| 208 | pu blic Strin g toString () { | |||||
| 209 | retu rn "gov.va .med.vler. nhin.vap.p ip.entitie s.Organiza tion[orgId =" | |||||
| 210 | + this.o rgId + "]" ; | |||||
| 211 | } | |||||
| 212 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.