Java Code Examples for org.pentaho.di.core.Const#NULL_BOOLEAN

The following examples show how to use org.pentaho.di.core.Const#NULL_BOOLEAN . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Value.java    From pentaho-kettle with Apache License 2.0 6 votes vote down vote up
/**
 * Returns a String representing the boolean value. It will be either "true" or "false".
 *
 * @return a String representing the boolean value.
 */
private String toStringBoolean() {
  // Code was removed from this method as ValueBoolean
  // did not store length, so some parts could never be
  // called.
  String retval;
  if ( value == null ) {
    return null;
  }

  if ( isNull() ) {
    retval = Const.NULL_BOOLEAN;
  } else {
    retval = value.getBoolean() ? "true" : "false";
  }

  return retval;
}