public class SqlDefinition extends Object
Java class for SqlActionType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="SqlActionType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{http://www.citrusframework.org/schema/testcase}description" minOccurs="0"/>
<choice>
<element name="resource">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="file" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
</element>
<element name="statement" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
</choice>
<choice>
<element name="validate-script" type="{http://www.citrusframework.org/schema/testcase}ScriptDefinitionType" minOccurs="0"/>
<element name="validate" maxOccurs="unbounded" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="values" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="value" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
</sequence>
<attribute name="column" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
</element>
</choice>
<element name="extract" maxOccurs="unbounded" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="column" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="variable" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
</element>
</sequence>
<attribute name="datasource" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="ignore-errors" type="{http://www.w3.org/2001/XMLSchema}boolean" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Class and Description |
|---|---|
static class |
SqlDefinition.Extract
Java class for anonymous complex type.
|
static class |
SqlDefinition.Resource
Java class for anonymous complex type.
|
static class |
SqlDefinition.Validate
Java class for anonymous complex type.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
datasource |
protected String |
description |
protected List<SqlDefinition.Extract> |
extracts |
protected Boolean |
ignoreErrors |
protected SqlDefinition.Resource |
resource |
protected List<String> |
statements |
protected List<SqlDefinition.Validate> |
validates |
protected ScriptDefinitionType |
validateScript |
| Constructor and Description |
|---|
SqlDefinition() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDatasource()
Gets the value of the datasource property.
|
String |
getDescription()
Gets the value of the description property.
|
List<SqlDefinition.Extract> |
getExtracts()
Gets the value of the extracts property.
|
SqlDefinition.Resource |
getResource()
Gets the value of the resource property.
|
List<String> |
getStatements()
Gets the value of the statements property.
|
List<SqlDefinition.Validate> |
getValidates()
Gets the value of the validates property.
|
ScriptDefinitionType |
getValidateScript()
Gets the value of the validateScript property.
|
Boolean |
isIgnoreErrors()
Gets the value of the ignoreErrors property.
|
void |
setDatasource(String value)
Sets the value of the datasource property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setIgnoreErrors(Boolean value)
Sets the value of the ignoreErrors property.
|
void |
setResource(SqlDefinition.Resource value)
Sets the value of the resource property.
|
void |
setValidateScript(ScriptDefinitionType value)
Sets the value of the validateScript property.
|
protected String description
protected SqlDefinition.Resource resource
protected List<SqlDefinition.Validate> validates
protected ScriptDefinitionType validateScript
protected List<SqlDefinition.Extract> extracts
protected String datasource
protected Boolean ignoreErrors
public String getDescription()
Stringpublic void setDescription(String value)
value - allowed object is
Stringpublic List<String> getStatements()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the statements property.
For example, to add a new item, do as follows:
getStatements().add(newItem);
Objects of the following type(s) are allowed in the list
String
public SqlDefinition.Resource getResource()
SqlDefinition.Resourcepublic void setResource(SqlDefinition.Resource value)
value - allowed object is
SqlDefinition.Resourcepublic List<SqlDefinition.Validate> getValidates()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the validates property.
For example, to add a new item, do as follows:
getValidates().add(newItem);
Objects of the following type(s) are allowed in the list
SqlDefinition.Validate
public ScriptDefinitionType getValidateScript()
ScriptDefinitionTypepublic void setValidateScript(ScriptDefinitionType value)
value - allowed object is
ScriptDefinitionTypepublic List<SqlDefinition.Extract> getExtracts()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the extracts property.
For example, to add a new item, do as follows:
getExtracts().add(newItem);
Objects of the following type(s) are allowed in the list
SqlDefinition.Extract
public String getDatasource()
Stringpublic void setDatasource(String value)
value - allowed object is
Stringpublic Boolean isIgnoreErrors()
BooleanCopyright © 2008–2015 ConSol* Consulting&Solutions GmbH. All rights reserved.