Produced by Araxis Merge on 6/9/2017 3:51:17 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:17 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\schedule | ScheduleDAO.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 | 53 |
| 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.nvap. svc.consen tmgmt.sche dule; | |||||
| 2 | ||||||
| 3 | import gov .va.nvap.s vc.consent mgmt.stub. data.Sched ule; | |||||
| 4 | import jav a.util.Dat e; | |||||
| 5 | import jav ax.persist ence.Entit yManager; | |||||
| 6 | import jav ax.persist ence.NoRes ultExcepti on; | |||||
| 7 | import jav ax.persist ence.Persi stenceCont ext; | |||||
| 8 | import jav ax.persist ence.Query ; | |||||
| 9 | import org .springfra mework.tra nsaction.a nnotation. Transactio nal; | |||||
| 10 | ||||||
| 11 | /** | |||||
| 12 | * | |||||
| 13 | * @author Elan | |||||
| 14 | * @since 07/05/2016 | |||||
| 15 | */ | |||||
| 16 | public cla ss Schedul eDAO { | |||||
| 17 | ||||||
| 18 | /** | |||||
| 19 | * Ent ity Manage r instance . | |||||
| 20 | */ | |||||
| 21 | @Persi stenceCont ext | |||||
| 22 | privat e EntityMa nager em; | |||||
| 23 | ||||||
| 24 | @Trans actional | |||||
| 25 | public Boolean c reate(fina l String t ype) { | |||||
| 26 | tr y { | |||||
| 27 | Schedule s = new S chedule(); | |||||
| 28 | s.setEve ntDate(new Date()); | |||||
| 29 | s.setTyp e(type); | |||||
| 30 | this.em. persist(s) ; | |||||
| 31 | } catch (fin al Excepti on ex) { | |||||
| 32 | return f alse; | |||||
| 33 | } | |||||
| 34 | re turn true; | |||||
| 35 | } | |||||
| 36 | ||||||
| 37 | public Boolean c heckDaily( String typ e) { | |||||
| 38 | fi nal Query query = th is.em.crea teNamedQue ry("Schedu le.checkTo day").setP arameter(" type", typ e); | |||||
| 39 | tr y { | |||||
| 40 | query.ge tSingleRes ult(); | |||||
| 41 | return t rue; | |||||
| 42 | } catch (NoR esultExcep tion e) { | |||||
| 43 | return f alse; | |||||
| 44 | } | |||||
| 45 | } | |||||
| 46 | ||||||
| 47 | /** | |||||
| 48 | * Set the entit y manager (Injected by Spring) . | |||||
| 49 | */ | |||||
| 50 | public void setE ntityManag er(final E ntityManag er em) { | |||||
| 51 | th is.em = em ; | |||||
| 52 | } | |||||
| 53 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.