1 // 2 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs 3 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 4 // Any modifications to this file will be lost upon recompilation of the source schema. 5 // Generated on: 2009.07.17 at 01:03:24 AM CST 6 // 7 8 9 package org.openejb.xml.ns.pkgen_2; 10 11 import java.util.ArrayList; 12 import java.util.List; 13 import javax.xml.bind.annotation.XmlAccessType; 14 import javax.xml.bind.annotation.XmlAccessorType; 15 import javax.xml.bind.annotation.XmlElement; 16 import javax.xml.bind.annotation.XmlType; 17 18 19 /** 20 * 21 * Indicates that the database automatically populates a primary key 22 * ID in the listed column(s). Typically this is used for columns 23 * with an AUTO_INCREMENT flag or the equivalent. This only makes 24 * sense if this key generator is used for an EJB or something else 25 * with a corresponding database table (not if it's meant to generate 26 * unique web session IDs or something like that -- see 27 * auto-increment-tableType for that case). 28 * 29 * 30 * <p>Java class for database-generatedType complex type. 31 * 32 * <p>The following schema fragment specifies the expected content contained within this class. 33 * 34 * <pre> 35 * <complexType name="database-generatedType"> 36 * <complexContent> 37 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 38 * <sequence> 39 * <element name="identity-column" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/> 40 * </sequence> 41 * </restriction> 42 * </complexContent> 43 * </complexType> 44 * </pre> 45 * 46 * 47 */ 48 @XmlAccessorType(XmlAccessType.FIELD) 49 @XmlType(name = "database-generatedType", propOrder = { 50 "identityColumn" 51 }) 52 public class DatabaseGeneratedType { 53 54 @XmlElement(name = "identity-column", required = true) 55 protected List<String> identityColumn; 56 57 /** 58 * Gets the value of the identityColumn property. 59 * 60 * <p> 61 * This accessor method returns a reference to the live list, 62 * not a snapshot. Therefore any modification you make to the 63 * returned list will be present inside the JAXB object. 64 * This is why there is not a <CODE>set</CODE> method for the identityColumn property. 65 * 66 * <p> 67 * For example, to add a new item, do as follows: 68 * <pre> 69 * getIdentityColumn().add(newItem); 70 * </pre> 71 * 72 * 73 * <p> 74 * Objects of the following type(s) are allowed in the list 75 * {@link String } 76 * 77 * 78 */ 79 public List<String> getIdentityColumn() { 80 if (identityColumn == null) { 81 identityColumn = new ArrayList<String>(); 82 } 83 return this.identityColumn; 84 } 85 86 }