001// 002// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 003// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> 004// Any modifications to this file will be lost upon recompilation of the source schema. 005// Generated on: 2018.12.10 at 03:02:30 PM PST 006// 007 008 009package org.microbean.jpa.jaxb; 010 011import java.util.ArrayList; 012import java.util.List; 013import javax.xml.bind.annotation.XmlAccessType; 014import javax.xml.bind.annotation.XmlAccessorType; 015import javax.xml.bind.annotation.XmlAttribute; 016import javax.xml.bind.annotation.XmlElement; 017import javax.xml.bind.annotation.XmlRootElement; 018import javax.xml.bind.annotation.XmlSchemaType; 019import javax.xml.bind.annotation.XmlType; 020import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 021import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 022 023 024/** 025 * <p>Java class for anonymous complex type. 026 * 027 * <p>The following schema fragment specifies the expected content contained within this class. 028 * 029 * <pre> 030 * <complexType> 031 * <complexContent> 032 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 033 * <sequence> 034 * <element name="persistence-unit" maxOccurs="unbounded"> 035 * <complexType> 036 * <complexContent> 037 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 038 * <sequence> 039 * <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 040 * <element name="provider" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 041 * <element name="jta-data-source" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 042 * <element name="non-jta-data-source" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 043 * <element name="mapping-file" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> 044 * <element name="jar-file" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> 045 * <element name="class" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> 046 * <element name="exclude-unlisted-classes" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> 047 * <element name="shared-cache-mode" type="{http://xmlns.jcp.org/xml/ns/persistence}persistence-unit-caching-type" minOccurs="0"/> 048 * <element name="validation-mode" type="{http://xmlns.jcp.org/xml/ns/persistence}persistence-unit-validation-mode-type" minOccurs="0"/> 049 * <element name="properties" minOccurs="0"> 050 * <complexType> 051 * <complexContent> 052 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 053 * <sequence> 054 * <element name="property" maxOccurs="unbounded" minOccurs="0"> 055 * <complexType> 056 * <complexContent> 057 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 058 * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 059 * <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 060 * </restriction> 061 * </complexContent> 062 * </complexType> 063 * </element> 064 * </sequence> 065 * </restriction> 066 * </complexContent> 067 * </complexType> 068 * </element> 069 * </sequence> 070 * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 071 * <attribute name="transaction-type" type="{http://xmlns.jcp.org/xml/ns/persistence}persistence-unit-transaction-type" /> 072 * </restriction> 073 * </complexContent> 074 * </complexType> 075 * </element> 076 * </sequence> 077 * <attribute name="version" use="required" type="{http://xmlns.jcp.org/xml/ns/persistence}versionType" fixed="2.2" /> 078 * </restriction> 079 * </complexContent> 080 * </complexType> 081 * </pre> 082 * 083 * 084 */ 085@XmlAccessorType(XmlAccessType.FIELD) 086@XmlType(name = "", propOrder = { 087 "persistenceUnit" 088}) 089@XmlRootElement(name = "persistence", namespace = "http://xmlns.jcp.org/xml/ns/persistence") 090public class Persistence { 091 092 @XmlElement(name = "persistence-unit", namespace = "http://xmlns.jcp.org/xml/ns/persistence", required = true) 093 protected List<Persistence.PersistenceUnit> persistenceUnit; 094 @XmlAttribute(name = "version", required = true) 095 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 096 protected String version; 097 098 /** 099 * Gets the value of the persistenceUnit property. 100 * 101 * <p> 102 * This accessor method returns a reference to the live list, 103 * not a snapshot. Therefore any modification you make to the 104 * returned list will be present inside the JAXB object. 105 * This is why there is not a <CODE>set</CODE> method for the persistenceUnit property. 106 * 107 * <p> 108 * For example, to add a new item, do as follows: 109 * <pre> 110 * getPersistenceUnit().add(newItem); 111 * </pre> 112 * 113 * 114 * <p> 115 * Objects of the following type(s) are allowed in the list 116 * {@link Persistence.PersistenceUnit } 117 * 118 * 119 */ 120 public List<Persistence.PersistenceUnit> getPersistenceUnit() { 121 if (persistenceUnit == null) { 122 persistenceUnit = new ArrayList<Persistence.PersistenceUnit>(); 123 } 124 return this.persistenceUnit; 125 } 126 127 /** 128 * Gets the value of the version property. 129 * 130 * @return 131 * possible object is 132 * {@link String } 133 * 134 */ 135 public String getVersion() { 136 if (version == null) { 137 return "2.2"; 138 } else { 139 return version; 140 } 141 } 142 143 /** 144 * Sets the value of the version property. 145 * 146 * @param value 147 * allowed object is 148 * {@link String } 149 * 150 */ 151 public void setVersion(String value) { 152 this.version = value; 153 } 154 155 156 /** 157 * 158 * 159 * Configuration of a persistence unit. 160 * 161 * 162 * 163 * <p>Java class for anonymous complex type. 164 * 165 * <p>The following schema fragment specifies the expected content contained within this class. 166 * 167 * <pre> 168 * <complexType> 169 * <complexContent> 170 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 171 * <sequence> 172 * <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 173 * <element name="provider" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 174 * <element name="jta-data-source" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 175 * <element name="non-jta-data-source" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 176 * <element name="mapping-file" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> 177 * <element name="jar-file" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> 178 * <element name="class" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> 179 * <element name="exclude-unlisted-classes" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> 180 * <element name="shared-cache-mode" type="{http://xmlns.jcp.org/xml/ns/persistence}persistence-unit-caching-type" minOccurs="0"/> 181 * <element name="validation-mode" type="{http://xmlns.jcp.org/xml/ns/persistence}persistence-unit-validation-mode-type" minOccurs="0"/> 182 * <element name="properties" minOccurs="0"> 183 * <complexType> 184 * <complexContent> 185 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 186 * <sequence> 187 * <element name="property" maxOccurs="unbounded" minOccurs="0"> 188 * <complexType> 189 * <complexContent> 190 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 191 * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 192 * <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 193 * </restriction> 194 * </complexContent> 195 * </complexType> 196 * </element> 197 * </sequence> 198 * </restriction> 199 * </complexContent> 200 * </complexType> 201 * </element> 202 * </sequence> 203 * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 204 * <attribute name="transaction-type" type="{http://xmlns.jcp.org/xml/ns/persistence}persistence-unit-transaction-type" /> 205 * </restriction> 206 * </complexContent> 207 * </complexType> 208 * </pre> 209 * 210 * 211 */ 212 @XmlAccessorType(XmlAccessType.FIELD) 213 @XmlType(name = "", propOrder = { 214 "description", 215 "provider", 216 "jtaDataSource", 217 "nonJtaDataSource", 218 "mappingFile", 219 "jarFile", 220 "clazz", 221 "excludeUnlistedClasses", 222 "sharedCacheMode", 223 "validationMode", 224 "properties" 225 }) 226 public static class PersistenceUnit { 227 228 @XmlElement(namespace = "http://xmlns.jcp.org/xml/ns/persistence") 229 protected String description; 230 @XmlElement(namespace = "http://xmlns.jcp.org/xml/ns/persistence") 231 protected String provider; 232 @XmlElement(name = "jta-data-source", namespace = "http://xmlns.jcp.org/xml/ns/persistence") 233 protected String jtaDataSource; 234 @XmlElement(name = "non-jta-data-source", namespace = "http://xmlns.jcp.org/xml/ns/persistence") 235 protected String nonJtaDataSource; 236 @XmlElement(name = "mapping-file", namespace = "http://xmlns.jcp.org/xml/ns/persistence") 237 protected List<String> mappingFile; 238 @XmlElement(name = "jar-file", namespace = "http://xmlns.jcp.org/xml/ns/persistence") 239 protected List<String> jarFile; 240 @XmlElement(name = "class", namespace = "http://xmlns.jcp.org/xml/ns/persistence") 241 protected List<String> clazz; 242 @XmlElement(name = "exclude-unlisted-classes", namespace = "http://xmlns.jcp.org/xml/ns/persistence", defaultValue = "true") 243 protected Boolean excludeUnlistedClasses; 244 @XmlElement(name = "shared-cache-mode", namespace = "http://xmlns.jcp.org/xml/ns/persistence") 245 @XmlSchemaType(name = "token") 246 protected PersistenceUnitCachingType sharedCacheMode; 247 @XmlElement(name = "validation-mode", namespace = "http://xmlns.jcp.org/xml/ns/persistence") 248 @XmlSchemaType(name = "token") 249 protected PersistenceUnitValidationModeType validationMode; 250 @XmlElement(namespace = "http://xmlns.jcp.org/xml/ns/persistence") 251 protected Persistence.PersistenceUnit.Properties properties; 252 @XmlAttribute(name = "name", required = true) 253 protected String name; 254 @XmlAttribute(name = "transaction-type") 255 protected PersistenceUnitTransactionType transactionType; 256 257 /** 258 * Gets the value of the description property. 259 * 260 * @return 261 * possible object is 262 * {@link String } 263 * 264 */ 265 public String getDescription() { 266 return description; 267 } 268 269 /** 270 * Sets the value of the description property. 271 * 272 * @param value 273 * allowed object is 274 * {@link String } 275 * 276 */ 277 public void setDescription(String value) { 278 this.description = value; 279 } 280 281 /** 282 * Gets the value of the provider property. 283 * 284 * @return 285 * possible object is 286 * {@link String } 287 * 288 */ 289 public String getProvider() { 290 return provider; 291 } 292 293 /** 294 * Sets the value of the provider property. 295 * 296 * @param value 297 * allowed object is 298 * {@link String } 299 * 300 */ 301 public void setProvider(String value) { 302 this.provider = value; 303 } 304 305 /** 306 * Gets the value of the jtaDataSource property. 307 * 308 * @return 309 * possible object is 310 * {@link String } 311 * 312 */ 313 public String getJtaDataSource() { 314 return jtaDataSource; 315 } 316 317 /** 318 * Sets the value of the jtaDataSource property. 319 * 320 * @param value 321 * allowed object is 322 * {@link String } 323 * 324 */ 325 public void setJtaDataSource(String value) { 326 this.jtaDataSource = value; 327 } 328 329 /** 330 * Gets the value of the nonJtaDataSource property. 331 * 332 * @return 333 * possible object is 334 * {@link String } 335 * 336 */ 337 public String getNonJtaDataSource() { 338 return nonJtaDataSource; 339 } 340 341 /** 342 * Sets the value of the nonJtaDataSource property. 343 * 344 * @param value 345 * allowed object is 346 * {@link String } 347 * 348 */ 349 public void setNonJtaDataSource(String value) { 350 this.nonJtaDataSource = value; 351 } 352 353 /** 354 * Gets the value of the mappingFile property. 355 * 356 * <p> 357 * This accessor method returns a reference to the live list, 358 * not a snapshot. Therefore any modification you make to the 359 * returned list will be present inside the JAXB object. 360 * This is why there is not a <CODE>set</CODE> method for the mappingFile property. 361 * 362 * <p> 363 * For example, to add a new item, do as follows: 364 * <pre> 365 * getMappingFile().add(newItem); 366 * </pre> 367 * 368 * 369 * <p> 370 * Objects of the following type(s) are allowed in the list 371 * {@link String } 372 * 373 * 374 */ 375 public List<String> getMappingFile() { 376 if (mappingFile == null) { 377 mappingFile = new ArrayList<String>(); 378 } 379 return this.mappingFile; 380 } 381 382 /** 383 * Gets the value of the jarFile property. 384 * 385 * <p> 386 * This accessor method returns a reference to the live list, 387 * not a snapshot. Therefore any modification you make to the 388 * returned list will be present inside the JAXB object. 389 * This is why there is not a <CODE>set</CODE> method for the jarFile property. 390 * 391 * <p> 392 * For example, to add a new item, do as follows: 393 * <pre> 394 * getJarFile().add(newItem); 395 * </pre> 396 * 397 * 398 * <p> 399 * Objects of the following type(s) are allowed in the list 400 * {@link String } 401 * 402 * 403 */ 404 public List<String> getJarFile() { 405 if (jarFile == null) { 406 jarFile = new ArrayList<String>(); 407 } 408 return this.jarFile; 409 } 410 411 /** 412 * Gets the value of the clazz property. 413 * 414 * <p> 415 * This accessor method returns a reference to the live list, 416 * not a snapshot. Therefore any modification you make to the 417 * returned list will be present inside the JAXB object. 418 * This is why there is not a <CODE>set</CODE> method for the clazz property. 419 * 420 * <p> 421 * For example, to add a new item, do as follows: 422 * <pre> 423 * getClazz().add(newItem); 424 * </pre> 425 * 426 * 427 * <p> 428 * Objects of the following type(s) are allowed in the list 429 * {@link String } 430 * 431 * 432 */ 433 public List<String> getClazz() { 434 if (clazz == null) { 435 clazz = new ArrayList<String>(); 436 } 437 return this.clazz; 438 } 439 440 /** 441 * Gets the value of the excludeUnlistedClasses property. 442 * 443 * @return 444 * possible object is 445 * {@link Boolean } 446 * 447 */ 448 public Boolean isExcludeUnlistedClasses() { 449 return excludeUnlistedClasses; 450 } 451 452 /** 453 * Sets the value of the excludeUnlistedClasses property. 454 * 455 * @param value 456 * allowed object is 457 * {@link Boolean } 458 * 459 */ 460 public void setExcludeUnlistedClasses(Boolean value) { 461 this.excludeUnlistedClasses = value; 462 } 463 464 /** 465 * Gets the value of the sharedCacheMode property. 466 * 467 * @return 468 * possible object is 469 * {@link PersistenceUnitCachingType } 470 * 471 */ 472 public PersistenceUnitCachingType getSharedCacheMode() { 473 return sharedCacheMode; 474 } 475 476 /** 477 * Sets the value of the sharedCacheMode property. 478 * 479 * @param value 480 * allowed object is 481 * {@link PersistenceUnitCachingType } 482 * 483 */ 484 public void setSharedCacheMode(PersistenceUnitCachingType value) { 485 this.sharedCacheMode = value; 486 } 487 488 /** 489 * Gets the value of the validationMode property. 490 * 491 * @return 492 * possible object is 493 * {@link PersistenceUnitValidationModeType } 494 * 495 */ 496 public PersistenceUnitValidationModeType getValidationMode() { 497 return validationMode; 498 } 499 500 /** 501 * Sets the value of the validationMode property. 502 * 503 * @param value 504 * allowed object is 505 * {@link PersistenceUnitValidationModeType } 506 * 507 */ 508 public void setValidationMode(PersistenceUnitValidationModeType value) { 509 this.validationMode = value; 510 } 511 512 /** 513 * Gets the value of the properties property. 514 * 515 * @return 516 * possible object is 517 * {@link Persistence.PersistenceUnit.Properties } 518 * 519 */ 520 public Persistence.PersistenceUnit.Properties getProperties() { 521 return properties; 522 } 523 524 /** 525 * Sets the value of the properties property. 526 * 527 * @param value 528 * allowed object is 529 * {@link Persistence.PersistenceUnit.Properties } 530 * 531 */ 532 public void setProperties(Persistence.PersistenceUnit.Properties value) { 533 this.properties = value; 534 } 535 536 /** 537 * Gets the value of the name property. 538 * 539 * @return 540 * possible object is 541 * {@link String } 542 * 543 */ 544 public String getName() { 545 return name; 546 } 547 548 /** 549 * Sets the value of the name property. 550 * 551 * @param value 552 * allowed object is 553 * {@link String } 554 * 555 */ 556 public void setName(String value) { 557 this.name = value; 558 } 559 560 /** 561 * Gets the value of the transactionType property. 562 * 563 * @return 564 * possible object is 565 * {@link PersistenceUnitTransactionType } 566 * 567 */ 568 public PersistenceUnitTransactionType getTransactionType() { 569 return transactionType; 570 } 571 572 /** 573 * Sets the value of the transactionType property. 574 * 575 * @param value 576 * allowed object is 577 * {@link PersistenceUnitTransactionType } 578 * 579 */ 580 public void setTransactionType(PersistenceUnitTransactionType value) { 581 this.transactionType = value; 582 } 583 584 585 /** 586 * <p>Java class for anonymous complex type. 587 * 588 * <p>The following schema fragment specifies the expected content contained within this class. 589 * 590 * <pre> 591 * <complexType> 592 * <complexContent> 593 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 594 * <sequence> 595 * <element name="property" maxOccurs="unbounded" minOccurs="0"> 596 * <complexType> 597 * <complexContent> 598 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 599 * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 600 * <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 601 * </restriction> 602 * </complexContent> 603 * </complexType> 604 * </element> 605 * </sequence> 606 * </restriction> 607 * </complexContent> 608 * </complexType> 609 * </pre> 610 * 611 * 612 */ 613 @XmlAccessorType(XmlAccessType.FIELD) 614 @XmlType(name = "", propOrder = { 615 "property" 616 }) 617 public static class Properties { 618 619 @XmlElement(namespace = "http://xmlns.jcp.org/xml/ns/persistence") 620 protected List<Persistence.PersistenceUnit.Properties.Property> property; 621 622 /** 623 * Gets the value of the property property. 624 * 625 * <p> 626 * This accessor method returns a reference to the live list, 627 * not a snapshot. Therefore any modification you make to the 628 * returned list will be present inside the JAXB object. 629 * This is why there is not a <CODE>set</CODE> method for the property property. 630 * 631 * <p> 632 * For example, to add a new item, do as follows: 633 * <pre> 634 * getProperty().add(newItem); 635 * </pre> 636 * 637 * 638 * <p> 639 * Objects of the following type(s) are allowed in the list 640 * {@link Persistence.PersistenceUnit.Properties.Property } 641 * 642 * 643 */ 644 public List<Persistence.PersistenceUnit.Properties.Property> getProperty() { 645 if (property == null) { 646 property = new ArrayList<Persistence.PersistenceUnit.Properties.Property>(); 647 } 648 return this.property; 649 } 650 651 652 /** 653 * <p>Java class for anonymous complex type. 654 * 655 * <p>The following schema fragment specifies the expected content contained within this class. 656 * 657 * <pre> 658 * <complexType> 659 * <complexContent> 660 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 661 * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 662 * <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 663 * </restriction> 664 * </complexContent> 665 * </complexType> 666 * </pre> 667 * 668 * 669 */ 670 @XmlAccessorType(XmlAccessType.FIELD) 671 @XmlType(name = "") 672 public static class Property { 673 674 @XmlAttribute(name = "name", required = true) 675 protected String name; 676 @XmlAttribute(name = "value", required = true) 677 protected String value; 678 679 /** 680 * Gets the value of the name property. 681 * 682 * @return 683 * possible object is 684 * {@link String } 685 * 686 */ 687 public String getName() { 688 return name; 689 } 690 691 /** 692 * Sets the value of the name property. 693 * 694 * @param value 695 * allowed object is 696 * {@link String } 697 * 698 */ 699 public void setName(String value) { 700 this.name = value; 701 } 702 703 /** 704 * Gets the value of the value property. 705 * 706 * @return 707 * possible object is 708 * {@link String } 709 * 710 */ 711 public String getValue() { 712 return value; 713 } 714 715 /** 716 * Sets the value of the value property. 717 * 718 * @param value 719 * allowed object is 720 * {@link String } 721 * 722 */ 723 public void setValue(String value) { 724 this.value = value; 725 } 726 727 } 728 729 } 730 731 } 732 733}