package com.ejie.ad74a.dao;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.sql.DataSource;

import org.springframework.dao.support.DataAccessUtils;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.ejie.ad74a.model.MaestroSubtpoLlamada;
import com.ejie.ad74a.model.MaestroTipoLlamada;
import com.ejie.ad74a.util.UtilSQL;
import com.ejie.x38.dao.RowNumResultSetExtractor;
import com.ejie.x38.dto.JerarquiaDto;
import com.ejie.x38.dto.TableManager;
import com.ejie.x38.dto.TableManagerJerarquia;
import com.ejie.x38.dto.TableRequestDto;
import com.ejie.x38.dto.TableRowDto;

/**
 * MaestroSubtpoLlamadaDaoImpl generated by UDA, 10-jul-2023 9:33:38.
 * 
 * @author UDA
 */

@Repository
@Transactional
public class MaestroSubtpoLlamadaDaoImpl implements MaestroSubtpoLlamadaDao {

	public static final String[] ORDER_BY_WHITE_LIST = new String[] { "IDSUBTIPOLLAMADA56", "DESCES56", "DESCEU56",
			"FALTA56", "USUALTA56", "FMODIF56", "USUMODIF56", "MAESTROTIPOLLAMADAIDTIPOLLAMADA55",
			"MAESTROTIPOLLAMADADESCES55", "MAESTROTIPOLLAMADADESCEU55", "MAESTROTIPOLLAMADAFALTA55",
			"MAESTROTIPOLLAMADAUSUALTA55", "MAESTROTIPOLLAMADAFMODIF55", "MAESTROTIPOLLAMADAUSUMODIF55" };

	private JdbcTemplate jdbcTemplate;

	/*
	 * ROW_MAPPERS
	 */
	private RowMapper<MaestroSubtpoLlamada> rwMap = new RowMapper<MaestroSubtpoLlamada>() {
		public MaestroSubtpoLlamada mapRow(ResultSet resultSet, int rowNum) throws SQLException {
			return new MaestroSubtpoLlamada(UtilSQL.getLong(resultSet, "IDSUBTIPOLLAMADA56"),
					resultSet.getString("DESCES56"), resultSet.getString("DESCEU56"), resultSet.getDate("FALTA56"),
					resultSet.getString("USUALTA56"), resultSet.getDate("FMODIF56"), resultSet.getString("USUMODIF56"),
					new MaestroTipoLlamada(UtilSQL.getLong(resultSet, "MaestroTipoLlamadaIDTIPOLLAMADA55"),
							resultSet.getString("MaestroTipoLlamadaDESCES55"),
							resultSet.getString("MaestroTipoLlamadaDESCEU55"),
							resultSet.getDate("MaestroTipoLlamadaFALTA55"),
							resultSet.getString("MaestroTipoLlamadaUSUALTA55"),
							resultSet.getDate("MaestroTipoLlamadaFMODIF55"),
							resultSet.getString("MaestroTipoLlamadaUSUMODIF55")));
		}
	};

	private RowMapper<MaestroSubtpoLlamada> rwMapPK = new RowMapper<MaestroSubtpoLlamada>() {
		public MaestroSubtpoLlamada mapRow(ResultSet resultSet, int rowNum) throws SQLException {
			return new MaestroSubtpoLlamada(UtilSQL.getLong(resultSet, "IDSUBTIPOLLAMADA56"));
		}
	};

	/**
	 * Rowmapper para Jerarquía
	 *
	 * @param dataSource DataSource
	 * @return
	 */
	private RowMapper<JerarquiaDto<MaestroSubtpoLlamada>> rwMapJerarquia = new RowMapper<JerarquiaDto<MaestroSubtpoLlamada>>() {
		public JerarquiaDto<MaestroSubtpoLlamada> mapRow(ResultSet resultSet, int rowNum) throws SQLException {

			MaestroSubtpoLlamada maestrosubtpollamada = new MaestroSubtpoLlamada(
					UtilSQL.getLong(resultSet, "IDSUBTIPOLLAMADA56"), resultSet.getString("DESCES56"),
					resultSet.getString("DESCEU56"), resultSet.getDate("FALTA56"), resultSet.getString("USUALTA56"),
					resultSet.getDate("FMODIF56"), resultSet.getString("USUMODIF56"),
					new MaestroTipoLlamada(UtilSQL.getLong(resultSet, "MaestroTipoLlamadaIDTIPOLLAMADA55"),
							resultSet.getString("MaestroTipoLlamadaDESCES55"),
							resultSet.getString("MaestroTipoLlamadaDESCEU55"),
							resultSet.getDate("MaestroTipoLlamadaFALTA55"),
							resultSet.getString("MaestroTipoLlamadaUSUALTA55"),
							resultSet.getDate("MaestroTipoLlamadaFMODIF55"),
							resultSet.getString("MaestroTipoLlamadaUSUMODIF55")));

			JerarquiaDto<MaestroSubtpoLlamada> jerarquia = new JerarquiaDto<MaestroSubtpoLlamada>();
			jerarquia.setModel(maestrosubtpollamada);
			jerarquia.setLevel(UtilSQL.getLong(resultSet, "LEVEL").intValue());
			jerarquia.setParentNodes(resultSet.getString("PARENTNODES"));
			jerarquia.setIsLeaf(Boolean.parseBoolean(resultSet.getString("ISLEAF")));
			jerarquia.setFilter(Boolean.parseBoolean(resultSet.getString("FILTER")));
			return jerarquia;
		}
	};

	/**
	 * Method use to set the datasource.
	 *
	 * @param dataSource DataSource
	 * @return
	 */
	@Resource
	public void setDataSource(DataSource dataSource) {
		this.jdbcTemplate = new JdbcTemplate(dataSource);
	}

	/*
	 * OPERACIONES CRUD
	 */

	/**
	 * Inserts a single row in the MaestroSubtpoLlamada table.
	 *
	 * @param maestrosubtpollamada MaestroSubtpoLlamada
	 * @return MaestroSubtpoLlamada
	 */
	public MaestroSubtpoLlamada add(MaestroSubtpoLlamada maestrosubtpollamada) {
		String query = "INSERT INTO MAESTRO_SUBTPO_LLAMADA (ID_SUBTIPO_LLAMADA_56, ID_TIPO_LLAMADA_56, DESC_ES_56, DESC_EU_56, F_ALTA_56, USU_ALTA_56, F_MODIF_56, USU_MODIF_56) VALUES (?,?,?,?,?,?,?,?)";
		Object getMaestroTipoLlamadaIdTipoLlamada55Aux = null;
		if (maestrosubtpollamada.getMaestroTipoLlamada() != null
				&& maestrosubtpollamada.getMaestroTipoLlamada().getIdTipoLlamada55() != null) {
			getMaestroTipoLlamadaIdTipoLlamada55Aux = maestrosubtpollamada.getMaestroTipoLlamada().getIdTipoLlamada55();
		}
		this.jdbcTemplate.update(query, maestrosubtpollamada.getIdSubtipoLlamada56(),
				getMaestroTipoLlamadaIdTipoLlamada55Aux, maestrosubtpollamada.getDescEs56(),
				maestrosubtpollamada.getDescEu56(), maestrosubtpollamada.getfAlta56(),
				maestrosubtpollamada.getUsuAlta56(), maestrosubtpollamada.getfModif56(),
				maestrosubtpollamada.getUsuModif56());
		return maestrosubtpollamada;
	}

	/**
	 * Updates a single row in the MaestroSubtpoLlamada table.
	 *
	 * @param maestrosubtpollamada MaestroSubtpoLlamada
	 * @return MaestroSubtpoLlamada
	 */
	public MaestroSubtpoLlamada update(MaestroSubtpoLlamada maestrosubtpollamada) {
		String query = "UPDATE MAESTRO_SUBTPO_LLAMADA SET ID_TIPO_LLAMADA_56=?, DESC_ES_56=?, DESC_EU_56=?, F_ALTA_56=?, USU_ALTA_56=?, F_MODIF_56=?, USU_MODIF_56=? WHERE ID_SUBTIPO_LLAMADA_56=?";
		Object getMaestroTipoLlamadaIdTipoLlamada55Aux = null;
		if (maestrosubtpollamada.getMaestroTipoLlamada() != null
				&& maestrosubtpollamada.getMaestroTipoLlamada().getIdTipoLlamada55() != null) {
			getMaestroTipoLlamadaIdTipoLlamada55Aux = maestrosubtpollamada.getMaestroTipoLlamada().getIdTipoLlamada55();
		}
		this.jdbcTemplate.update(query, getMaestroTipoLlamadaIdTipoLlamada55Aux, maestrosubtpollamada.getDescEs56(),
				maestrosubtpollamada.getDescEu56(), maestrosubtpollamada.getfAlta56(),
				maestrosubtpollamada.getUsuAlta56(), maestrosubtpollamada.getfModif56(),
				maestrosubtpollamada.getUsuModif56(), maestrosubtpollamada.getIdSubtipoLlamada56());
		return maestrosubtpollamada;
	}

	/**
	 * Finds a single row in the MaestroSubtpoLlamada table.
	 *
	 * @param maestrosubtpollamada MaestroSubtpoLlamada
	 * @return MaestroSubtpoLlamada
	 */
	@Transactional(readOnly = true)
	public MaestroSubtpoLlamada find(MaestroSubtpoLlamada maestrosubtpollamada) {
		String query = "SELECT t1.ID_SUBTIPO_LLAMADA_56 IDSUBTIPOLLAMADA56, t1.DESC_ES_56 DESCES56, t1.DESC_EU_56 DESCEU56, t1.F_ALTA_56 FALTA56, t1.USU_ALTA_56 USUALTA56, t1.F_MODIF_56 FMODIF56, t1.USU_MODIF_56 USUMODIF56, t2.ID_TIPO_LLAMADA_55 MAESTROTIPOLLAMADAIDTIPOLLAMADA55, t2.DESC_ES_55 MAESTROTIPOLLAMADADESCES55, t2.DESC_EU_55 MAESTROTIPOLLAMADADESCEU55, t2.F_ALTA_55 MAESTROTIPOLLAMADAFALTA55, t2.USU_ALTA_55 MAESTROTIPOLLAMADAUSUALTA55, t2.F_MODIF_55 MAESTROTIPOLLAMADAFMODIF55, t2.USU_MODIF_55 MAESTROTIPOLLAMADAUSUMODIF55 FROM MAESTRO_SUBTPO_LLAMADA t1 , MAESTRO_TIPO_LLAMADA t2  WHERE t1.ID_SUBTIPO_LLAMADA_56 = ?   AND t1.ID_TIPO_LLAMADA_56= t2.ID_TIPO_LLAMADA_55(+)";

		List<MaestroSubtpoLlamada> maestrosubtpollamadaList = this.jdbcTemplate.query(query, this.rwMap,
				maestrosubtpollamada.getIdSubtipoLlamada56());
		return (MaestroSubtpoLlamada) DataAccessUtils.uniqueResult(maestrosubtpollamadaList);
	}

	/**
	 * Removes a single row in the MaestroSubtpoLlamada table.
	 *
	 * @param maestrosubtpollamada MaestroSubtpoLlamada
	 * @return
	 */
	public void remove(MaestroSubtpoLlamada maestrosubtpollamada) {
		String query = "DELETE FROM MAESTRO_SUBTPO_LLAMADA WHERE ID_SUBTIPO_LLAMADA_56=?";
		this.jdbcTemplate.update(query, maestrosubtpollamada.getIdSubtipoLlamada56());
	}

	/**
	 * Exporta Datos al clipBoard
	 *
	 */
	public List<MaestroSubtpoLlamada> getMultiple(MaestroSubtpoLlamada filterMaestroSubtpoLlamada,
			TableRequestDto tableRequestDto, Boolean startsWith) {

		StringBuilder query = new StringBuilder(
				"SELECT t1.ID_SUBTIPO_LLAMADA_56 IDSUBTIPOLLAMADA56, t1.DESC_ES_56 DESCES56, t1.DESC_EU_56 DESCEU56, t1.F_ALTA_56 FALTA56, t1.USU_ALTA_56 USUALTA56, t1.F_MODIF_56 FMODIF56, t1.USU_MODIF_56 USUMODIF56, t2.ID_TIPO_LLAMADA_55 MAESTROTIPOLLAMADAIDTIPOLLAMADA55, t2.DESC_ES_55 MAESTROTIPOLLAMADADESCES55, t2.DESC_EU_55 MAESTROTIPOLLAMADADESCEU55, t2.F_ALTA_55 MAESTROTIPOLLAMADAFALTA55, t2.USU_ALTA_55 MAESTROTIPOLLAMADAUSUALTA55, t2.F_MODIF_55 MAESTROTIPOLLAMADAFMODIF55, t2.USU_MODIF_55 MAESTROTIPOLLAMADAUSUMODIF55");
		query.append(" FROM MAESTRO_SUBTPO_LLAMADA t1 , MAESTRO_TIPO_LLAMADA t2  ");
		// Where clause & Params
		Map<String, Object> mapaWhere = this.getWhereLikeMap(filterMaestroSubtpoLlamada, startsWith);
		StringBuilder where = new StringBuilder(query + " WHERE 1=1 ");
		where.append(mapaWhere.get("query"));

		@SuppressWarnings("unchecked")
		List<Object> params = (List<Object>) mapaWhere.get("params");

		StringBuilder sbMultipleSQL = TableManager.getSelectMultipleQuery(tableRequestDto, MaestroSubtpoLlamada.class,
				params, "ID_SUBTIPO_LLAMADA_56");
		where.append(sbMultipleSQL);

		return this.jdbcTemplate.query(where.toString(), this.rwMap, params.toArray());
	}

	/**
	 * Finds a list of rows in the MaestroSubtpoLlamada table.
	 *
	 * @param maestrosubtpollamada MaestroSubtpoLlamada
	 * @param tableRequestDto      TableRequestDto
	 * @return List<MaestroSubtpoLlamada>
	 */
	@Transactional(readOnly = true)
	public List<MaestroSubtpoLlamada> findAll(MaestroSubtpoLlamada maestrosubtpollamada,
			TableRequestDto tableRequestDto) {
		StringBuilder query = new StringBuilder(
				"SELECT  t1.ID_SUBTIPO_LLAMADA_56 IDSUBTIPOLLAMADA56,t1.DESC_ES_56 DESCES56,t1.DESC_EU_56 DESCEU56,t1.F_ALTA_56 FALTA56,t1.USU_ALTA_56 USUALTA56,t1.F_MODIF_56 FMODIF56,t1.USU_MODIF_56 USUMODIF56,t2.ID_TIPO_LLAMADA_55 MAESTROTIPOLLAMADAIDTIPOLLAMADA55,t2.DESC_ES_55 MAESTROTIPOLLAMADADESCES55,t2.DESC_EU_55 MAESTROTIPOLLAMADADESCEU55,t2.F_ALTA_55 MAESTROTIPOLLAMADAFALTA55,t2.USU_ALTA_55 MAESTROTIPOLLAMADAUSUALTA55,t2.F_MODIF_55 MAESTROTIPOLLAMADAFMODIF55,t2.USU_MODIF_55 MAESTROTIPOLLAMADAUSUMODIF55 ");
		query.append("FROM MAESTRO_SUBTPO_LLAMADA t1 ,MAESTRO_TIPO_LLAMADA t2 ");

		// Where clause & Params
		Map<String, ?> mapaWhere = this.getWhereMap(maestrosubtpollamada);
		StringBuilder where = new StringBuilder(" WHERE 1=1 AND t1.ID_TIPO_LLAMADA_56= t2.ID_TIPO_LLAMADA_55(+) ");
		where.append(mapaWhere.get("query"));
		query.append(where);

		List<?> params = (List<?>) mapaWhere.get("params");

		if (tableRequestDto != null) {
			query = TableManager.getPaginationQuery(tableRequestDto, query,
					MaestroSubtpoLlamadaDaoImpl.ORDER_BY_WHITE_LIST);
		}

		return (List<MaestroSubtpoLlamada>) this.jdbcTemplate.query(query.toString(), this.rwMap, params.toArray());
	}

	/**
	 * Finds rows in the MaestroSubtpoLlamada table using like.
	 *
	 * @param maestrosubtpollamada MaestroSubtpoLlamada
	 * @param tableRequestDto      TableRequestDto
	 * @param startsWith           Boolean
	 * @return List<MaestroSubtpoLlamada>
	 */
	@Transactional(readOnly = true)
	public List<MaestroSubtpoLlamada> findAllLike(MaestroSubtpoLlamada maestrosubtpollamada,
			TableRequestDto tableRequestDto, Boolean startsWith) {
		StringBuilder query = new StringBuilder(
				"SELECT  t1.ID_SUBTIPO_LLAMADA_56 IDSUBTIPOLLAMADA56,t1.DESC_ES_56 DESCES56,t1.DESC_EU_56 DESCEU56,t1.F_ALTA_56 FALTA56,t1.USU_ALTA_56 USUALTA56,t1.F_MODIF_56 FMODIF56,t1.USU_MODIF_56 USUMODIF56,t2.ID_TIPO_LLAMADA_55 MAESTROTIPOLLAMADAIDTIPOLLAMADA55,t2.DESC_ES_55 MAESTROTIPOLLAMADADESCES55,t2.DESC_EU_55 MAESTROTIPOLLAMADADESCEU55,t2.F_ALTA_55 MAESTROTIPOLLAMADAFALTA55,t2.USU_ALTA_55 MAESTROTIPOLLAMADAUSUALTA55,t2.F_MODIF_55 MAESTROTIPOLLAMADAFMODIF55,t2.USU_MODIF_55 MAESTROTIPOLLAMADAUSUMODIF55 ");
		query.append("FROM MAESTRO_SUBTPO_LLAMADA t1 ,MAESTRO_TIPO_LLAMADA t2 ");

		// Where clause & Params
		Map<String, ?> mapaWhere = this.getWhereLikeMap(maestrosubtpollamada, startsWith);
		StringBuilder where = new StringBuilder(" WHERE 1=1 AND t1.ID_TIPO_LLAMADA_56= t2.ID_TIPO_LLAMADA_55(+) ");
		where.append(mapaWhere.get("query"));
		query.append(where);

		List<?> params = (List<?>) mapaWhere.get("params");

		if (tableRequestDto != null) {
			query = TableManager.getPaginationQuery(tableRequestDto, query,
					MaestroSubtpoLlamadaDaoImpl.ORDER_BY_WHITE_LIST);
		}

		return (List<MaestroSubtpoLlamada>) this.jdbcTemplate.query(query.toString(), this.rwMap, params.toArray());
	}

	/*
	 * OPERACIONES RUP_TABLE
	 */

	/**
	 * Counts rows in the MaestroSubtpoLlamada table.
	 *
	 * @param maestrosubtpollamada MaestroSubtpoLlamada
	 * @return Long
	 */
	@Transactional(readOnly = true)
	public Long findAllCount(MaestroSubtpoLlamada maestrosubtpollamada) {
		StringBuilder query = new StringBuilder(
				"SELECT COUNT(1) FROM MAESTRO_SUBTPO_LLAMADA t1 , MAESTRO_TIPO_LLAMADA t2 ");

		// Where clause & Params
		Map<String, ?> mapaWhere = this.getWhereMap(maestrosubtpollamada);
		StringBuilder where = new StringBuilder(" WHERE 1=1 AND t1.ID_TIPO_LLAMADA_56= t2.ID_TIPO_LLAMADA_55(+) ");
		where.append(mapaWhere.get("query"));
		query.append(where);

		List<?> params = (List<?>) mapaWhere.get("params");

		return this.jdbcTemplate.queryForObject(query.toString(), params.toArray(), Long.class);
	}

	/**
	 * Counts rows in the MaestroSubtpoLlamada table using like.
	 *
	 * @param maestrosubtpollamada MaestroSubtpoLlamada
	 * @param startsWith           Boolean
	 * @return Long
	 */
	@Transactional(readOnly = true)
	public Long findAllLikeCount(MaestroSubtpoLlamada maestrosubtpollamada, Boolean startsWith) {
		StringBuilder query = new StringBuilder(
				"SELECT COUNT(1) FROM MAESTRO_SUBTPO_LLAMADA t1 ,MAESTRO_TIPO_LLAMADA t2 ");

		// Where clause & Params
		Map<String, ?> mapaWhere = this.getWhereLikeMap(maestrosubtpollamada, startsWith);
		StringBuilder where = new StringBuilder(" WHERE 1=1 AND t1.ID_TIPO_LLAMADA_56= t2.ID_TIPO_LLAMADA_55(+) ");
		where.append(mapaWhere.get("query"));
		query.append(where);

		List<?> params = (List<?>) mapaWhere.get("params");

		return this.jdbcTemplate.queryForObject(query.toString(), params.toArray(), Long.class);
	}

	/**
	 * Reorder the data list of MaestroSubtpoLlamada selected for rup_table
	 *
	 * @param maestrosubtpollamada MaestroSubtpoLlamada
	 * @param tableRequestDto      TableRequestDto
	 * @param startsWith           Boolean
	 * @return List<TableRowDto<MaestroSubtpoLlamada>>
	 */
	@Override
	public List<TableRowDto<MaestroSubtpoLlamada>> reorderSelection(MaestroSubtpoLlamada maestrosubtpollamada,
			TableRequestDto tableRequestDto, Boolean startsWith) {
		// SELECT
		StringBuilder query = new StringBuilder(
				"SELECT t1.ID_SUBTIPO_LLAMADA_56 IDSUBTIPOLLAMADA56,t1.DESC_ES_56 DESCES56,t1.DESC_EU_56 DESCEU56,t1.F_ALTA_56 FALTA56,t1.USU_ALTA_56 USUALTA56,t1.F_MODIF_56 FMODIF56,t1.USU_MODIF_56 USUMODIF56,t2.ID_TIPO_LLAMADA_55 MAESTROTIPOLLAMADAIDTIPOLLAMADA55,t2.DESC_ES_55 MAESTROTIPOLLAMADADESCES55,t2.DESC_EU_55 MAESTROTIPOLLAMADADESCEU55,t2.F_ALTA_55 MAESTROTIPOLLAMADAFALTA55,t2.USU_ALTA_55 MAESTROTIPOLLAMADAUSUALTA55,t2.F_MODIF_55 MAESTROTIPOLLAMADAFMODIF55,t2.USU_MODIF_55 MAESTROTIPOLLAMADAUSUMODIF55 ");
		// FROM
		query.append("FROM MAESTRO_SUBTPO_LLAMADA t1 ,MAESTRO_TIPO_LLAMADA t2 ");
		// FILTRADO
		// Where clause & Params
		Map<String, ?> mapaWhere = this.getWhereLikeMap(maestrosubtpollamada, startsWith);
		StringBuilder where = new StringBuilder(" WHERE 1=1 AND t1.ID_TIPO_LLAMADA_56= t2.ID_TIPO_LLAMADA_55(+) ");
		where.append(mapaWhere.get("query"));
		query.append(where);

		// Parámetros de filtrado
		@SuppressWarnings("unchecked")
		List<Object> filterParamList = (List<Object>) mapaWhere.get("params");

		// SQL para la reordenación
		StringBuilder sbReorderSelectionSQL = TableManager.getReorderQuery(query, tableRequestDto,
				MaestroSubtpoLlamada.class, filterParamList, "IDSUBTIPOLLAMADA56");

		return this.jdbcTemplate.query(sbReorderSelectionSQL.toString(),
				new RowNumResultSetExtractor<MaestroSubtpoLlamada>(this.rwMapPK, tableRequestDto),
				filterParamList.toArray());
	}

	/**
	 * Search method for rup_table
	 *
	 * @param filterParams    MaestroSubtpoLlamada
	 * @param searchParams    MaestroSubtpoLlamada
	 * @param tableRequestDto TableRequestDto
	 * @param startsWith      Boolean
	 * @return List<TableRowDto<MaestroSubtpoLlamada>>
	 */
	@Override
	public List<TableRowDto<MaestroSubtpoLlamada>> search(MaestroSubtpoLlamada filterParams,
			MaestroSubtpoLlamada searchParams, TableRequestDto tableRequestDto, Boolean startsWith) {
		// SELECT
		StringBuilder query = new StringBuilder(
				"SELECT t1.ID_SUBTIPO_LLAMADA_56 IDSUBTIPOLLAMADA56,t1.DESC_ES_56 DESCES56,t1.DESC_EU_56 DESCEU56,t1.F_ALTA_56 FALTA56,t1.USU_ALTA_56 USUALTA56,t1.F_MODIF_56 FMODIF56,t1.USU_MODIF_56 USUMODIF56,t2.ID_TIPO_LLAMADA_55 MAESTROTIPOLLAMADAIDTIPOLLAMADA55,t2.DESC_ES_55 MAESTROTIPOLLAMADADESCES55,t2.DESC_EU_55 MAESTROTIPOLLAMADADESCEU55,t2.F_ALTA_55 MAESTROTIPOLLAMADAFALTA55,t2.USU_ALTA_55 MAESTROTIPOLLAMADAUSUALTA55,t2.F_MODIF_55 MAESTROTIPOLLAMADAFMODIF55,t2.USU_MODIF_55 MAESTROTIPOLLAMADAUSUMODIF55 ");
		// FROM
		query.append("FROM MAESTRO_SUBTPO_LLAMADA t1 ,MAESTRO_TIPO_LLAMADA t2 ");
		// TABLAS_ALIAS
		List<String> from_alias = new ArrayList<String>();
		from_alias.add(" t1 ");
		from_alias.add(" t2 ");

		// FILTRADO
		Map<String, ?> mapaWhereFilter = this.getWhereLikeMap(filterParams, startsWith);
		StringBuilder where = new StringBuilder(" WHERE 1=1 AND t1.ID_TIPO_LLAMADA_56= t2.ID_TIPO_LLAMADA_55(+) ");
		where.append(mapaWhereFilter.get("query"));
		query.append(where);
		// Filter params
		@SuppressWarnings("unchecked")
		List<Object> filterParamList = (List<Object>) mapaWhereFilter.get("params");

		// BUSQUEDA
		Map<String, Object> mapaWhereSearch = this.getWhereLikeMap(searchParams, startsWith);
		String searchSQL = ((StringBuilder) mapaWhereSearch.get("query")).toString();
		// Search params
		@SuppressWarnings("unchecked")
		List<Object> searchParamList = (List<Object>) mapaWhereSearch.get("params");

		// SQL
		StringBuilder sbReorderSelectionSQL = TableManager.getSearchQuery(query, tableRequestDto,
				MaestroSubtpoLlamada.class, filterParamList, searchSQL, searchParamList, from_alias,
				"IDSUBTIPOLLAMADA56");

		return this.jdbcTemplate.query(sbReorderSelectionSQL.toString(),
				new RowNumResultSetExtractor<MaestroSubtpoLlamada>(this.rwMapPK, tableRequestDto),
				filterParamList.toArray());
	}

	/**
	 * Remove multiple method for rup_table
	 *
	 * @param tableRequestDto TableRequestDto
	 */
	@Override
	public void removeMultiple(TableRequestDto tableRequestDto) {
		StringBuilder sbRemoveMultipleSQL = TableManager.getRemoveMultipleQuery(tableRequestDto,
				MaestroSubtpoLlamada.class, "MAESTRO_SUBTPO_LLAMADA", new String[] { "IDSUBTIPOLLAMADA56" });

		List<String> params = tableRequestDto.getMultiselection().getSelectedIds();

		this.jdbcTemplate.update(sbRemoveMultipleSQL.toString(), params.toArray());
	}

	/**
	 * Filter in the hierarchical MaestroSubtpoLlamada table.
	 *
	 * @param filterMaestroSubtpoLlamada MaestroSubtpoLlamada
	 * @param tableRequestDto            TableRequestDto
	 * @return List<JerarquiaDto<MaestroSubtpoLlamada>>
	 */
	@Override
	public List<JerarquiaDto<MaestroSubtpoLlamada>> findAllLikeJerarquia(
			MaestroSubtpoLlamada filterMaestroSubtpoLlamada, TableRequestDto tableRequestDto) {
		// SELECT
		StringBuilder query = new StringBuilder(
				"SELECT t1.ID_SUBTIPO_LLAMADA_56 IDSUBTIPOLLAMADA56,t1.DESC_ES_56 DESCES56,t1.DESC_EU_56 DESCEU56,t1.F_ALTA_56 FALTA56,t1.USU_ALTA_56 USUALTA56,t1.F_MODIF_56 FMODIF56,t1.USU_MODIF_56 USUMODIF56,t2.ID_TIPO_LLAMADA_55 MAESTROTIPOLLAMADAIDTIPOLLAMADA55,t2.DESC_ES_55 MAESTROTIPOLLAMADADESCES55,t2.DESC_EU_55 MAESTROTIPOLLAMADADESCEU55,t2.F_ALTA_55 MAESTROTIPOLLAMADAFALTA55,t2.USU_ALTA_55 MAESTROTIPOLLAMADAUSUALTA55,t2.F_MODIF_55 MAESTROTIPOLLAMADAFMODIF55,t2.USU_MODIF_55 MAESTROTIPOLLAMADAUSUMODIF55 ");
		// FROM
		// StringBuilder from = new StringBuilder("FROM MAESTRO_SUBTPO_LLAMADA t1
		// ,MAESTRO_TIPO_LLAMADA t2 ");
		List<String> from = new ArrayList<String>();
		from.add("MAESTRO_SUBTPO_LLAMADA");
		from.add("MAESTRO_TIPO_LLAMADA");
		// TABLAS_ALIAS
		List<String> from_alias = new ArrayList<String>();
		from_alias.add(" t1 ");
		from_alias.add(" t2 ");

		// JOINS TABLAS
		/*
		 * Ejemplo de como indicar joins entre las tablas de la query
		 */
		/*
		 * StringBuilder joins = new StringBuilder("");
		 * joins.append("AND T1.ID=T2.ID_T1");
		 */

		// CONDICIONES (negocio)
		/*
		 * Ejemplo de como incluir condiciones de negocio en la consulta de la jerarquía
		 */
		/*
		 * StringBuilder businessFilters = new StringBuilder(); List<Object>
		 * businessParams = new ArrayList<Object>();
		 * businessFilters.append("   AND t1.EJIE = ?  "); businessParams.add("1");
		 */

		// FILTRO
		Map<String, ?> mapaWhere = this.getWhereLikeMap(filterMaestroSubtpoLlamada, false);

		// JERARQUIA
		// Especificar la columna padre correspondiente en lugar de la generada por
		// defecto (ID_PADRE)
		query = TableManagerJerarquia.getQuery(tableRequestDto, query, mapaWhere, "IDSUBTIPOLLAMADA56", "ID_PADRE",
				"NOMBRE", from, from_alias);

		/*
		 * Ejemplo de llamada en caso de indicar joins entre tablas y condiciones de
		 * negocio
		 */
//		query = TableManagerJerarquia.getQuery(tableRequestDto, query, mapaWhere, "ID", "ID_PADRE", "NOMBRE", from, from_alias, joins, businessFilters, businessParams);

		// PAGINACION
		if (tableRequestDto != null) {
			query = TableManagerJerarquia.getPaginationQuery(tableRequestDto, query,
					MaestroSubtpoLlamadaDaoImpl.ORDER_BY_WHITE_LIST);
		}

		List<?> params = (List<?>) mapaWhere.get("params");
		return this.jdbcTemplate.query(query.toString(), this.rwMapJerarquia, params.toArray());
	}

	/**
	 * Count rows in hierarchy
	 *
	 * @param filterMaestroSubtpoLlamada MaestroSubtpoLlamada
	 * @param tableRequestDto            TableRequestDto
	 * @return Long
	 */
	@Override
	public Long findAllLikeCountJerarquia(MaestroSubtpoLlamada filterMaestroSubtpoLlamada,
			TableRequestDto tableRequestDto) {
		// FROM
		// StringBuilder from = new StringBuilder("FROM MAESTRO_SUBTPO_LLAMADA t1
		// ,MAESTRO_TIPO_LLAMADA t2 ");
		List<String> from = new ArrayList<String>();
		from.add("MAESTRO_SUBTPO_LLAMADA");
		from.add("MAESTRO_TIPO_LLAMADA");

		// TABLAS_ALIAS
		List<String> from_alias = new ArrayList<String>();
		from_alias.add(" t1 ");
		from_alias.add(" t2 ");

		// JOINS TABLAS
		/*
		 * Ejemplo de como indicar joins entre las tablas de la query
		 */
		/*
		 * StringBuilder joins = new StringBuilder("");
		 * joins.append("AND T1.ID=T2.ID_T1");
		 */

		// CONDICIONES (negocio)
		/*
		 * Ejemplo de como incluir condiciones de negocio en la consulta de la jerarquía
		 */
		/*
		 * StringBuilder businessFilters = new StringBuilder(); List<Object>
		 * businessParams = new ArrayList<Object>();
		 * businessFilters.append("   AND t1.EJIE = ?  "); businessParams.add("1");
		 */

		// FILTRO
		Map<String, ?> mapaWhere = this.getWhereLikeMap(filterMaestroSubtpoLlamada, false);

		// JERARQUIA
		// Especificar la columna padre correspondiente en lugar de la generada por
		// defecto (ID_PADRE)
		StringBuilder query = TableManagerJerarquia.getQueryCount(tableRequestDto, mapaWhere, "IDSUBTIPOLLAMADA56",
				"ID_PADRE", from, from_alias);

		/*
		 * Ejemplo de llamada en caso de indicar joins entre tablas y condiciones de
		 * negocio
		 */
//		StringBuilder query = TableManagerJerarquia.getQueryCount(tableRequestDto, mapaWhere, "ID", "ID_PADRE", from, from_alias, joins, businessFilters, businessParams);

		List<?> params = (List<?>) mapaWhere.get("params");
		return this.jdbcTemplate.queryForObject(query.toString(), params.toArray(), Long.class);
	}

	/**
	 * Find dependent hierarchical rows
	 *
	 * @param filterMaestroSubtpoLlamada MaestroSubtpoLlamada
	 * @param tableRequestDto            TableRequestDto
	 * @return List<TableRowDto<MaestroSubtpoLlamada>>
	 */
	@Override
	public List<TableRowDto<MaestroSubtpoLlamada>> findAllChild(MaestroSubtpoLlamada filterMaestroSubtpoLlamada,
			TableRequestDto tableRequestDto) {

		// FROM
		// StringBuilder from = new StringBuilder("FROM MAESTRO_SUBTPO_LLAMADA t1
		// ,MAESTRO_TIPO_LLAMADA t2 ");
		List<String> from = new ArrayList<String>();
		from.add("MAESTRO_SUBTPO_LLAMADA");
		from.add("MAESTRO_TIPO_LLAMADA");

		// TABLAS_ALIAS
		List<String> from_alias = new ArrayList<String>();
		from_alias.add(" t1 ");
		from_alias.add(" t2 ");

		// JOINS TABLAS
		/*
		 * Ejemplo de como indicar joins entre las tablas de la query
		 */
		/*
		 * StringBuilder joins = new StringBuilder("");
		 * joins.append("AND T1.ID=T2.ID_T1");
		 */

		// CONDICIONES (negocio)
		/*
		 * Ejemplo de como incluir condiciones de negocio en la consulta de la jerarquía
		 */
		/*
		 * StringBuilder businessFilters = new StringBuilder(); List<Object>
		 * businessParams = new ArrayList<Object>();
		 * businessFilters.append("   AND t1.EJIE = ?  "); businessParams.add("1");
		 */

		// FILTRO
		Map<String, ?> mapaWhere = this.getWhereLikeMap(filterMaestroSubtpoLlamada, false);

		// MULTISELECCION
		// Especificar la columna padre correspondiente en lugar de la generada por
		// defecto (ID_PADRE)
		StringBuilder query = TableManagerJerarquia.getQueryChildren(tableRequestDto, mapaWhere, "IDSUBTIPOLLAMADA56",
				"ID_PADRE", from, from_alias);

		/*
		 * Ejemplo de llamada en caso de indicar joins entre tablas y condiciones de
		 * negocio
		 */
//		StringBuilder query = TableManagerJerarquia.getQueryChildren(tableRequestDto, mapaWhere, "ID", "ID_PADRE", from, from_alias, joins, businessFilters, businessParams);

		List<?> params = (List<?>) mapaWhere.get("params");

		return this.jdbcTemplate.query(query.toString(),
				new RowNumResultSetExtractor<MaestroSubtpoLlamada>(this.rwMapPK, "IDSUBTIPOLLAMADA56"),
				params.toArray());
	}

	/*
	 * MÉTODOS PRIVADOS
	 */

	/**
	 * Returns a map with the needed value to create the conditions to filter by the
	 * MaestroSubtpoLlamada entity
	 *
	 * @param maestrosubtpollamada MaestroSubtpoLlamada Bean with the criteria
	 *                             values to filter by.
	 * @return Map created with two keys key query stores the sql query syntax key
	 *         params stores the parameter values to be used in the condition
	 *         sentence.
	 */
	// CHECKSTYLE:OFF CyclomaticComplexity - Generación de código de UDA
	private Map<String, ?> getWhereMap(MaestroSubtpoLlamada maestrosubtpollamada) {

		StringBuilder where = new StringBuilder(MaestroSubtpoLlamadaDaoImpl.STRING_BUILDER_INIT);
		List<Object> params = new ArrayList<Object>();

		if (maestrosubtpollamada != null && maestrosubtpollamada.getIdSubtipoLlamada56() != null) {
			where.append(" AND t1.ID_SUBTIPO_LLAMADA_56 = ?");
			params.add(maestrosubtpollamada.getIdSubtipoLlamada56());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getMaestroTipoLlamada() != null
				&& maestrosubtpollamada.getMaestroTipoLlamada().getIdTipoLlamada55() != null) {
			where.append(" AND t2.ID_TIPO_LLAMADA_55 = ?");
			params.add(maestrosubtpollamada.getMaestroTipoLlamada().getIdTipoLlamada55());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getMaestroTipoLlamada() != null
				&& maestrosubtpollamada.getMaestroTipoLlamada().getDescEs55() != null) {
			where.append(" AND t2.DESC_ES_55 = ?");
			params.add(maestrosubtpollamada.getMaestroTipoLlamada().getDescEs55());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getMaestroTipoLlamada() != null
				&& maestrosubtpollamada.getMaestroTipoLlamada().getDescEu55() != null) {
			where.append(" AND t2.DESC_EU_55 = ?");
			params.add(maestrosubtpollamada.getMaestroTipoLlamada().getDescEu55());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getMaestroTipoLlamada() != null
				&& maestrosubtpollamada.getMaestroTipoLlamada().getfAlta55() != null) {
			where.append(" AND t2.F_ALTA_55 = ?");
			params.add(maestrosubtpollamada.getMaestroTipoLlamada().getfAlta55());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getMaestroTipoLlamada() != null
				&& maestrosubtpollamada.getMaestroTipoLlamada().getUsuAlta55() != null) {
			where.append(" AND t2.USU_ALTA_55 = ?");
			params.add(maestrosubtpollamada.getMaestroTipoLlamada().getUsuAlta55());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getMaestroTipoLlamada() != null
				&& maestrosubtpollamada.getMaestroTipoLlamada().getfModif55() != null) {
			where.append(" AND t2.F_MODIF_55 = ?");
			params.add(maestrosubtpollamada.getMaestroTipoLlamada().getfModif55());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getMaestroTipoLlamada() != null
				&& maestrosubtpollamada.getMaestroTipoLlamada().getUsuModif55() != null) {
			where.append(" AND t2.USU_MODIF_55 = ?");
			params.add(maestrosubtpollamada.getMaestroTipoLlamada().getUsuModif55());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getDescEs56() != null) {
			where.append(" AND t1.DESC_ES_56 = ?");
			params.add(maestrosubtpollamada.getDescEs56());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getDescEu56() != null) {
			where.append(" AND t1.DESC_EU_56 = ?");
			params.add(maestrosubtpollamada.getDescEu56());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getfAlta56() != null) {
			where.append(" AND t1.F_ALTA_56 = ?");
			params.add(maestrosubtpollamada.getfAlta56());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getUsuAlta56() != null) {
			where.append(" AND t1.USU_ALTA_56 = ?");
			params.add(maestrosubtpollamada.getUsuAlta56());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getfModif56() != null) {
			where.append(" AND t1.F_MODIF_56 = ?");
			params.add(maestrosubtpollamada.getfModif56());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getUsuModif56() != null) {
			where.append(" AND t1.USU_MODIF_56 = ?");
			params.add(maestrosubtpollamada.getUsuModif56());
		}

		Map<String, Object> mapWhere = new HashMap<String, Object>();
		mapWhere.put("query", where);
		mapWhere.put("params", params);

		return mapWhere;
	}
	// CHECKSTYLE:ON CyclomaticComplexity - Generación de código de UDA

	/**
	 * Returns a map with the needed value to create the conditions to filter by the
	 * MaestroSubtpoLlamada entity
	 *
	 * @param maestrosubtpollamada MaestroSubtpoLlamada Bean with the criteria
	 *                             values to filter by.
	 * @param startsWith           Boolean
	 * @return Map created with two keys key query stores the sql query syntax key
	 *         params stores the parameter values to be used in the condition
	 *         sentence.
	 */
	// CHECKSTYLE:OFF CyclomaticComplexity - Generación de código de UDA
	private Map<String, Object> getWhereLikeMap(MaestroSubtpoLlamada maestrosubtpollamada, Boolean startsWith) {

		StringBuilder where = new StringBuilder(MaestroSubtpoLlamadaDaoImpl.STRING_BUILDER_INIT);
		List<Object> params = new ArrayList<Object>();

		if (maestrosubtpollamada != null && maestrosubtpollamada.getIdSubtipoLlamada56() != null) {
			where.append(" AND t1.ID_SUBTIPO_LLAMADA_56 = ?");
			params.add(maestrosubtpollamada.getIdSubtipoLlamada56());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getMaestroTipoLlamada() != null
				&& maestrosubtpollamada.getMaestroTipoLlamada().getIdTipoLlamada55() != null) {
			where.append(" AND t2.ID_TIPO_LLAMADA_55 = ?");
			params.add(maestrosubtpollamada.getMaestroTipoLlamada().getIdTipoLlamada55());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getMaestroTipoLlamada() != null
				&& maestrosubtpollamada.getMaestroTipoLlamada().getDescEs55() != null) {
			where.append(" AND UPPER(t2.DESC_ES_55) like ? ESCAPE  '\\'");
			if (startsWith) {
				params.add(maestrosubtpollamada.getMaestroTipoLlamada().getDescEs55().toUpperCase() + "%");
			} else {
				params.add("%" + maestrosubtpollamada.getMaestroTipoLlamada().getDescEs55().toUpperCase() + "%");
			}
			where.append(" AND t2.DESC_ES_55 IS NOT NULL");
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getMaestroTipoLlamada() != null
				&& maestrosubtpollamada.getMaestroTipoLlamada().getDescEu55() != null) {
			where.append(" AND UPPER(t2.DESC_EU_55) like ? ESCAPE  '\\'");
			if (startsWith) {
				params.add(maestrosubtpollamada.getMaestroTipoLlamada().getDescEu55().toUpperCase() + "%");
			} else {
				params.add("%" + maestrosubtpollamada.getMaestroTipoLlamada().getDescEu55().toUpperCase() + "%");
			}
			where.append(" AND t2.DESC_EU_55 IS NOT NULL");
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getMaestroTipoLlamada() != null
				&& maestrosubtpollamada.getMaestroTipoLlamada().getfAlta55() != null) {
			where.append(" AND t2.F_ALTA_55 = ?");
			params.add(maestrosubtpollamada.getMaestroTipoLlamada().getfAlta55());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getMaestroTipoLlamada() != null
				&& maestrosubtpollamada.getMaestroTipoLlamada().getUsuAlta55() != null) {
			where.append(" AND UPPER(t2.USU_ALTA_55) like ? ESCAPE  '\\'");
			if (startsWith) {
				params.add(maestrosubtpollamada.getMaestroTipoLlamada().getUsuAlta55().toUpperCase() + "%");
			} else {
				params.add("%" + maestrosubtpollamada.getMaestroTipoLlamada().getUsuAlta55().toUpperCase() + "%");
			}
			where.append(" AND t2.USU_ALTA_55 IS NOT NULL");
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getMaestroTipoLlamada() != null
				&& maestrosubtpollamada.getMaestroTipoLlamada().getfModif55() != null) {
			where.append(" AND t2.F_MODIF_55 = ?");
			params.add(maestrosubtpollamada.getMaestroTipoLlamada().getfModif55());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getMaestroTipoLlamada() != null
				&& maestrosubtpollamada.getMaestroTipoLlamada().getUsuModif55() != null) {
			where.append(" AND UPPER(t2.USU_MODIF_55) like ? ESCAPE  '\\'");
			if (startsWith) {
				params.add(maestrosubtpollamada.getMaestroTipoLlamada().getUsuModif55().toUpperCase() + "%");
			} else {
				params.add("%" + maestrosubtpollamada.getMaestroTipoLlamada().getUsuModif55().toUpperCase() + "%");
			}
			where.append(" AND t2.USU_MODIF_55 IS NOT NULL");
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getDescEs56() != null) {
			where.append(" AND UPPER(t1.DESC_ES_56) like ? ESCAPE  '\\'");
			if (startsWith) {
				params.add(maestrosubtpollamada.getDescEs56().toUpperCase() + "%");
			} else {
				params.add("%" + maestrosubtpollamada.getDescEs56().toUpperCase() + "%");
			}
			where.append(" AND t1.DESC_ES_56 IS NOT NULL");
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getDescEu56() != null) {
			where.append(" AND UPPER(t1.DESC_EU_56) like ? ESCAPE  '\\'");
			if (startsWith) {
				params.add(maestrosubtpollamada.getDescEu56().toUpperCase() + "%");
			} else {
				params.add("%" + maestrosubtpollamada.getDescEu56().toUpperCase() + "%");
			}
			where.append(" AND t1.DESC_EU_56 IS NOT NULL");
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getfAlta56() != null) {
			where.append(" AND t1.F_ALTA_56 = ?");
			params.add(maestrosubtpollamada.getfAlta56());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getUsuAlta56() != null) {
			where.append(" AND UPPER(t1.USU_ALTA_56) like ? ESCAPE  '\\'");
			if (startsWith) {
				params.add(maestrosubtpollamada.getUsuAlta56().toUpperCase() + "%");
			} else {
				params.add("%" + maestrosubtpollamada.getUsuAlta56().toUpperCase() + "%");
			}
			where.append(" AND t1.USU_ALTA_56 IS NOT NULL");
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getfModif56() != null) {
			where.append(" AND t1.F_MODIF_56 = ?");
			params.add(maestrosubtpollamada.getfModif56());
		}
		if (maestrosubtpollamada != null && maestrosubtpollamada.getUsuModif56() != null) {
			where.append(" AND UPPER(t1.USU_MODIF_56) like ? ESCAPE  '\\'");
			if (startsWith) {
				params.add(maestrosubtpollamada.getUsuModif56().toUpperCase() + "%");
			} else {
				params.add("%" + maestrosubtpollamada.getUsuModif56().toUpperCase() + "%");
			}
			where.append(" AND t1.USU_MODIF_56 IS NOT NULL");
		}

		Map<String, Object> mapWhere = new HashMap<String, Object>();
		mapWhere.put("query", where);
		mapWhere.put("params", params);

		return mapWhere;
	}
	// CHECKSTYLE:ON CyclomaticComplexity - Generación de código de UDA

	/**
	 * StringBuilder initilization value
	 */
	public static final int STRING_BUILDER_INIT = 4096;
}
