org.xblackcat.sjpu.storage.converter.IToObjectConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sjpu-dbah Show documentation
Show all versions of sjpu-dbah Show documentation
Service for generating DB access logic in simple way via interfaces and annotations
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