public static class EtlVariable.TextUtils extends Object
Provides text operations.
Note: As of version 1.1 the same functionality can be achieved by directly using JEXL2.0 syntax elements like ternary operators.
| Constructor and Description |
|---|
EtlVariable.TextUtils() |
| Modifier and Type | Method and Description |
|---|---|
Object |
ifNull(Object object)
Substitute an object with empty string when a null value is encountered.
|
Object |
ifNull(Object object,
Object replacement)
Substitute an object when a null value is encountered.
|
Object |
nullIf(Object expr1,
Object expr2)
If expr1 = expr2 is true, return NULL else return expr1.
|
public Object ifNull(Object object, Object replacement)
object - object to check.replacement - replacement object.public Object ifNull(Object object)
object - object to check.Copyright © 2006-2012. All Rights Reserved.