|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Detects business exceptions in a database. By definition, a database exception occurs if a configured database query returns one or more rows, the first of which satisfies a specified exception condition.
| Nested Class Summary | |
static class |
DatabaseTrigger.Database_Trigger_Result
Deprecated. Use DatabaseExceptionActionResult instead. Deprecated in Flux 7.2. Will be removed in Flux 8.0. |
static class |
DatabaseTrigger.DatabaseTriggerResult
The result when a database exception action runs. |
| Method Summary | |
java.lang.Object |
getArgument(int parameterIndex)
Returns the specified database query argument corresponding to the database query's parameter list. |
int |
getArgumentCount()
Returns the number of query arguments in the database query. |
java.math.BigDecimal |
getBigDecimalArgument(int parameterIndex)
Returns the specified argument, as a BigDecimal, from database query's argument list. |
byte[] |
getBytesArgument(int parameterIndex)
Returns the specified argument, as an array of bytes, from database query's argument list. |
java.sql.Date |
getDateArgument(int parameterIndex)
Returns the specified argument, as a Date, from database query's argument list. |
java.lang.Double |
getDoubleArgument(int parameterIndex)
Returns the specified argument, as a Double, from database query's argument list. |
java.lang.String |
getExceptionCondition()
Returns the expression that is tested to detect a business exception. |
java.lang.Float |
getFloatArgument(int parameterIndex)
Returns the specified argument, as a Float, from database query's argument list. |
java.lang.Integer |
getIntegerArgument(int parameterIndex)
Returns the specified argument, as an Integer, from database query's argument list. |
java.lang.Long |
getLongArgument(int parameterIndex)
Returns the specified argument, as a Long, from database query's argument list. |
java.lang.String |
getQuery()
Returns the database query that is used to detect business exceptions in the database. |
java.lang.Short |
getShortArgument(int parameterIndex)
Returns the specified argument, as a Short, from database query's argument list. |
java.lang.String |
getStringArgument(int parameterIndex)
Returns the specified argument, as a String, from database query's argument list. |
java.sql.Time |
getTimeArgument(int parameterIndex)
Returns the specified argument, as a Time, from database query's argument list. |
java.sql.Timestamp |
getTimestampArgument(int parameterIndex)
Returns the specified argument, as a Timestamp, from database query's argument list. |
boolean |
isNullArgument(int parameterIndex)
Indicates whether the specified database query argument corresponding to the database query's parameter list is null. |
void |
setArgument(int parameterIndex,
java.lang.Object argument)
Sets the specified database query argument in the database query's parameter list. |
void |
setBigDecimalArgument(int parameterIndex,
java.math.BigDecimal argument)
Sets the specified argument as a BigDecimal into the database query's argument list. |
void |
setBytesArgument(int parameterIndex,
byte[] argument)
Sets the specified argument as a byte array into the database query's argument list. |
void |
setDateArgument(int parameterIndex,
java.sql.Date argument)
Sets the specified argument as a Date into the database query's argument list. |
void |
setDoubleArgument(int parameterIndex,
double argument)
Sets the specified argument as a double into the database query's argument list. |
void |
setExceptionCondition(java.lang.String exceptionCondition)
Sets the expression that is tested to detect a business exception. |
void |
setFloatArgument(int parameterIndex,
float argument)
Sets the specified argument as a float into the database query's argument list. |
void |
setIntegerArgument(int parameterIndex,
int argument)
Sets the specified argument as an integer into the database query's argument list. |
void |
setLongArgument(int parameterIndex,
long argument)
Sets the specified argument as a long into the database query's argument list. |
void |
setNullArgument(int parameterIndex)
Sets the specified argument to null in the database query's argument list. |
void |
setQuery(java.lang.String query)
Sets the database query that is used to detect business exceptions in the database. |
void |
setShortArgument(int parameterIndex,
short argument)
Sets the specified argument as a short into the database query's argument list. |
void |
setStringArgument(int parameterIndex,
java.lang.String argument)
Sets the specified argument as a String into the database query's argument list. |
void |
setTimeArgument(int parameterIndex,
java.sql.Time argument)
Sets the specified argument as a Time into the database query's argument list. |
void |
setTimestampArgument(int parameterIndex,
java.sql.Timestamp argument)
Sets the specified argument as a Timestamp into the database query's argument list. |
| Methods inherited from interface flux.runtimedatamap.RuntimeDataMap |
getRuntimeDataMap, setRuntimeDataMap |
| Method Detail |
public java.lang.Object getArgument(int parameterIndex)
throws EngineException
parameterIndex - 0-based parameter index.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the parameter index meets or exceeds
the argument count.public int getArgumentCount()
public java.math.BigDecimal getBigDecimalArgument(int parameterIndex)
parameterIndex - 0-based parameter index.
java.lang.IllegalArgumentException - If the argument is not a BigDecimal.
public byte[] getBytesArgument(int parameterIndex)
throws EngineException
parameterIndex - 0-based parameter index.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the argument is not an array of bytes.
public java.sql.Date getDateArgument(int parameterIndex)
throws EngineException
parameterIndex - 0-based parameter index.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the argument is not a Date.public java.lang.Double getDoubleArgument(int parameterIndex)
parameterIndex - 0-based parameter index.
java.lang.IllegalArgumentException - If the argument is not a Double.public java.lang.String getExceptionCondition()
public java.lang.Float getFloatArgument(int parameterIndex)
throws EngineException
parameterIndex - 0-based parameter index.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the argument is not a Float.
public java.lang.Integer getIntegerArgument(int parameterIndex)
throws EngineException
parameterIndex - 0-based parameter index.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the argument is not an Integer.
public java.lang.Long getLongArgument(int parameterIndex)
throws EngineException
parameterIndex - 0-based parameter index.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the argument is not an Long.public java.lang.String getQuery()
public java.lang.Short getShortArgument(int parameterIndex)
throws EngineException
parameterIndex - 0-based parameter index.
java.lang.IllegalArgumentException - If the argument is not an Short.
EngineException
public java.lang.String getStringArgument(int parameterIndex)
throws EngineException
parameterIndex - 0-based parameter index.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the argument is not an String.
public java.sql.Time getTimeArgument(int parameterIndex)
throws EngineException
parameterIndex - 0-based parameter index.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the argument is not an Time.
public java.sql.Timestamp getTimestampArgument(int parameterIndex)
throws EngineException
parameterIndex - 0-based parameter index.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the argument is not an Timestamp.
public boolean isNullArgument(int parameterIndex)
throws EngineException
parameterIndex - 0-based parameter index.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the parameter index meets or exceeds
the argument count.
public void setArgument(int parameterIndex,
java.lang.Object argument)
throws EngineException
parameterIndex - 0-based parameter index.argument - The database query argument.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the parameter index meets or exceeds
the argument count.
public void setBigDecimalArgument(int parameterIndex,
java.math.BigDecimal argument)
throws EngineException
parameterIndex - 0-based parameter index.argument - The database query argument.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the parameter index meets or exceeds
the argument count.
public void setBytesArgument(int parameterIndex,
byte[] argument)
throws EngineException
parameterIndex - 0-based parameter index.argument - The database query argument.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the parameter index meets or exceeds
the argument count.
public void setDateArgument(int parameterIndex,
java.sql.Date argument)
throws EngineException
parameterIndex - 0-based parameter index.argument - The database query argument.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the parameter index meets or exceeds
the argument count.
public void setDoubleArgument(int parameterIndex,
double argument)
throws EngineException
parameterIndex - 0-based parameter index.argument - The database query argument.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the parameter index meets or exceeds
the argument count.public void setExceptionCondition(java.lang.String exceptionCondition)
exceptionCondition - The expression that is tested to detect a
business exception.
public void setFloatArgument(int parameterIndex,
float argument)
throws EngineException
parameterIndex - 0-based parameter index.argument - The database query argument.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the parameter index meets or exceeds
the argument count.
public void setIntegerArgument(int parameterIndex,
int argument)
throws EngineException
parameterIndex - 0-based parameter index.argument - The database query argument.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the parameter index meets or exceeds
the argument count.
public void setLongArgument(int parameterIndex,
long argument)
throws EngineException
parameterIndex - 0-based parameter index.argument - The database query argument.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the parameter index meets or exceeds
the argument count.
public void setNullArgument(int parameterIndex)
throws EngineException
parameterIndex - 0-based parameter index
EngineException - If a system error occurs.public void setQuery(java.lang.String query)
query - The database query that is used to detect business exceptions
in the database.
public void setShortArgument(int parameterIndex,
short argument)
throws EngineException
parameterIndex - 0-based parameter index.argument - The database query argument.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the parameter index meets or exceeds
the argument count.
public void setStringArgument(int parameterIndex,
java.lang.String argument)
throws EngineException
parameterIndex - 0-based parameter index.argument - The database query argument.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the parameter index meets or exceeds
the argument count.
public void setTimeArgument(int parameterIndex,
java.sql.Time argument)
throws EngineException
parameterIndex - 0-based parameter index.argument - The database query argument.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the parameter index meets or exceeds
the argument count.
public void setTimestampArgument(int parameterIndex,
java.sql.Timestamp argument)
throws EngineException
parameterIndex - 0-based parameter index.argument - The database query argument.
EngineException - If a system error occurs.
java.lang.IllegalArgumentException - If the parameter index meets or exceeds
the argument count.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||