001 //
002 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833
003 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004 // Any modifications to this file will be lost upon recompilation of the source schema.
005 // Generated on: 2010.08.18 at 10:46:56 PM CEST
006 //
007
008
009 package net.sourceforge.jpaxjc.ns.persistence.orm;
010
011 import javax.annotation.Generated;
012 import javax.xml.bind.annotation.XmlAccessType;
013 import javax.xml.bind.annotation.XmlAccessorType;
014 import javax.xml.bind.annotation.XmlAttribute;
015 import javax.xml.bind.annotation.XmlType;
016
017
018 /**
019 *
020 *
021 * @Target({}) @Retention(RUNTIME)
022 * public @interface QueryHint {
023 * String name();
024 * String value();
025 * }
026 *
027 *
028 *
029 * <p>Java class for query-hint complex type.
030 *
031 * <p>The following schema fragment specifies the expected content contained within this class.
032 *
033 * <pre>
034 * <complexType name="query-hint">
035 * <complexContent>
036 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
037 * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
038 * <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
039 * </restriction>
040 * </complexContent>
041 * </complexType>
042 * </pre>
043 *
044 *
045 */
046 @XmlAccessorType(XmlAccessType.FIELD)
047 @XmlType(name = "query-hint")
048 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
049 public class QueryHint implements Cloneable
050 {
051
052 @XmlAttribute(required = true)
053 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
054 protected String name;
055 @XmlAttribute(required = true)
056 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
057 protected String value;
058
059 /**
060 * Creates a new {@code QueryHint} instance.
061 *
062 */
063 public QueryHint() {
064 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
065 super();
066 }
067
068 /**
069 * Creates a new {@code QueryHint} instance by deeply copying a given {@code QueryHint} instance.
070 *
071 *
072 * @param o
073 * The instance to copy.
074 * @throws NullPointerException
075 * if {@code o} is {@code null}.
076 */
077 public QueryHint(final QueryHint o) {
078 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
079 super();
080 if (o == null) {
081 throw new NullPointerException("Cannot create a copy of 'QueryHint' from 'null'.");
082 }
083 // CBuiltinLeafInfo: java.lang.String
084 this.name = o.getName();
085 // CBuiltinLeafInfo: java.lang.String
086 this.value = o.getValue();
087 }
088
089 /**
090 * Gets the value of the name property.
091 *
092 * @return
093 * possible object is
094 * {@link String }
095 *
096 */
097 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
098 public String getName() {
099 return name;
100 }
101
102 /**
103 * Sets the value of the name property.
104 *
105 * @param value
106 * allowed object is
107 * {@link String }
108 *
109 */
110 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
111 public void setName(String value) {
112 this.name = value;
113 }
114
115 /**
116 * Gets the value of the value property.
117 *
118 * @return
119 * possible object is
120 * {@link String }
121 *
122 */
123 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
124 public String getValue() {
125 return value;
126 }
127
128 /**
129 * Sets the value of the value property.
130 *
131 * @param value
132 * allowed object is
133 * {@link String }
134 *
135 */
136 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
137 public void setValue(String value) {
138 this.value = value;
139 }
140
141 /**
142 * Creates and returns a deep copy of this object.
143 *
144 *
145 * @return
146 * A deep copy of this object.
147 */
148 @Override
149 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
150 public QueryHint clone() {
151 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
152 return new QueryHint(this);
153 }
154
155 }