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

com.redis.riot.db.NullableSqlParameterSource Maven / Gradle / Ivy

The newest version!
package com.redis.riot.db;

import java.util.Map;

import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
import org.springframework.lang.Nullable;

public class NullableSqlParameterSource extends MapSqlParameterSource {

	public NullableSqlParameterSource(@Nullable Map values) {
		super(values);
	}

	@Override
	@Nullable
	public Object getValue(String paramName) {
		if (!hasValue(paramName)) {
			return null;
		}
		return super.getValue(paramName);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy