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.jba.cmp;
017:
018: import javax.xml.bind.annotation.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlElement;
021: import javax.xml.bind.annotation.XmlRootElement;
022: import javax.xml.bind.annotation.XmlType;
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 ref="{http://jboss.org}property-name"/>
035: * <element ref="{http://jboss.org}column-name" minOccurs="0"/>
036: * <element ref="{http://jboss.org}not-null" minOccurs="0"/>
037: * <sequence minOccurs="0">
038: * <element ref="{http://jboss.org}jdbc-type"/>
039: * <element ref="{http://jboss.org}sql-type"/>
040: * </sequence>
041: * </sequence>
042: * </restriction>
043: * </complexContent>
044: * </complexType>
045: * </pre>
046: *
047: *
048: */
049: @XmlAccessorType(XmlAccessType.FIELD)
050: @XmlType(name="",propOrder={"propertyName","columnName","notNull","jdbcType","sqlType"})
051: @XmlRootElement(name="property")
052: public class Property {
053:
054: @XmlElement(name="property-name",required=true)
055: protected PropertyName propertyName;
056: @XmlElement(name="column-name")
057: protected ColumnName columnName;
058: @XmlElement(name="not-null")
059: protected NotNull notNull;
060: @XmlElement(name="jdbc-type")
061: protected JdbcType jdbcType;
062: @XmlElement(name="sql-type")
063: protected SqlType sqlType;
064:
065: /**
066: * Gets the value of the propertyName property.
067: *
068: * @return
069: * possible object is
070: * {@link PropertyName }
071: *
072: */
073: public PropertyName getPropertyName() {
074: return propertyName;
075: }
076:
077: /**
078: * Sets the value of the propertyName property.
079: *
080: * @param value
081: * allowed object is
082: * {@link PropertyName }
083: *
084: */
085: public void setPropertyName(PropertyName value) {
086: this .propertyName = value;
087: }
088:
089: /**
090: * Gets the value of the columnName property.
091: *
092: * @return
093: * possible object is
094: * {@link ColumnName }
095: *
096: */
097: public ColumnName getColumnName() {
098: return columnName;
099: }
100:
101: /**
102: * Sets the value of the columnName property.
103: *
104: * @param value
105: * allowed object is
106: * {@link ColumnName }
107: *
108: */
109: public void setColumnName(ColumnName value) {
110: this .columnName = value;
111: }
112:
113: /**
114: * Gets the value of the notNull property.
115: *
116: * @return
117: * possible object is
118: * {@link NotNull }
119: *
120: */
121: public NotNull getNotNull() {
122: return notNull;
123: }
124:
125: /**
126: * Sets the value of the notNull property.
127: *
128: * @param value
129: * allowed object is
130: * {@link NotNull }
131: *
132: */
133: public void setNotNull(NotNull value) {
134: this .notNull = value;
135: }
136:
137: /**
138: * Gets the value of the jdbcType property.
139: *
140: * @return
141: * possible object is
142: * {@link JdbcType }
143: *
144: */
145: public JdbcType getJdbcType() {
146: return jdbcType;
147: }
148:
149: /**
150: * Sets the value of the jdbcType property.
151: *
152: * @param value
153: * allowed object is
154: * {@link JdbcType }
155: *
156: */
157: public void setJdbcType(JdbcType value) {
158: this .jdbcType = value;
159: }
160:
161: /**
162: * Gets the value of the sqlType property.
163: *
164: * @return
165: * possible object is
166: * {@link SqlType }
167: *
168: */
169: public SqlType getSqlType() {
170: return sqlType;
171: }
172:
173: /**
174: * Sets the value of the sqlType property.
175: *
176: * @param value
177: * allowed object is
178: * {@link SqlType }
179: *
180: */
181: public void setSqlType(SqlType value) {
182: this.sqlType = value;
183: }
184:
185: }
|