Here you can find the source of getTimestampOrNull(Object dbResult)
Parameter | Description |
---|---|
dbResult | a parameter |
public static Timestamp getTimestampOrNull(Object dbResult)
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; public class Main { /**// ww w. j a v a 2s. co m * Convenience method to format dbResult * @param dbResult * @return */ public static Timestamp getTimestampOrNull(Object dbResult) { if (dbResult == null) { return null; } return (Timestamp) dbResult; } }