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