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 | DAOOperations.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 | DAOOperations.java | Mon Jun 10 19:27:47 2019 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 934 |
| 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; | |
| 5 | ||
| 6 | import jav a.io.Seria lizable; | |
| 7 | import jav a.util.Col lection; | |
| 8 | import jav a.util.Ite rator; | |
| 9 | import jav a.util.Lis t; | |
| 10 | import jav a.util.Map ; | |
| 11 | ||
| 12 | import jav ax.persist ence.Flush ModeType; | |
| 13 | ||
| 14 | import org .springfra mework.bea ns.BeansEx ception; | |
| 15 | import org .springfra mework.bea ns.factory .BeanFacto ry; | |
| 16 | import org .springfra mework.dao .DataAcces sException ; | |
| 17 | import org .springfra mework.jdb c.support. SQLExcepti onTranslat or; | |
| 18 | ||
| 19 | import gov .va.med.fw .persisten t.hibernat e.Abstract DAOAction; | |
| 20 | import gov .va.med.fw .persisten t.hibernat e.QueryAnd Params; | |
| 21 | ||
| 22 | /** | |
| 23 | * Project : Framewor k | |
| 24 | * | |
| 25 | * @author DN S
|
|
| 26 | * @versio n 1.0 | |
| 27 | */ | |
| 28 | public int erface DAO Operations extends D AO { | |
| 29 | ||
| 30 | /* * | |
| 31 | * Executes a generic data base operation | |
| 32 | * | |
| 33 | * @param ac tion | |
| 34 | * An actio n to be ex ecuted in a session | |
| 35 | * @return A return va lue from a n action | |
| 36 | * @throws D AOExceptio n | |
| 37 | * thrown if failed to execute an action | |
| 38 | * / | |
| 39 | pu blic Objec t execute( AbstractDA OAction ac tion) thro ws DAOExce ption; | |
| 40 | ||
| 41 | /* * | |
| 42 | * Clear all data in t he current session | |
| 43 | * | |
| 44 | * @throws D AOExceptio n | |
| 45 | * Thrown if failed to clear a sesion | |
| 46 | * / | |
| 47 | pu blic void clear() th rows DAOEx ception; | |
| 48 | ||
| 49 | /* * | |
| 50 | * Closes an iterator of result set genera ted from a database operation | |
| 51 | * | |
| 52 | * @param it | |
| 53 | * An itera tor to be closed | |
| 54 | * @throws D AOExceptio n | |
| 55 | * Thrown if failed to close a n iterator | |
| 56 | * / | |
| 57 | pu blic void closeItera tor(Iterat or<?> it) throws DAO Exception; | |
| 58 | ||
| 59 | /* * | |
| 60 | * Check if an entity exist in t he Hiberna te session | |
| 61 | * | |
| 62 | * @param en tity | |
| 63 | * An entit y to check for exist ence in a session | |
| 64 | * @return t rue if an entity is in the ses sion. fals e otherwis e | |
| 65 | * @throws D AOExceptio n | |
| 66 | * thrown if failed to check f or an enti ty | |
| 67 | * / | |
| 68 | // public bo olean cont ains(Objec t entity) throws DAO Exception; | |
| 69 | /* * | |
| 70 | * Deletes a collectio n of entit ies from a database | |
| 71 | * | |
| 72 | * @param en tities | |
| 73 | * A collec tion to be deleted | |
| 74 | * @throws D AOExceptio n | |
| 75 | * thrown if failed to delete from a dat abase | |
| 76 | * / | |
| 77 | pu blic void deleteAll( Collection <?> entiti es) throws DAOExcept ion; | |
| 78 | ||
| 79 | /* * | |
| 80 | * Evicts an entity fr om a sessi on. This m ethod deta ches a per sistent en tity | |
| 81 | * from a se ssion. | |
| 82 | * | |
| 83 | * @param en tity | |
| 84 | * An entit y to be de tach from a session | |
| 85 | * @throws D AOExceptio n | |
| 86 | * Thrown if failed to detach an entity from a ses sion | |
| 87 | * / | |
| 88 | pu blic void evict(Obje ct entity) throws DA OException ; | |
| 89 | ||
| 90 | /* * | |
| 91 | * Execute t he action specified by the giv en action object wit hin a Sess ion. | |
| 92 | * | |
| 93 | * @param ac tion | |
| 94 | * callback object th at specifi es the Hib ernate act ion | |
| 95 | * @param ex poseNative Session | |
| 96 | * whether to expose the native Hibernate Session t o callback | |
| 97 | * code | |
| 98 | * @return a result ob ject retur ned by the action, o r null | |
| 99 | * @throws D AOExceptio n | |
| 100 | * in case of Hibern ate errors | |
| 101 | * / | |
| 102 | pu blic Objec t execute( AbstractDA OAction ac tion, bool ean expose NativeSess ion) | |
| 103 | throws DAOExcept ion; | |
| 104 | ||
| 105 | /* * | |
| 106 | * Execute t he action specified by the giv en action object wit hin a Sess ion. | |
| 107 | * | |
| 108 | * @param ac tion | |
| 109 | * callback object th at specifi es the Hib ernate act ion | |
| 110 | * @param ex poseNative Session | |
| 111 | * whether to expose the native Hibernate Session t o callback | |
| 112 | * code | |
| 113 | * @return a result ob ject retur ned by the action, o r null | |
| 114 | * @throws D AOExceptio n | |
| 115 | * in case of Hibern ate errors | |
| 116 | * / | |
| 117 | pu blic List executeFin d(Abstract DAOAction action) th rows DAOEx ception; | |
| 118 | ||
| 119 | /* * | |
| 120 | * Execute a query for persisten t instance s, binding one value to a "?" | |
| 121 | * parameter in the qu ery string | |
| 122 | * | |
| 123 | * @param qu eryString | |
| 124 | * A query expression | |
| 125 | * @param va lue | |
| 126 | * A value of a param eter | |
| 127 | * @return A result en tity | |
| 128 | * @throws D AOExceptio n | |
| 129 | * in case of Hibern ate errors | |
| 130 | * / | |
| 131 | pu blic List find(Strin g queryStr ing, Objec t value) t hrows DAOE xception; | |
| 132 | ||
| 133 | /* * | |
| 134 | * Execute a query for persisten t instance s, binding an array of values to | |
| 135 | * "?" param eters in t he query s tring | |
| 136 | * | |
| 137 | * @param qu eryString | |
| 138 | * A query expression | |
| 139 | * @param va lues | |
| 140 | * An array of parame ter values | |
| 141 | * @return A result en tity | |
| 142 | * @throws D AOExceptio n | |
| 143 | * in case of Hibern ate errors | |
| 144 | * / | |
| 145 | // public Li st find(St ring query String, Ob ject[] val ues) throw s | |
| 146 | // DAOExcept ion; | |
| 147 | /* * | |
| 148 | * @param qu eryName | |
| 149 | * @param pa ramName | |
| 150 | * @param va lue | |
| 151 | * @return | |
| 152 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 153 | * / | |
| 154 | pu blic List findByName dParam(Str ing queryN ame, Strin g paramNam e, Object value) | |
| 155 | throws DAOExcept ion; | |
| 156 | ||
| 157 | /* * | |
| 158 | * @param qu eryString | |
| 159 | * @param pa ramNames | |
| 160 | * @param va lues | |
| 161 | * @return | |
| 162 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 163 | * / | |
| 164 | pu blic List findByName dParams(St ring query String, St ring[] par amNames, O bject[] va lues) | |
| 165 | throws DAOExcept ion; | |
| 166 | ||
| 167 | /* * | |
| 168 | * @param qu eryName | |
| 169 | * @param va lue | |
| 170 | * @return | |
| 171 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 172 | * / | |
| 173 | pu blic List findByName dQuery(Str ing queryN ame, Objec t value) t hrows DAOE xception; | |
| 174 | ||
| 175 | /* * | |
| 176 | * @param qu eryName | |
| 177 | * @param va lues | |
| 178 | * @return | |
| 179 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 180 | * / | |
| 181 | // public Li st findByN amedQuery( String que ryName, Ob ject[] val ues) throw s | |
| 182 | // DAOExcept ion; | |
| 183 | /* * | |
| 184 | * @param qu eryName | |
| 185 | * @param pa ramName | |
| 186 | * @param va lue | |
| 187 | * @return | |
| 188 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 189 | * / | |
| 190 | pu blic List findByName dQueryAndN amedParam( String que ryName, St ring param Name, Obje ct value) | |
| 191 | throws DAOExcept ion; | |
| 192 | ||
| 193 | /* * | |
| 194 | * Execute a named que ry for per sistent in stances, b inding a n umber of | |
| 195 | * values to ":" named parameter s in the q uery strin g. A named query is | |
| 196 | * defined i n a Hibern ate mappin g file | |
| 197 | * | |
| 198 | * @param qu eryName | |
| 199 | * the name of a Hibe rnate quer y in a map ping file | |
| 200 | * @param pa ramNames | |
| 201 | * the name s of the p arameters | |
| 202 | * @param va lues | |
| 203 | * the valu es of the parameters | |
| 204 | * @return a List cont aining 0 o r more per sistent in stances | |
| 205 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 206 | * / | |
| 207 | pu blic List findByName dQueryAndN amedParam( String que ryName, St ring[] par amNames, O bject[] va lues) | |
| 208 | throws DAOExcept ion; | |
| 209 | ||
| 210 | /* * | |
| 211 | * @param qu eryName | |
| 212 | * @param va lueBean | |
| 213 | * @return | |
| 214 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 215 | * / | |
| 216 | pu blic List findByName dQueryAndV alueBean(S tring quer yName, Obj ect valueB ean) | |
| 217 | throws DAOExcept ion; | |
| 218 | ||
| 219 | /* * | |
| 220 | * @param qu eryString | |
| 221 | * @param va lueBean | |
| 222 | * @return | |
| 223 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 224 | * / | |
| 225 | pu blic List findByValu eBean(Stri ng querySt ring, Obje ct valueBe an) throws DAOExcept ion; | |
| 226 | ||
| 227 | /* * | |
| 228 | * Return a Query Stri ng given a named que ry name. | |
| 229 | * | |
| 230 | * @param qu eryName | |
| 231 | * @return S tring - a Query stri ng | |
| 232 | * @throws D AOExceptio n | |
| 233 | * / | |
| 234 | pu blic Strin g getQuery String(Str ing queryN ame) throw s DAOExcep tion; | |
| 235 | ||
| 236 | /* * | |
| 237 | * @param qu eryName | |
| 238 | * @param pa ramNames | |
| 239 | * @param va lues | |
| 240 | * @return | |
| 241 | * @throws D AOExceptio n | |
| 242 | * / | |
| 243 | pu blic Integ er scroll( Scrollable Callback c allback, Q ueryInfo q uery, | |
| 244 | QueryI ncrementTr acker trac ker) throw s DAOExcep tion; | |
| 245 | ||
| 246 | /* * | |
| 247 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 248 | * / | |
| 249 | // public vo id flush() throws DA OException ; | |
| 250 | /* * | |
| 251 | * @return | |
| 252 | * / | |
| 253 | pu blic Strin g[] getFil terNames() ; | |
| 254 | ||
| 255 | /* * | |
| 256 | * @return | |
| 257 | * / | |
| 258 | pu blic Flush ModeType g etFlushMod e(); | |
| 259 | ||
| 260 | /* * | |
| 261 | * @return | |
| 262 | * / | |
| 263 | pu blic SQLEx ceptionTra nslator ge tJdbcExcep tionTransl ator(); | |
| 264 | ||
| 265 | /* * | |
| 266 | * @return | |
| 267 | * / | |
| 268 | pu blic Strin g getQuery CacheRegio n(); | |
| 269 | ||
| 270 | /* * | |
| 271 | * @param pr oxy | |
| 272 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 273 | * / | |
| 274 | pu blic void initialize (Object pr oxy) throw s DAOExcep tion; | |
| 275 | ||
| 276 | /* * | |
| 277 | * @return | |
| 278 | * / | |
| 279 | pu blic boole an isAllow Create(); | |
| 280 | ||
| 281 | /* * | |
| 282 | * @return | |
| 283 | * / | |
| 284 | pu blic boole an isAlway sUseNewSes sion(); | |
| 285 | ||
| 286 | /* * | |
| 287 | * @return | |
| 288 | * / | |
| 289 | pu blic boole an isCache Queries(); | |
| 290 | ||
| 291 | /* * | |
| 292 | * @return | |
| 293 | * / | |
| 294 | pu blic boole an isCheck WriteOpera tions(); | |
| 295 | ||
| 296 | /* * | |
| 297 | * @return | |
| 298 | * / | |
| 299 | pu blic boole an isExpos eNativeSes sion(); | |
| 300 | ||
| 301 | /* * | |
| 302 | * @param qu eryString | |
| 303 | * @return | |
| 304 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 305 | * / | |
| 306 | pu blic Itera tor iterat e(String q ueryString ) throws D AOExceptio n; | |
| 307 | ||
| 308 | /* * | |
| 309 | * @param qu eryString | |
| 310 | * @param va lue | |
| 311 | * @return | |
| 312 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 313 | * / | |
| 314 | pu blic Itera tor iterat e(String q ueryString , Object v alue) thro ws DAOExce ption; | |
| 315 | ||
| 316 | /* * | |
| 317 | * @param qu eryString | |
| 318 | * @param va lues | |
| 319 | * @return | |
| 320 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 321 | * / | |
| 322 | pu blic Itera tor iterat e(String q ueryString , Object[] values) t hrows DAOE xception; | |
| 323 | ||
| 324 | /* * | |
| 325 | * @param en tityClass | |
| 326 | * @param id | |
| 327 | * @return | |
| 328 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 329 | * / | |
| 330 | pu blic Objec t load(Cla ss entityC lass, Seri alizable i d) throws DAOExcepti on; | |
| 331 | ||
| 332 | /* * | |
| 333 | * @param en tity | |
| 334 | * @param id | |
| 335 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 336 | * / | |
| 337 | pu blic void load(Objec t entity, Serializab le id) thr ows DAOExc eption; | |
| 338 | ||
| 339 | /* * | |
| 340 | * @param en tityName | |
| 341 | * @param id | |
| 342 | * @return | |
| 343 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 344 | * / | |
| 345 | pu blic Objec t load(Str ing entity Name, Seri alizable i d) throws DAOExcepti on; | |
| 346 | ||
| 347 | /* * | |
| 348 | * @param en tityClass | |
| 349 | * @return | |
| 350 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 351 | * / | |
| 352 | pu blic List loadAll(Cl ass entity Class) thr ows DAOExc eption; | |
| 353 | ||
| 354 | /* * | |
| 355 | * @param en tity | |
| 356 | * @return | |
| 357 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 358 | * / | |
| 359 | // public Ob ject merge (Object en tity) thro ws DAOExce ption; | |
| 360 | /* * | |
| 361 | * @param en tityName | |
| 362 | * @param en tity | |
| 363 | * @return | |
| 364 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 365 | * / | |
| 366 | pu blic Objec t merge(St ring entit yName, Obj ect entity ) throws D AOExceptio n; | |
| 367 | ||
| 368 | /* * | |
| 369 | * @param en tity | |
| 370 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 371 | * / | |
| 372 | // public vo id refresh (Object en tity) thro ws DAOExce ption; | |
| 373 | /* * | |
| 374 | * @param al lowCreate | |
| 375 | * / | |
| 376 | pu blic void setAllowCr eate(boole an allowCr eate); | |
| 377 | ||
| 378 | /* * | |
| 379 | * @param al waysUseNew Session | |
| 380 | * / | |
| 381 | pu blic void setAlwaysU seNewSessi on(boolean alwaysUse NewSession ); | |
| 382 | ||
| 383 | /* * | |
| 384 | * @param be anFactory | |
| 385 | * @throws o rg.springf ramework.b eans.Beans Exception | |
| 386 | * / | |
| 387 | pu blic void setBeanFac tory(BeanF actory bea nFactory) throws Bea nsExceptio n; | |
| 388 | ||
| 389 | /* * | |
| 390 | * @param ca cheQueries | |
| 391 | * / | |
| 392 | pu blic void setCacheQu eries(bool ean cacheQ ueries); | |
| 393 | ||
| 394 | /* * | |
| 395 | * @param ch eckWriteOp erations | |
| 396 | * / | |
| 397 | pu blic void setCheckWr iteOperati ons(boolea n checkWri teOperatio ns); | |
| 398 | ||
| 399 | /* * | |
| 400 | * @param en tityInterc eptorBeanN ame | |
| 401 | * / | |
| 402 | pu blic void setEntityI nterceptor BeanName(S tring enti tyIntercep torBeanNam e); | |
| 403 | ||
| 404 | /* * | |
| 405 | * @param ex poseNative Session | |
| 406 | * / | |
| 407 | pu blic void setExposeN ativeSessi on(boolean exposeNat iveSession ); | |
| 408 | ||
| 409 | /* * | |
| 410 | * @param fi lter | |
| 411 | * / | |
| 412 | pu blic void setFilterN ame(String filter); | |
| 413 | ||
| 414 | /* * | |
| 415 | * @param fi lterNames | |
| 416 | * / | |
| 417 | ||
| 418 | pu blic void setFilterN ames(Strin g[] filter Names); | |
| 419 | ||
| 420 | /* * | |
| 421 | * @param fl ushMode | |
| 422 | * / | |
| 423 | pu blic void setFlushMo de(FlushMo deType flu shModeType ); | |
| 424 | ||
| 425 | /* * | |
| 426 | * @param co nstantName | |
| 427 | * / | |
| 428 | pu blic void setFlushMo deName(Str ing consta ntName); | |
| 429 | ||
| 430 | /* * | |
| 431 | * @param jd bcExceptio nTranslato r | |
| 432 | * / | |
| 433 | pu blic void setJdbcExc eptionTran slator(SQL ExceptionT ranslator jdbcExcept ionTransla tor); | |
| 434 | ||
| 435 | /* * | |
| 436 | * @param qu eryCacheRe gion | |
| 437 | * / | |
| 438 | pu blic void setQueryCa cheRegion( String que ryCacheReg ion); | |
| 439 | ||
| 440 | /* * | |
| 441 | * @param en tity | |
| 442 | * @throws o rg.springf ramework.d ao.DAOExce ption | |
| 443 | * / | |
| 444 | pu blic Objec t update(O bject enti ty) throws DAOExcept ion; | |
| 445 | ||
| 446 | pu blic List find(Strin g query, i nt firstRe cord, int maxRecord, int fetch Size) | |
| 447 | throws DAOExcept ion; | |
| 448 | ||
| 449 | // public Li st find(St ring query , Object[] params, i nt firstRe cord, int | |
| 450 | // maxRecord , int fetc hSize) thr ows DAOExc eption; | |
| 451 | pu blic List find(Strin g query, S tring[] pa ramNames, Object[] p arams, int firstReco rd, | |
| 452 | int ma xRecord, i nt fetchSi ze) throws DAOExcept ion; | |
| 453 | ||
| 454 | pu blic List executeSQL Query(Quer yAndParams queryAndP arams) thr ows DAOExc eption; | |
| 455 | ||
| 456 | pu blic int b ulkUpdate( String que ry) throws DAOExcept ion; | |
| 457 | ||
| 458 | pu blic int b ulkUpdate( String que ry, Object [] paramet ers) throw s DAOExcep tion; | |
| 459 | ||
| 460 | pu blic void persist(Ob ject arg0) throws Da taAccessEx ception; | |
| 461 | ||
| 462 | pu blic void remove(Obj ect arg0) throws Dat aAccessExc eption; | |
| 463 | ||
| 464 | pu blic Objec t merge(Ob ject entit y) throws DataAccess Exception; | |
| 465 | ||
| 466 | pu blic List executeNam edSQLQuery (String qu eryName, M ap<String, Object> p arams) | |
| 467 | throws DAOExcept ion; | |
| 468 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.