
com.github.panhongan.bean2sql.condition.sql.SqlCondition Maven / Gradle / Ivy
package com.github.panhongan.bean2sql.condition.sql;
import com.github.panhongan.bean2sql.condition.ConditionOperator;
import org.apache.commons.lang3.tuple.Pair;
import java.util.Collections;
import java.util.Map;
/**
* @author panhongan
* @since 2019.7.8
* @version 1.0
*/
public interface SqlCondition {
Pair> EMPTY_CONDITION_SQL = Pair.of("", Collections.emptyMap());
ConditionOperator getConditionOperator();
/**
* Pair.left : PreparedStatement sql
* Pair.Right:
* map.key : pos, eg : 1
* map.value : value at pos, eg : 1000
*
* eg:
* select name, age from t_person where name = ? and age > ?
* condition value : (1, "hello"), (2, 20)
*
*
* @return Pair
*/
Pair> conditionSql();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy