com.github.quintans.jdbc.transformers.IRowTransformer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simplejdbc Show documentation
Show all versions of simplejdbc Show documentation
Utility class for an eazy JDBC
package com.github.quintans.jdbc.transformers;
import java.sql.SQLException;
import java.util.Collection;
public interface IRowTransformer {
/**
* Initializes the collection that will hold the results
*
* @param rsw
* The ResultSetWrapper
* @return The collection
*/
Collection beforeAll(ResultSetWrapper rsw);
T transform(ResultSetWrapper rsw) throws SQLException;
/**
* Executes additional decision/action over the transformed object.
* For example, It can decide not to include in the result if repeated...
*
* @param result
* @param object
* The transformed object
*/
void onTransformation(Collection result, T object);
void afterAll(Collection result);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy