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.jpa;
017:
018: import javax.xml.bind.annotation.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlAttribute;
021: import javax.xml.bind.annotation.XmlType;
022:
023: /**
024: *
025: *
026: * @Target({}) @Retention(RUNTIME)
027: * public @interface QueryHint {
028: * String name();
029: * String value();
030: * }
031: *
032: *
033: *
034: * <p>Java class for query-hint complex type.
035: *
036: * <p>The following schema fragment specifies the expected content contained within this class.
037: *
038: * <pre>
039: * <complexType name="query-hint">
040: * <complexContent>
041: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
042: * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
043: * <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
044: * </restriction>
045: * </complexContent>
046: * </complexType>
047: * </pre>
048: *
049: *
050: */
051: @XmlAccessorType(XmlAccessType.FIELD)
052: @XmlType(name="query-hint")
053: public class QueryHint {
054:
055: @XmlAttribute(required=true)
056: protected String name;
057: @XmlAttribute(required=true)
058: protected String value;
059:
060: /**
061: * Gets the value of the name property.
062: *
063: * @return
064: * possible object is
065: * {@link String }
066: *
067: */
068: public String getName() {
069: return name;
070: }
071:
072: /**
073: * Sets the value of the name property.
074: *
075: * @param value
076: * allowed object is
077: * {@link String }
078: *
079: */
080: public void setName(String value) {
081: this .name = value;
082: }
083:
084: /**
085: * Gets the value of the value property.
086: *
087: * @return
088: * possible object is
089: * {@link String }
090: *
091: */
092: public String getValue() {
093: return value;
094: }
095:
096: /**
097: * Sets the value of the value property.
098: *
099: * @param value
100: * allowed object is
101: * {@link String }
102: *
103: */
104: public void setValue(String value) {
105: this.value = value;
106: }
107:
108: }
|