com.bld.commons.reflection.model.BuildQueryParameter Maven / Gradle / Ivy
/**
* @author Francesco Baldi
* @mail [email protected]
* @class bld.commons.persistence.reflection.model.BuildQueryFilter.java
*/
package com.bld.commons.reflection.model;
import java.util.HashMap;
import java.util.Map;
/**
* The Class BuildQueryFilter.
*
* @param the generic type
* @param the generic type
* @param the generic type
*/
public abstract class BuildQueryParameter,MT> {
/** The map conditions. */
private Map mapConditions;
/** The map orders. */
private Map mapOrders;
/** The query parameter. */
private QP queryParameter;
/** The sql. */
private StringBuilder sql;
/**
* Instantiates a new builds the query parameter.
*
* @param mapConditions the map conditions
* @param mapOrders the map orders
* @param queryParameter the query parameter
* @param sql the sql
*/
public BuildQueryParameter(Map mapConditions, Map mapOrders, QP queryParameter, String sql) {
super();
this.mapConditions = mapConditions;
this.queryParameter = queryParameter;
this.sql = new StringBuilder(sql);
this.mapOrders = mapOrders;
}
/**
* Instantiates a new builds the query filter.
*/
public BuildQueryParameter() {
super();
this.mapConditions = new HashMap<>();
this.mapOrders = new HashMap<>();
}
/**
* Gets the map conditions.
*
* @return the map conditions
*/
public Map getMapConditions() {
return mapConditions;
}
/**
* Gets the query filter.
*
* @return the query filter
*/
public QP getQueryParameter() {
return queryParameter;
}
/**
* Gets the sql.
*
* @return the sql
*/
public StringBuilder getSql() {
return sql;
}
/**
* Sets the sql.
*
* @param sql the new sql
*/
public void setSql(StringBuilder sql) {
this.sql = sql;
}
/**
* Gets the map orders.
*
* @return the map orders
*/
public Map getMapOrders() {
return mapOrders;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy