org.pojava.persistence.adaptor.TimeAdaptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of persistence Show documentation
Show all versions of persistence Show documentation
POJava Persistence is a small library of tools used in the
persistence and retrieval of data to and from storage, such as to a
database or XML document. It contains an ORM (Object Relational
Mapping) tool that supports use of existing beans and POJO's rather
than requiring POJO's to be instrumented to support a tool.
The newest version!
package org.pojava.persistence.adaptor;
import org.pojava.lang.Binding;
import org.pojava.transformation.BindingAdaptor;
import java.sql.Time;
import java.util.Date;
/**
* Process a Time value from a ResultSet. This ensures that the hidden date portion of the Time
* value is set to 1/1/1970.
*
* @author John Pile
*/
public class TimeAdaptor extends BindingAdaptor