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

jp.co.future.uroborosql.parameter.mapper.IntWrapperArrayParameterMapper Maven / Gradle / Ivy

/**
 * Copyright (c) 2017-present, Future Corporation
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
package jp.co.future.uroborosql.parameter.mapper;

import java.sql.Connection;

/**
 * {@link Integer}配列用{@link BindParameterMapper}
 *
 * @author H.Sugimoto
 */
public class IntWrapperArrayParameterMapper implements BindParameterMapper {

	/**
	 * {@inheritDoc}
	 *
	 * @see jp.co.future.uroborosql.parameter.mapper.BindParameterMapper#targetType()
	 */
	@Override
	public Class targetType() {
		return Integer[].class;
	}

	@Override
	public Object toJdbc(final Integer[] original, final Connection connection,
			final BindParameterMapperManager parameterMapperManager) {
		return JdbcParameterFactory.createArrayOf(connection, "INTEGER", original);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy