Here you can find the source of NVL(Long l)
public static long NVL(Long l)
//package com.java2s; public class Main { public static long NVL(Long l) { if (l == null) { return 0L; }//from w w w.jav a2 s . co m return l.longValue(); } public static int NVL(Integer i) { if (i == null) { return 0; } return i.intValue(); } }