Produced by Araxis Merge on 6/9/2017 3:49:48 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:49:48 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-client\src\main\java\gov\va\nvap\service\auth | ServiceAudit.java | Fri Apr 21 20:03:26 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 140 |
| 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 | package go v.va.nvap. service.au th; | |||||
| 6 | ||||||
| 7 | ||||||
| 8 | import jav a.io.Seria lizable; | |||||
| 9 | import jav a.util.Dat e; | |||||
| 10 | import jav ax.persist ence.Basic ; | |||||
| 11 | import jav ax.persist ence.Colum n; | |||||
| 12 | import jav ax.persist ence.Entit y; | |||||
| 13 | import jav ax.persist ence.Gener atedValue; | |||||
| 14 | import jav ax.persist ence.Gener ationType; | |||||
| 15 | import jav ax.persist ence.Id; | |||||
| 16 | import jav ax.persist ence.Named Queries; | |||||
| 17 | import jav ax.persist ence.Named Query; | |||||
| 18 | import jav ax.persist ence.Seque nceGenerat or; | |||||
| 19 | import jav ax.persist ence.Table ; | |||||
| 20 | import jav ax.persist ence.Tempo ral; | |||||
| 21 | import jav ax.persist ence.Tempo ralType; | |||||
| 22 | ||||||
| 23 | /** | |||||
| 24 | * | |||||
| 25 | * @author Elan | |||||
| 26 | */ | |||||
| 27 | @Entity | |||||
| 28 | @Table(nam e = "Servi ce_Audit") | |||||
| 29 | @NamedQuer ies({ | |||||
| 30 | ||||||
| 31 | @Name dQuery(nam e = "Servi ceAudit.fi ndServiceA uditByCN", query = " SELECT c F ROM Servic eAudit c W HERE c.cn = :cn orde r by c.eve ntDate des c"), | |||||
| 32 | @Name dQuery(nam e = "Servi ceAudit.fi ndServiceA uditByWebS ervice", q uery = "SE LECT c FRO M ServiceA udit c WHE RE c.webSe rvice = :w ebService order by c .eventDate desc"), | |||||
| 33 | @Name dQuery(nam e = "Servi ceAudit.fi ndDistinct WebService s", query = "SELECT DISTINCT c .webServic e FROM Ser viceAudit c ORDER BY c.webServ ice" ), | |||||
| 34 | @Name dQuery(nam e = "Servi ceAudit.fi ndDistinct CallByWebS ervice", q uery = "SE LECT DISTI NCT c.call FROM Serv iceAudit c WHERE c.w ebService = :webServ ice ORDER BY c.call" ) | |||||
| 35 | }) | |||||
| 36 | public cla ss Service Audit imp lements Se rializable { | |||||
| 37 | @Id | |||||
| 38 | @Seque nceGenerat or(name = "ServiceAu ditSequenc e", sequen ceName = " Service_Au dit_SEQ", allocation Size = 1) | |||||
| 39 | @Gener atedValue( strategy = Generatio nType.SEQU ENCE, gene rator = "S erviceAudi tSequence" ) | |||||
| 40 | @Basic (optional = false) | |||||
| 41 | @Colum n(name = " ID") | |||||
| 42 | privat e Long ID; | |||||
| 43 | @Basic (optional = false) | |||||
| 44 | @Colum n(name = " WEB_SERVIC E") | |||||
| 45 | privat e String w ebService; | |||||
| 46 | @Basic (optional = false) | |||||
| 47 | @Colum n(name = " call") | |||||
| 48 | privat e String c all; | |||||
| 49 | @Basic (optional = false) | |||||
| 50 | @Colum n(name = " EVENT_DATE ") | |||||
| 51 | @Tempo ral(Tempor alType.TIM ESTAMP) | |||||
| 52 | privat e Date eve ntDate; | |||||
| 53 | @Basic (optional = false) | |||||
| 54 | @Colum n(name = " ip") | |||||
| 55 | privat e String i p; | |||||
| 56 | @Basic (optional = false) | |||||
| 57 | @Colum n(name = " cn") | |||||
| 58 | privat e String c n; | |||||
| 59 | @Basic (optional = false) | |||||
| 60 | @Colum n(name = " authorized ") | |||||
| 61 | privat e int auth orized; | |||||
| 62 | @Basic (optional = true) | |||||
| 63 | @Colum n(name = " SUCCESS") | |||||
| 64 | privat e Integer success; | |||||
| 65 | @Basic (optional = true) | |||||
| 66 | @Colum n(name = " DURATION") | |||||
| 67 | privat e Integer duration; //stored a s millisec onds | |||||
| 68 | ||||||
| 69 | public Long getI D() { | |||||
| 70 | re turn ID; | |||||
| 71 | } | |||||
| 72 | ||||||
| 73 | public void setI D(Long ID) { | |||||
| 74 | th is.ID = ID ; | |||||
| 75 | } | |||||
| 76 | ||||||
| 77 | public String ge tWebServic e() { | |||||
| 78 | re turn webSe rvice; | |||||
| 79 | } | |||||
| 80 | ||||||
| 81 | public void setW ebService( String ser vice) { | |||||
| 82 | th is.webServ ice = serv ice; | |||||
| 83 | } | |||||
| 84 | ||||||
| 85 | public String ge tCall() { | |||||
| 86 | re turn call; | |||||
| 87 | } | |||||
| 88 | ||||||
| 89 | public void setC all(String call) { | |||||
| 90 | th is.call = call; | |||||
| 91 | } | |||||
| 92 | ||||||
| 93 | public Date getE ventDate() { | |||||
| 94 | re turn event Date; | |||||
| 95 | } | |||||
| 96 | ||||||
| 97 | public void setE ventDate(D ate eventD ate) { | |||||
| 98 | th is.eventDa te = event Date; | |||||
| 99 | } | |||||
| 100 | ||||||
| 101 | public String ge tIp() { | |||||
| 102 | re turn ip; | |||||
| 103 | } | |||||
| 104 | ||||||
| 105 | public void setI p(String i p) { | |||||
| 106 | th is.ip = ip ; | |||||
| 107 | } | |||||
| 108 | ||||||
| 109 | public String ge tCN() { | |||||
| 110 | re turn cn; | |||||
| 111 | } | |||||
| 112 | ||||||
| 113 | public void setC N(String cn) { | |||||
| 114 | th is.cn = cn ; | |||||
| 115 | } | |||||
| 116 | ||||||
| 117 | public boolean g etAuthoriz ed() { | |||||
| 118 | re turn autho rized==1; | |||||
| 119 | } | |||||
| 120 | ||||||
| 121 | public void setA uthorized( boolean au th) { | |||||
| 122 | th is.authori zed = (aut h)?1:0; | |||||
| 123 | } | |||||
| 124 | ||||||
| 125 | public Integer g etSuccess( ) { | |||||
| 126 | re turn succe ss; | |||||
| 127 | } | |||||
| 128 | ||||||
| 129 | public void setS uccess(Int eger succe ss) { | |||||
| 130 | th is.success = success ; | |||||
| 131 | } | |||||
| 132 | ||||||
| 133 | public Integer g etDuration () { | |||||
| 134 | re turn durat ion; | |||||
| 135 | } | |||||
| 136 | ||||||
| 137 | public void setD uration(In teger dura tion) { | |||||
| 138 | th is.duratio n = durati on; | |||||
| 139 | } | |||||
| 140 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.