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

org.pojava.persistence.adaptor.TimeAdaptor Maven / Gradle / Ivy

Go to download

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 {

    /**
     * The type the translator will produce for the bean.
     */
    public Class




© 2015 - 2024 Weber Informatics LLC | Privacy Policy