|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DatabaseConditionAction
Executes an SQL query and then, using the first row of JDBC result set information returned from the query, evaluates a condition expression to see if it is satisfied. Useful for determining when the data in a database meets certain conditions and satisfies certain criteria.
For this purpose, the database connection available to the flow context can be used, or alternately, database connection information can be provided to connect to a data source or use a direct JDBC connection. The Database Condition Action returns its result in the flow context variable "RESULT". The following table contains more information on accessing and using the result.Flow Context Variable | Field | Java Type | Description |
---|---|---|---|
RESULT | result | boolean | A boolean flag indicating whether the condition was satisfied. |
Nested Class Summary | |
---|---|
static class |
DatabaseConditionAction.DatabaseConditionActionResult
The result when a DatabaseConditionAction runs. |
Method Summary | |
---|---|
java.lang.String |
getCondition()
Returns the expression that is tested to detect when the data in a database satisfies certain criteria. |
java.util.List<java.lang.Object> |
getParameters()
Returns the parameters for the SQL query. |
java.lang.String |
getQuery()
Returns the SQL query that is used to detect when the data in a database satisfies certain criteria. |
void |
setCondition(java.lang.String condition)
Sets the expression that is tested to detect when the data in a database satisfies certain criteria. |
void |
setParameters(java.util.List<java.lang.Object> parameters)
Sets the parameters for the SQL query. |
void |
setQuery(java.lang.String query)
Sets the SQL query that is used to detect when the data in a database satisfies certain criteria. |
Methods inherited from interface flux.runtimedatamap.RuntimeDataMap |
---|
getRuntimeDataMap, setRuntimeDataMap |
Method Detail |
---|
java.lang.String getCondition()
java.util.List<java.lang.Object> getParameters()
java.lang.String getQuery()
void setCondition(java.lang.String condition)
condition
- The expression that is tested to detect when the data in a
database satisfies certain criteria.void setParameters(java.util.List<java.lang.Object> parameters)
parameters
- The parameters for the SQL query.void setQuery(java.lang.String query)
query
- The SQL query that is used to detect when the data
in a database satisfies certain criteria.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |