42 lines
889 B
Java
42 lines
889 B
Java
// ============================================================================
|
|
//
|
|
// %GENERATED_LICENSE%
|
|
//
|
|
// ============================================================================
|
|
package routines;
|
|
|
|
public class Relational {
|
|
|
|
/**
|
|
* Indicates when a variable is the null value.
|
|
*
|
|
* {talendTypes} boolean | Boolean
|
|
*
|
|
* {Category} Relational
|
|
*
|
|
* {param} Object(null)
|
|
*
|
|
* {example} ISNULL(null)
|
|
*
|
|
*
|
|
*/
|
|
public static boolean ISNULL(Object variable) {
|
|
return variable == null;
|
|
}
|
|
|
|
/**
|
|
* Returns the complement of the logical value of an expression.
|
|
*
|
|
* {talendTypes} boolean | Boolean
|
|
*
|
|
* {Category} Relational
|
|
*
|
|
* {param} boolean(true)
|
|
*
|
|
* {example} NOT(false)
|
|
*/
|
|
public static boolean NOT(boolean expression) {
|
|
return !expression;
|
|
}
|
|
}
|