001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.jee.wls;
017:
018: import java.util.ArrayList;
019: import java.util.List;
020: import javax.xml.bind.annotation.XmlAccessType;
021: import javax.xml.bind.annotation.XmlAccessorType;
022: import javax.xml.bind.annotation.XmlElement;
023: import javax.xml.bind.annotation.XmlType;
024:
025: /**
026: * <p>Java class for table complex type.
027: *
028: * <p>The following schema fragment specifies the expected content contained within this class.
029: *
030: * <pre>
031: * <complexType name="table">
032: * <complexContent>
033: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
034: * <sequence>
035: * <element name="table-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
036: * <element name="dbms-column" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
037: * <element name="ejb-relationship-role-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
038: * </sequence>
039: * </restriction>
040: * </complexContent>
041: * </complexType>
042: * </pre>
043: *
044: *
045: */
046: @XmlAccessorType(XmlAccessType.FIELD)
047: @XmlType(name="table",propOrder={"tableName","dbmsColumn","ejbRelationshipRoleName"})
048: public class Table {
049:
050: @XmlElement(name="table-name",required=true)
051: protected String tableName;
052: @XmlElement(name="dbms-column",required=true)
053: protected List<String> dbmsColumn;
054: @XmlElement(name="ejb-relationship-role-name")
055: protected String ejbRelationshipRoleName;
056:
057: /**
058: * Gets the value of the tableName property.
059: *
060: * @return
061: * possible object is
062: * {@link String }
063: *
064: */
065: public String getTableName() {
066: return tableName;
067: }
068:
069: /**
070: * Sets the value of the tableName property.
071: *
072: * @param value
073: * allowed object is
074: * {@link String }
075: *
076: */
077: public void setTableName(String value) {
078: this .tableName = value;
079: }
080:
081: /**
082: * Gets the value of the dbmsColumn property.
083: *
084: * <p>
085: * This accessor method returns a reference to the live list,
086: * not a snapshot. Therefore any modification you make to the
087: * returned list will be present inside the JAXB object.
088: * This is why there is not a <CODE>set</CODE> method for the dbmsColumn property.
089: *
090: * <p>
091: * For example, to add a new item, do as follows:
092: * <pre>
093: * getDbmsColumn().add(newItem);
094: * </pre>
095: *
096: *
097: * <p>
098: * Objects of the following type(s) are allowed in the list
099: * {@link String }
100: *
101: *
102: */
103: public List<String> getDbmsColumn() {
104: if (dbmsColumn == null) {
105: dbmsColumn = new ArrayList<String>();
106: }
107: return this .dbmsColumn;
108: }
109:
110: /**
111: * Gets the value of the ejbRelationshipRoleName property.
112: *
113: * @return
114: * possible object is
115: * {@link String }
116: *
117: */
118: public String getEjbRelationshipRoleName() {
119: return ejbRelationshipRoleName;
120: }
121:
122: /**
123: * Sets the value of the ejbRelationshipRoleName property.
124: *
125: * @param value
126: * allowed object is
127: * {@link String }
128: *
129: */
130: public void setEjbRelationshipRoleName(String value) {
131: this.ejbRelationshipRoleName = value;
132: }
133:
134: }
|