Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.22 KB | None | 0 0
  1. //
  2. // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
  3. // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
  4. // Any modifications to this file will be lost upon recompilation of the source schema.
  5. // Generated on: 2015.02.23 at 02:47:26 PM CET
  6. //
  7.  
  8.  
  9. package org.jooq.util.jaxb;
  10.  
  11. import java.io.Serializable;
  12. import java.util.ArrayList;
  13. import java.util.Collection;
  14. import java.util.List;
  15. import javax.xml.bind.annotation.XmlAccessType;
  16. import javax.xml.bind.annotation.XmlAccessorType;
  17. import javax.xml.bind.annotation.XmlElement;
  18. import javax.xml.bind.annotation.XmlElementWrapper;
  19. import javax.xml.bind.annotation.XmlType;
  20. import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
  21. import org.jooq.util.jaxb.tools.TrimAdapter;
  22.  
  23.  
  24. /**
  25. * <p>Java class for Jdbc complex type.
  26. *
  27. * <p>The following schema fragment specifies the expected content contained within this class.
  28. *
  29. * <pre>
  30. * &lt;complexType name="Jdbc">
  31. * &lt;complexContent>
  32. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  33. * &lt;all>
  34. * &lt;element name="driver" type="{http://www.w3.org/2001/XMLSchema}string"/>
  35. * &lt;element name="url" type="{http://www.w3.org/2001/XMLSchema}string"/>
  36. * &lt;element name="schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
  37. * &lt;element name="user" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
  38. * &lt;element name="password" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
  39. * &lt;element name="properties" type="{http://www.jooq.org/xsd/jooq-codegen-3.5.0.xsd}Properties" minOccurs="0"/>
  40. * &lt;/all>
  41. * &lt;/restriction>
  42. * &lt;/complexContent>
  43. * &lt;/complexType>
  44. * </pre>
  45. *
  46. *
  47. */
  48. @XmlAccessorType(XmlAccessType.FIELD)
  49. @XmlType(name = "Jdbc", propOrder = {
  50.  
  51. })
  52. @SuppressWarnings({
  53. "all"
  54. })
  55. public class Jdbc implements Serializable
  56. {
  57.  
  58. private final static long serialVersionUID = 350L;
  59. @XmlElement(required = true)
  60. @XmlJavaTypeAdapter(TrimAdapter.class)
  61. protected String driver;
  62. @XmlElement(required = true)
  63. @XmlJavaTypeAdapter(TrimAdapter.class)
  64. protected String url;
  65. @XmlJavaTypeAdapter(TrimAdapter.class)
  66. protected String schema;
  67. @XmlJavaTypeAdapter(TrimAdapter.class)
  68. protected String user;
  69. @XmlJavaTypeAdapter(TrimAdapter.class)
  70. protected String password;
  71. @XmlElementWrapper(name = "properties")
  72. @XmlElement(name = "property")
  73. protected List<Property> properties;
  74.  
  75. /**
  76. * Gets the value of the driver property.
  77. *
  78. * @return
  79. * possible object is
  80. * {@link String }
  81. *
  82. */
  83. public String getDriver() {
  84. return driver;
  85. }
  86.  
  87. /**
  88. * Sets the value of the driver property.
  89. *
  90. * @param value
  91. * allowed object is
  92. * {@link String }
  93. *
  94. */
  95. public void setDriver(String value) {
  96. this.driver = value;
  97. }
  98.  
  99. /**
  100. * Gets the value of the url property.
  101. *
  102. * @return
  103. * possible object is
  104. * {@link String }
  105. *
  106. */
  107. public String getUrl() {
  108. return url;
  109. }
  110.  
  111. /**
  112. * Sets the value of the url property.
  113. *
  114. * @param value
  115. * allowed object is
  116. * {@link String }
  117. *
  118. */
  119. public void setUrl(String value) {
  120. this.url = value;
  121. }
  122.  
  123. /**
  124. * Gets the value of the schema property.
  125. *
  126. * @return
  127. * possible object is
  128. * {@link String }
  129. *
  130. */
  131. public String getSchema() {
  132. return schema;
  133. }
  134.  
  135. /**
  136. * Sets the value of the schema property.
  137. *
  138. * @param value
  139. * allowed object is
  140. * {@link String }
  141. *
  142. */
  143. public void setSchema(String value) {
  144. this.schema = value;
  145. }
  146.  
  147. /**
  148. * Gets the value of the user property.
  149. *
  150. * @return
  151. * possible object is
  152. * {@link String }
  153. *
  154. */
  155. public String getUser() {
  156. return user;
  157. }
  158.  
  159. /**
  160. * Sets the value of the user property.
  161. *
  162. * @param value
  163. * allowed object is
  164. * {@link String }
  165. *
  166. */
  167. public void setUser(String value) {
  168. this.user = value;
  169. }
  170.  
  171. /**
  172. * Gets the value of the password property.
  173. *
  174. * @return
  175. * possible object is
  176. * {@link String }
  177. *
  178. */
  179. public String getPassword() {
  180. return password;
  181. }
  182.  
  183. /**
  184. * Sets the value of the password property.
  185. *
  186. * @param value
  187. * allowed object is
  188. * {@link String }
  189. *
  190. */
  191. public void setPassword(String value) {
  192. this.password = value;
  193. }
  194.  
  195. public List<Property> getProperties() {
  196. if (properties == null) {
  197. properties = new ArrayList<Property>();
  198. }
  199. return properties;
  200. }
  201.  
  202. public void setProperties(List<Property> properties) {
  203. this.properties = properties;
  204. }
  205.  
  206. public Jdbc withDriver(String value) {
  207. setDriver(value);
  208. return this;
  209. }
  210.  
  211. public Jdbc withUrl(String value) {
  212. setUrl(value);
  213. return this;
  214. }
  215.  
  216. public Jdbc withSchema(String value) {
  217. setSchema(value);
  218. return this;
  219. }
  220.  
  221. public Jdbc withUser(String value) {
  222. setUser(value);
  223. return this;
  224. }
  225.  
  226. public Jdbc withPassword(String value) {
  227. setPassword(value);
  228. return this;
  229. }
  230.  
  231. public Jdbc withProperties(Property... values) {
  232. if (values!= null) {
  233. for (Property value: values) {
  234. getProperties().add(value);
  235. }
  236. }
  237. return this;
  238. }
  239.  
  240. public Jdbc withProperties(Collection<Property> values) {
  241. if (values!= null) {
  242. getProperties().addAll(values);
  243. }
  244. return this;
  245. }
  246.  
  247. public Jdbc withProperties(List<Property> properties) {
  248. setProperties(properties);
  249. return this;
  250. }
  251.  
  252. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement