From a727ec76e20ee6b5e95b5a220a2a1389a7a303c6 Mon Sep 17 00:00:00 2001 From: lucasward Date: Thu, 27 Mar 2008 04:41:15 +0000 Subject: [PATCH] BATCH-514: Forgot to remove an unnecessary interface. --- .../KeyMappingPreparedStatementSetter.java | 73 ------------------- 1 file changed, 73 deletions(-) delete mode 100644 spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/KeyMappingPreparedStatementSetter.java diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/KeyMappingPreparedStatementSetter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/KeyMappingPreparedStatementSetter.java deleted file mode 100644 index 2cccf551c..000000000 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/support/KeyMappingPreparedStatementSetter.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2006-2007 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.springframework.batch.item.database.support; - -import java.sql.PreparedStatement; -import java.sql.SQLException; - -import org.springframework.batch.item.ExecutionContext; -import org.springframework.batch.item.database.DrivingQueryItemReader; -import org.springframework.batch.item.database.KeyCollector; -import org.springframework.jdbc.core.PreparedStatementSetter; -import org.springframework.jdbc.core.RowMapper; - -/** - *

- * Extension of the standard {@link RowMapper} interface to provide for - * converting an object returned from a RowMapper to {@link ExecutionContext} - * and back again. This interface serves three purposes: - *

- * - * - * - * The most common use case for this interface is the need to map multiple - * columns to a key, as is necessary by the - * {@link MultipleColumnJdbcKeyCollector}. In general, it's much simpler to use - * one key as a column, and if the data itself allows this, then it should be - * used. However, in certain cases there is no choice and multiple columns must - * be used. Using a {@link KeyMappingPreparedStatementSetter}, developers can create - * each unique key to suite their specific needs, and also describe how such a - * key would be converted to {@link ExecutionContext}, so that it can be - * serialized and stored. - * - * @author Lucas Ward - * @see RowMapper - * @see MultipleColumnJdbcKeyCollector - * @see KeyCollector - * @since 1.0 - */ -public interface KeyMappingPreparedStatementSetter { - - /** - * Given the provided restart data, return a PreparedStatementSeter that can - * be used as parameters to a JdbcTemplate. - * - * @param executionContext - * @return an array of objects that can be used as arguments to a - * JdbcTemplate. - */ - void setValues(PreparedStatement ps, Object key) throws SQLException; -}