Here you can find the source of NVL(Object str)
Parameter | Description |
---|---|
Object | str |
public static String NVL(Object str)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w. j ava 2s . c o m*/ * NVL * * @param Object * str * @return String */ public static String NVL(Object str) { if (str == null) { return ""; } return NVL(str.toString()); } /** * NVL * * @param str * str * @return String */ public static String NVL(String str) { if (str == null) { return ""; } if (str.equals("null")) { return ""; } if (str.equals("null|null")) { return ""; } return str; } }