All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nitorcreations.nflow.engine.internal.dao.DaoUtil Maven / Gradle / Ivy

There is a newer version: 3.3.0
Show newest version
package com.nitorcreations.nflow.engine.internal.dao;

import java.sql.Timestamp;

import org.joda.time.DateTime;

public class DaoUtil {

  private DaoUtil() {
    // prevent instantiation
  }

  public static Timestamp toTimestamp(DateTime time) {
    return time == null ? null : new Timestamp(time.getMillis());
  }

  public static DateTime toDateTime(Timestamp time) {
    return time == null ? null : new DateTime(time.getTime());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy