Here you can find the source of nvl(String pValue)
public static String nvl(String pValue)
//package com.java2s; //License from project: Open Source License public class Main { public static <T> T nvl(T pValue, T pReplaceNullsWith) { if (pValue != null) { return pValue; }/*from w w w. ja v a 2s . c om*/ return pReplaceNullsWith; } /** (OVERLOADED) SQL like Null value replace utility */ public static String nvl(String pValue, String pReplaceNullsWith) { if (pValue != null && pValue.length() != 0) { return pValue; } return pReplaceNullsWith; } /** (OVERLOADED) SQL like Null value replace utility */ public static final int nvl(String pValue, int pReplaceNullsWith) { if (pValue != null && pValue.length() != 0) { return Integer.valueOf(pValue).intValue(); } return pReplaceNullsWith; } /** (OVERLOADED) SQL like Null value replace utility converts to "" */ public static String nvl(String pValue) { return nvl(pValue, ""); } }