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

com.github.quintans.jdbc.transformers.IRowTransformer Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
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