Here you can find the source of timestamp(Long param)
public static Timestamp timestamp(Long param)
//package com.java2s; //License from project: Open Source License import java.sql.Timestamp; public class Main { /**/*from w w w . jav a2 s. co m*/ * Converts {@link Long} value to appropriate SQL timestamp parameter. */ public static Timestamp timestamp(Long param) { return param != null ? new Timestamp(param) : null; } }