org.sql2o.converters.DateConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of anima Show documentation
Show all versions of anima Show documentation
Operate the database like a stream
package org.sql2o.converters;
import java.util.Date;
/**
* Used by sql2o to convert a value from the database into a {@link Date}.
*/
public class DateConverter extends AbstractDateConverter {
public static final DateConverter instance = new DateConverter();
public DateConverter() {
super(Date.class);
}
@Override
protected Date fromMilliseconds(long millisecond) {
return new Date(millisecond);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy