Class SqlModel
- java.lang.Object
-
- com.consol.citrus.model.testcase.core.SqlModel
-
public class SqlModel extends Object
Java-Klasse für SqlActionType complex type.
Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
<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="transaction-manager" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="transaction-timeout" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="transaction-isolation-level" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="ignore-errors" type="{http://www.w3.org/2001/XMLSchema}boolean" /> </restriction> </complexContent> </complexType>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SqlModel.Extract
Java-Klasse für anonymous complex type.static class
SqlModel.Resource
Java-Klasse für anonymous complex type.static class
SqlModel.Validate
Java-Klasse für anonymous complex type.
-
Field Summary
Fields Modifier and Type Field Description protected String
datasource
protected String
description
protected List<SqlModel.Extract>
extracts
protected Boolean
ignoreErrors
protected SqlModel.Resource
resource
protected List<String>
statements
protected String
transactionIsolationLevel
protected String
transactionManager
protected String
transactionTimeout
protected List<SqlModel.Validate>
validates
protected ScriptDefinitionType
validateScript
-
Constructor Summary
Constructors Constructor Description SqlModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDatasource()
Ruft den Wert der datasource-Eigenschaft ab.String
getDescription()
Ruft den Wert der description-Eigenschaft ab.List<SqlModel.Extract>
getExtracts()
Gets the value of the extracts property.SqlModel.Resource
getResource()
Ruft den Wert der resource-Eigenschaft ab.List<String>
getStatements()
Gets the value of the statements property.String
getTransactionIsolationLevel()
Ruft den Wert der transactionIsolationLevel-Eigenschaft ab.String
getTransactionManager()
Ruft den Wert der transactionManager-Eigenschaft ab.String
getTransactionTimeout()
Ruft den Wert der transactionTimeout-Eigenschaft ab.List<SqlModel.Validate>
getValidates()
Gets the value of the validates property.ScriptDefinitionType
getValidateScript()
Ruft den Wert der validateScript-Eigenschaft ab.Boolean
isIgnoreErrors()
Ruft den Wert der ignoreErrors-Eigenschaft ab.void
setDatasource(String value)
Legt den Wert der datasource-Eigenschaft fest.void
setDescription(String value)
Legt den Wert der description-Eigenschaft fest.void
setIgnoreErrors(Boolean value)
Legt den Wert der ignoreErrors-Eigenschaft fest.void
setResource(SqlModel.Resource value)
Legt den Wert der resource-Eigenschaft fest.void
setTransactionIsolationLevel(String value)
Legt den Wert der transactionIsolationLevel-Eigenschaft fest.void
setTransactionManager(String value)
Legt den Wert der transactionManager-Eigenschaft fest.void
setTransactionTimeout(String value)
Legt den Wert der transactionTimeout-Eigenschaft fest.void
setValidateScript(ScriptDefinitionType value)
Legt den Wert der validateScript-Eigenschaft fest.
-
-
-
Field Detail
-
description
protected String description
-
resource
protected SqlModel.Resource resource
-
validates
protected List<SqlModel.Validate> validates
-
validateScript
protected ScriptDefinitionType validateScript
-
extracts
protected List<SqlModel.Extract> extracts
-
datasource
protected String datasource
-
transactionManager
protected String transactionManager
-
transactionTimeout
protected String transactionTimeout
-
transactionIsolationLevel
protected String transactionIsolationLevel
-
ignoreErrors
protected Boolean ignoreErrors
-
-
Method Detail
-
getDescription
public String getDescription()
Ruft den Wert der description-Eigenschaft ab.- Returns:
- possible object is
String
-
setDescription
public void setDescription(String value)
Legt den Wert der description-Eigenschaft fest.- Parameters:
value
- allowed object isString
-
getStatements
public List<String> getStatements()
Gets the value of the statements property.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
-
getResource
public SqlModel.Resource getResource()
Ruft den Wert der resource-Eigenschaft ab.- Returns:
- possible object is
SqlModel.Resource
-
setResource
public void setResource(SqlModel.Resource value)
Legt den Wert der resource-Eigenschaft fest.- Parameters:
value
- allowed object isSqlModel.Resource
-
getValidates
public List<SqlModel.Validate> getValidates()
Gets the value of the validates property.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
SqlModel.Validate
-
getValidateScript
public ScriptDefinitionType getValidateScript()
Ruft den Wert der validateScript-Eigenschaft ab.- Returns:
- possible object is
ScriptDefinitionType
-
setValidateScript
public void setValidateScript(ScriptDefinitionType value)
Legt den Wert der validateScript-Eigenschaft fest.- Parameters:
value
- allowed object isScriptDefinitionType
-
getExtracts
public List<SqlModel.Extract> getExtracts()
Gets the value of the extracts property.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
SqlModel.Extract
-
getDatasource
public String getDatasource()
Ruft den Wert der datasource-Eigenschaft ab.- Returns:
- possible object is
String
-
setDatasource
public void setDatasource(String value)
Legt den Wert der datasource-Eigenschaft fest.- Parameters:
value
- allowed object isString
-
getTransactionManager
public String getTransactionManager()
Ruft den Wert der transactionManager-Eigenschaft ab.- Returns:
- possible object is
String
-
setTransactionManager
public void setTransactionManager(String value)
Legt den Wert der transactionManager-Eigenschaft fest.- Parameters:
value
- allowed object isString
-
getTransactionTimeout
public String getTransactionTimeout()
Ruft den Wert der transactionTimeout-Eigenschaft ab.- Returns:
- possible object is
String
-
setTransactionTimeout
public void setTransactionTimeout(String value)
Legt den Wert der transactionTimeout-Eigenschaft fest.- Parameters:
value
- allowed object isString
-
getTransactionIsolationLevel
public String getTransactionIsolationLevel()
Ruft den Wert der transactionIsolationLevel-Eigenschaft ab.- Returns:
- possible object is
String
-
setTransactionIsolationLevel
public void setTransactionIsolationLevel(String value)
Legt den Wert der transactionIsolationLevel-Eigenschaft fest.- Parameters:
value
- allowed object isString
-
isIgnoreErrors
public Boolean isIgnoreErrors()
Ruft den Wert der ignoreErrors-Eigenschaft ab.- Returns:
- possible object is
Boolean
-
-