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

org.xblackcat.sjpu.storage.converter.IToObjectConverter Maven / Gradle / Ivy

Go to download

Service for generating DB access logic in simple way via interfaces and annotations

There is a newer version: 2.0
Show newest version
package org.xblackcat.sjpu.storage.converter;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *  Implementation of the interface should have a default constructor.
 *
 * @author xBlackCat
 */

public interface IToObjectConverter {
    /**
     * Converts a current row in ResultSet object to correspond object.
     *
     * @param rs result of query.
     * @return a new object from ResultSet row fields
     * @throws java.sql.SQLException if any database related storage is affected.
     */
    T convert(ResultSet rs) throws SQLException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy