[#1293] Generate setter methods for JAXB annotated configuration properties

Release 2.3.0-SNAPSHOT
This commit is contained in:
Lukas Eder 2012-04-12 18:56:25 +00:00
parent f2b2bf6efd
commit a9d517fde2
27 changed files with 65 additions and 851 deletions

View File

@ -9,7 +9,7 @@
<groupId>org.jooq</groupId>
<artifactId>jooq-codegen-maven-example</artifactId>
<version>2.2.1</version>
<version>2.3.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>jOOQ Codegen Maven</name>
@ -51,7 +51,7 @@
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq</artifactId>
<version>2.2.1</version>
<version>2.3.0-SNAPSHOT</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
@ -106,7 +106,7 @@
<plugin>
<groupId>org.jooq</groupId>
<artifactId>jooq-codegen-maven</artifactId>
<version>2.2.1</version>
<version>2.3.0-SNAPSHOT</version>
<executions>
<execution>
<id>exec1</id>

View File

@ -9,7 +9,7 @@
<groupId>org.jooq</groupId>
<artifactId>jooq-codegen-maven</artifactId>
<version>2.2.1</version>
<version>2.3.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<name>jOOQ Codegen Maven</name>
@ -160,7 +160,7 @@
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq-codegen</artifactId>
<version>2.2.1</version>
<version>2.3.0-SNAPSHOT</version>
<type>jar</type>
</dependency>
<dependency>

View File

@ -10,7 +10,7 @@
<groupId>org.jooq</groupId>
<artifactId>jooq-codegen</artifactId>
<version>2.2.1</version>
<version>2.3.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>jOOQ Codegen</name>
@ -150,14 +150,14 @@
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq</artifactId>
<version>2.2.1</version>
<version>2.3.0-SNAPSHOT</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq-meta</artifactId>
<version>2.2.1</version>
<version>2.3.0-SNAPSHOT</version>
<type>jar</type>
<scope>compile</scope>
</dependency>

View File

@ -10,7 +10,7 @@
<groupId>org.jooq</groupId>
<artifactId>jooq-console</artifactId>
<version>2.2.1</version>
<version>2.3.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>jOOQ</name>
@ -201,7 +201,7 @@
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq</artifactId>
<version>2.2.1</version>
<version>2.3.0-SNAPSHOT</version>
<type>jar</type>
<scope>compile</scope>
</dependency>

View File

@ -9,7 +9,7 @@
<groupId>org.jooq</groupId>
<artifactId>jooq-meta</artifactId>
<version>2.2.1</version>
<version>2.3.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>jOOQ Meta</name>
@ -149,7 +149,7 @@
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq</artifactId>
<version>2.2.1</version>
<version>2.3.0-SNAPSHOT</version>
<type>jar</type>
<scope>compile</scope>
</dependency>

View File

@ -10,7 +10,7 @@
<groupId>org.jooq</groupId>
<artifactId>jooq-spring</artifactId>
<version>2.2.1</version>
<version>2.3.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>jOOQ Spring</name>
@ -188,7 +188,7 @@
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq</artifactId>
<version>2.2.1</version>
<version>2.3.0-SNAPSHOT</version>
<type>jar</type>
<scope>compile</scope>
</dependency>

View File

@ -3,6 +3,7 @@
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
<classpathentry kind="src" path="src/test/java"/>
<classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="src" path="target/generated-sources/xjc"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry exported="true" kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>

View File

@ -1,35 +0,0 @@
<?xml version="1.0"?>
<project name="jOOQ-codegen" basedir=".">
<property name="dir.resources" value="${basedir}/src/main/resources" />
<property name="dir.java" value="${basedir}/src/main/java" />
<property name="dir.target" value="${dir.java}/org/jooq/conf" />
<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
<classpath>
<fileset dir="${basedir}/lib" includes="*.jar" />
<fileset dir="${java.home}/lib" includes="rt.jar" />
</classpath>
</taskdef>
<!-- Run a full mvn clean package install deploy first before this -->
<target name="xjc-generator" description="Generate JAXB artefacts from XSD">
<mkdir dir="${dir.target}" />
<xjc schema="${dir.resources}/xsd/jooq-runtime-2.3.0.xsd" destdir="${dir.java}" package="org.jooq.conf">
<arg value="-extension"/>
<arg value="-Xxew" />
<arg value="-Xfluent-api" />
<arg value="-Xdefault-value"/>
<arg value="-instantiate lazy" />
</xjc>
<!-- Remove unnecessary artefacts again -->
<delete>
<fileset dir="${dir.target}">
<include name="ExecuteListeners.java"/>
<include name="MappedSchemata.java"/>
<include name="MappedTables.java"/>
<include name="ObjectFactory.java"/>
</fileset>
</delete>
</target>
</project>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -10,7 +10,7 @@
<groupId>org.jooq</groupId>
<artifactId>jooq</artifactId>
<version>2.2.1</version>
<version>2.3.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>jOOQ</name>
@ -37,6 +37,55 @@
<finalName>${project.artifactId}-${project.version}</finalName>
<plugins>
<!-- XJC-generate JAXB artefacts. Contribution is the courtesy
of Sergey Epik -->
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.8.1</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<extension>true</extension>
<strict>false</strict>
<schemaDirectory>src/main/resources/xsd</schemaDirectory>
<schemaIncludes>
<include>jooq-runtime-2.3.0.xsd</include>
</schemaIncludes>
<generatePackage>org.jooq.conf</generatePackage>
<args>
<arg>-Xxew</arg>
<arg>-Xxew:instantiate lazy</arg>
<arg>-Xxew:delete</arg>
<arg>-Xfluent-api</arg>
<arg>-Xdefault-value</arg>
</args>
<plugins>
<plugin>
<groupId>com.github.jaxb-xew-plugin</groupId>
<artifactId>jaxb-xew-plugin</artifactId>
<version>1.0</version>
</plugin>
<plugin>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-fluent-api</artifactId>
<version>3.0</version>
</plugin>
<plugin>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-default-value</artifactId>
<version>1.1</version>
</plugin>
</plugins>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>

View File

@ -1,140 +0,0 @@
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.5-b02-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.04.12 at 07:54:20 PM MESZ
//
package org.jooq.conf;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for MappedSchema complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="MappedSchema">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;all>
* &lt;element name="input" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="output" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="tables" type="{http://www.jooq.org/xsd/jooq-runtime-2.3.0.xsd}MappedTables" minOccurs="0"/>
* &lt;/all>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MappedSchema", propOrder = {
})
public class MappedSchema
implements Serializable
{
private final static long serialVersionUID = 205L;
@XmlElement(required = true)
protected String input;
protected String output;
@XmlElementWrapper(name = "tables")
@XmlElement(name = "table")
protected List<MappedTable> tables;
/**
* Gets the value of the input property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInput() {
return input;
}
/**
* Sets the value of the input property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInput(String value) {
this.input = value;
}
/**
* Gets the value of the output property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOutput() {
return output;
}
/**
* Sets the value of the output property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOutput(String value) {
this.output = value;
}
public List<MappedTable> getTables() {
if (tables == null) {
tables = new ArrayList<MappedTable>();
}
return tables;
}
public MappedSchema withInput(String value) {
setInput(value);
return this;
}
public MappedSchema withOutput(String value) {
setOutput(value);
return this;
}
public MappedSchema withTables(MappedTable... values) {
if (values!= null) {
for (MappedTable value: values) {
getTables().add(value);
}
}
return this;
}
public MappedSchema withTables(Collection<MappedTable> values) {
if (values!= null) {
getTables().addAll(values);
}
return this;
}
}

View File

@ -1,110 +0,0 @@
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.5-b02-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.04.12 at 07:54:20 PM MESZ
//
package org.jooq.conf;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for MappedTable complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="MappedTable">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;all>
* &lt;element name="input" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="output" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/all>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MappedTable", propOrder = {
})
public class MappedTable
implements Serializable
{
private final static long serialVersionUID = 205L;
@XmlElement(required = true)
protected String input;
@XmlElement(required = true)
protected String output;
/**
* Gets the value of the input property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInput() {
return input;
}
/**
* Sets the value of the input property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInput(String value) {
this.input = value;
}
/**
* Gets the value of the output property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOutput() {
return output;
}
/**
* Sets the value of the output property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOutput(String value) {
this.output = value;
}
public MappedTable withInput(String value) {
setInput(value);
return this;
}
public MappedTable withOutput(String value) {
setOutput(value);
return this;
}
}

View File

@ -1,43 +0,0 @@
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.5-b02-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.04.12 at 07:54:20 PM MESZ
//
package org.jooq.conf;
import javax.xml.bind.annotation.XmlEnum;
/**
* <p>Java class for RenderKeywordStyle.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* &lt;simpleType name="RenderKeywordStyle">
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;enumeration value="LOWER"/>
* &lt;enumeration value="UPPER"/>
* &lt;/restriction>
* &lt;/simpleType>
* </pre>
*
*/
@XmlEnum
public enum RenderKeywordStyle {
LOWER,
UPPER;
public String value() {
return name();
}
public static RenderKeywordStyle fromValue(String v) {
return valueOf(v);
}
}

View File

@ -1,108 +0,0 @@
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.5-b02-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.04.12 at 07:54:20 PM MESZ
//
package org.jooq.conf;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for RenderMapping complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="RenderMapping">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;all>
* &lt;element name="defaultSchema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="schemata" type="{http://www.jooq.org/xsd/jooq-runtime-2.3.0.xsd}MappedSchemata" minOccurs="0"/>
* &lt;/all>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RenderMapping", propOrder = {
})
public class RenderMapping
implements Serializable
{
private final static long serialVersionUID = 205L;
protected String defaultSchema;
@XmlElementWrapper(name = "schemata")
@XmlElement(name = "schema")
protected List<MappedSchema> schemata;
/**
* Gets the value of the defaultSchema property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDefaultSchema() {
return defaultSchema;
}
/**
* Sets the value of the defaultSchema property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDefaultSchema(String value) {
this.defaultSchema = value;
}
public List<MappedSchema> getSchemata() {
if (schemata == null) {
schemata = new ArrayList<MappedSchema>();
}
return schemata;
}
public RenderMapping withDefaultSchema(String value) {
setDefaultSchema(value);
return this;
}
public RenderMapping withSchemata(MappedSchema... values) {
if (values!= null) {
for (MappedSchema value: values) {
getSchemata().add(value);
}
}
return this;
}
public RenderMapping withSchemata(Collection<MappedSchema> values) {
if (values!= null) {
getSchemata().addAll(values);
}
return this;
}
}

View File

@ -1,47 +0,0 @@
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.5-b02-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.04.12 at 07:54:20 PM MESZ
//
package org.jooq.conf;
import javax.xml.bind.annotation.XmlEnum;
/**
* <p>Java class for RenderNameStyle.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* &lt;simpleType name="RenderNameStyle">
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;enumeration value="QUOTED"/>
* &lt;enumeration value="AS_IS"/>
* &lt;enumeration value="LOWER"/>
* &lt;enumeration value="UPPER"/>
* &lt;/restriction>
* &lt;/simpleType>
* </pre>
*
*/
@XmlEnum
public enum RenderNameStyle {
QUOTED,
AS_IS,
LOWER,
UPPER;
public String value() {
return name();
}
public static RenderNameStyle fromValue(String v) {
return valueOf(v);
}
}

View File

@ -1,301 +0,0 @@
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.5-b02-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.04.12 at 07:54:20 PM MESZ
//
package org.jooq.conf;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Settings complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="Settings">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;all>
* &lt;element name="renderSchema" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* &lt;element name="renderMapping" type="{http://www.jooq.org/xsd/jooq-runtime-2.3.0.xsd}RenderMapping" minOccurs="0"/>
* &lt;element name="renderNameStyle" type="{http://www.jooq.org/xsd/jooq-runtime-2.3.0.xsd}RenderNameStyle" minOccurs="0"/>
* &lt;element name="renderKeywordStyle" type="{http://www.jooq.org/xsd/jooq-runtime-2.3.0.xsd}RenderKeywordStyle" minOccurs="0"/>
* &lt;element name="renderFormatted" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* &lt;element name="statementType" type="{http://www.jooq.org/xsd/jooq-runtime-2.3.0.xsd}StatementType" minOccurs="0"/>
* &lt;element name="executeLogging" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* &lt;element name="executeListeners" type="{http://www.jooq.org/xsd/jooq-runtime-2.3.0.xsd}ExecuteListeners" minOccurs="0"/>
* &lt;/all>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Settings", propOrder = {
})
public class Settings
implements Serializable
{
private final static long serialVersionUID = 205L;
@XmlElement(defaultValue = "true")
protected Boolean renderSchema = true;
protected RenderMapping renderMapping;
@XmlElement(defaultValue = "QUOTED")
protected RenderNameStyle renderNameStyle = RenderNameStyle.QUOTED;
@XmlElement(defaultValue = "LOWER")
protected RenderKeywordStyle renderKeywordStyle = RenderKeywordStyle.LOWER;
@XmlElement(defaultValue = "false")
protected Boolean renderFormatted = false;
@XmlElement(defaultValue = "PREPARED_STATEMENT")
protected StatementType statementType = StatementType.PREPARED_STATEMENT;
@XmlElement(defaultValue = "true")
protected Boolean executeLogging = true;
@XmlElementWrapper(name = "executeListeners")
@XmlElement(name = "executeListener")
protected List<String> executeListeners;
/**
* Gets the value of the renderSchema property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isRenderSchema() {
return renderSchema;
}
/**
* Sets the value of the renderSchema property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setRenderSchema(Boolean value) {
this.renderSchema = value;
}
/**
* Gets the value of the renderMapping property.
*
* @return
* possible object is
* {@link RenderMapping }
*
*/
public RenderMapping getRenderMapping() {
return renderMapping;
}
/**
* Sets the value of the renderMapping property.
*
* @param value
* allowed object is
* {@link RenderMapping }
*
*/
public void setRenderMapping(RenderMapping value) {
this.renderMapping = value;
}
/**
* Gets the value of the renderNameStyle property.
*
* @return
* possible object is
* {@link RenderNameStyle }
*
*/
public RenderNameStyle getRenderNameStyle() {
return renderNameStyle;
}
/**
* Sets the value of the renderNameStyle property.
*
* @param value
* allowed object is
* {@link RenderNameStyle }
*
*/
public void setRenderNameStyle(RenderNameStyle value) {
this.renderNameStyle = value;
}
/**
* Gets the value of the renderKeywordStyle property.
*
* @return
* possible object is
* {@link RenderKeywordStyle }
*
*/
public RenderKeywordStyle getRenderKeywordStyle() {
return renderKeywordStyle;
}
/**
* Sets the value of the renderKeywordStyle property.
*
* @param value
* allowed object is
* {@link RenderKeywordStyle }
*
*/
public void setRenderKeywordStyle(RenderKeywordStyle value) {
this.renderKeywordStyle = value;
}
/**
* Gets the value of the renderFormatted property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isRenderFormatted() {
return renderFormatted;
}
/**
* Sets the value of the renderFormatted property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setRenderFormatted(Boolean value) {
this.renderFormatted = value;
}
/**
* Gets the value of the statementType property.
*
* @return
* possible object is
* {@link StatementType }
*
*/
public StatementType getStatementType() {
return statementType;
}
/**
* Sets the value of the statementType property.
*
* @param value
* allowed object is
* {@link StatementType }
*
*/
public void setStatementType(StatementType value) {
this.statementType = value;
}
/**
* Gets the value of the executeLogging property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isExecuteLogging() {
return executeLogging;
}
/**
* Sets the value of the executeLogging property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setExecuteLogging(Boolean value) {
this.executeLogging = value;
}
public List<String> getExecuteListeners() {
if (executeListeners == null) {
executeListeners = new ArrayList<String>();
}
return executeListeners;
}
public Settings withRenderSchema(Boolean value) {
setRenderSchema(value);
return this;
}
public Settings withRenderMapping(RenderMapping value) {
setRenderMapping(value);
return this;
}
public Settings withRenderNameStyle(RenderNameStyle value) {
setRenderNameStyle(value);
return this;
}
public Settings withRenderKeywordStyle(RenderKeywordStyle value) {
setRenderKeywordStyle(value);
return this;
}
public Settings withRenderFormatted(Boolean value) {
setRenderFormatted(value);
return this;
}
public Settings withStatementType(StatementType value) {
setStatementType(value);
return this;
}
public Settings withExecuteLogging(Boolean value) {
setExecuteLogging(value);
return this;
}
public Settings withExecuteListeners(String... values) {
if (values!= null) {
for (String value: values) {
getExecuteListeners().add(value);
}
}
return this;
}
public Settings withExecuteListeners(Collection<String> values) {
if (values!= null) {
getExecuteListeners().addAll(values);
}
return this;
}
}

View File

@ -1,43 +0,0 @@
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.5-b02-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.04.12 at 07:54:20 PM MESZ
//
package org.jooq.conf;
import javax.xml.bind.annotation.XmlEnum;
/**
* <p>Java class for StatementType.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* &lt;simpleType name="StatementType">
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;enumeration value="STATIC_STATEMENT"/>
* &lt;enumeration value="PREPARED_STATEMENT"/>
* &lt;/restriction>
* &lt;/simpleType>
* </pre>
*
*/
@XmlEnum
public enum StatementType {
STATIC_STATEMENT,
PREPARED_STATEMENT;
public String value() {
return name();
}
public static StatementType fromValue(String v) {
return valueOf(v);
}
}

View File

@ -1,9 +0,0 @@
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.5-b02-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.04.12 at 07:54:20 PM MESZ
//
@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.jooq.org/xsd/jooq-runtime-2.3.0.xsd")
package org.jooq.conf;