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

ru.curs.celesta.dbutils.stmt.ValueFromParameterSetter Maven / Gradle / Ivy

The newest version!
package ru.curs.celesta.dbutils.stmt;

import ru.curs.celesta.dbutils.QueryBuildingHelper;
import ru.curs.celesta.dbutils.filter.Range;

import java.sql.PreparedStatement;

/**
 * Parameter setter for 'from' part of range filter.
 */
public final class ValueFromParameterSetter extends ParameterSetter {
    private final Range r;


    public ValueFromParameterSetter(QueryBuildingHelper queryBuildingHelper, Range r) {
        super(queryBuildingHelper);
        this.r = r;
    }

    @Override
    public void execute(PreparedStatement stmt, int paramNum, Object[] rec, int recversion)  {
        setParam(stmt, paramNum, r.getValueFrom());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy