View Javadoc

1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.5-b02-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: 2007.08.06 at 08:17:38 PM MSD 
6   //
7   
8   
9   package org.riverock.dbrevision.annotation.schema.db;
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.XmlAttribute;
16  import javax.xml.bind.annotation.XmlElement;
17  import javax.xml.bind.annotation.XmlType;
18  
19  
20  /**
21   * <p>Java class for DbPrimaryKey complex type.
22   * 
23   * <p>The following schema fragment specifies the expected content contained within this class.
24   * 
25   * <pre>
26   * &lt;complexType name="DbPrimaryKey">
27   *   &lt;complexContent>
28   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
29   *       &lt;sequence>
30   *         &lt;element name="Column" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbPrimaryKeyColumn" maxOccurs="unbounded"/>
31   *       &lt;/sequence>
32   *       &lt;attribute name="catalogName" type="{http://www.w3.org/2001/XMLSchema}string" />
33   *       &lt;attribute name="pkName" type="{http://www.w3.org/2001/XMLSchema}string" />
34   *       &lt;attribute name="schemaName" type="{http://www.w3.org/2001/XMLSchema}string" />
35   *       &lt;attribute name="tableName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
36   *     &lt;/restriction>
37   *   &lt;/complexContent>
38   * &lt;/complexType>
39   * </pre>
40   * 
41   * 
42   */
43  @XmlAccessorType(XmlAccessType.FIELD)
44  @XmlType(name = "DbPrimaryKey", propOrder = {
45      "columns"
46  })
47  public class DbPrimaryKey {
48  
49      @XmlElement(name = "Column", required = true)
50      protected List<DbPrimaryKeyColumn> columns;
51      @XmlAttribute
52      protected String catalogName;
53      @XmlAttribute
54      protected String pkName;
55      @XmlAttribute
56      protected String schemaName;
57      @XmlAttribute(required = true)
58      protected String tableName;
59  
60      /**
61       * Gets the value of the columns property.
62       * 
63       * <p>
64       * This accessor method returns a reference to the live list,
65       * not a snapshot. Therefore any modification you make to the
66       * returned list will be present inside the JAXB object.
67       * This is why there is not a <CODE>set</CODE> method for the columns property.
68       * 
69       * <p>
70       * For example, to add a new item, do as follows:
71       * <pre>
72       *    getColumns().add(newItem);
73       * </pre>
74       * 
75       * 
76       * <p>
77       * Objects of the following type(s) are allowed in the list
78       * {@link DbPrimaryKeyColumn }
79       * 
80       * 
81       */
82      public List<DbPrimaryKeyColumn> getColumns() {
83          if (columns == null) {
84              columns = new ArrayList<DbPrimaryKeyColumn>();
85          }
86          return this.columns;
87      }
88  
89      /**
90       * Gets the value of the catalogName property.
91       * 
92       * @return
93       *     possible object is
94       *     {@link String }
95       *     
96       */
97      public String getCatalogName() {
98          return catalogName;
99      }
100 
101     /**
102      * Sets the value of the catalogName property.
103      * 
104      * @param value
105      *     allowed object is
106      *     {@link String }
107      *     
108      */
109     public void setCatalogName(String value) {
110         this.catalogName = value;
111     }
112 
113     /**
114      * Gets the value of the pkName property.
115      * 
116      * @return
117      *     possible object is
118      *     {@link String }
119      *     
120      */
121     public String getPkName() {
122         return pkName;
123     }
124 
125     /**
126      * Sets the value of the pkName property.
127      * 
128      * @param value
129      *     allowed object is
130      *     {@link String }
131      *     
132      */
133     public void setPkName(String value) {
134         this.pkName = value;
135     }
136 
137     /**
138      * Gets the value of the schemaName property.
139      * 
140      * @return
141      *     possible object is
142      *     {@link String }
143      *     
144      */
145     public String getSchemaName() {
146         return schemaName;
147     }
148 
149     /**
150      * Sets the value of the schemaName property.
151      * 
152      * @param value
153      *     allowed object is
154      *     {@link String }
155      *     
156      */
157     public void setSchemaName(String value) {
158         this.schemaName = value;
159     }
160 
161     /**
162      * Gets the value of the tableName property.
163      * 
164      * @return
165      *     possible object is
166      *     {@link String }
167      *     
168      */
169     public String getTableName() {
170         return tableName;
171     }
172 
173     /**
174      * Sets the value of the tableName property.
175      * 
176      * @param value
177      *     allowed object is
178      *     {@link String }
179      *     
180      */
181     public void setTableName(String value) {
182         this.tableName = value;
183     }
184 
185 }