blob: c3853b8f1d0ebf60d047ce7a6ab6f84d47fcaa84 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2013 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0, which accompanies this distribution
* and is available at https://www.eclipse.org/legal/epl-2.0/.
*
* Contributors:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.jpt.common.utility.internal.jdbc;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* Much like a standard {@link org.eclipse.jpt.common.utility.transformer.Transformer transformer}
* but with a pre-defined input and allows SQL exceptions.
*/
public interface ResultSetRowTransformer<E> {
/**
* Transform the specified result set's <em>current row</em>.
* @see ResultSet#getObject(int)
*/
E transform(ResultSet resultSet) throws SQLException;
}