public class ParamDAO extends CommonDAO
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DIRECTORY_TYPE_PARAMETER |
con, dateFormat_DDMMYYYY, dateFormat_DDMMYYYY_HHMM, log, SQL_AND, SQL_DELETE, SQL_DESC, SQL_FROM, SQL_GROUP_BY, SQL_INNER_JOIN, SQL_INSERT, SQL_LEFT_JOIN, SQL_LIMIT, SQL_ORDER_BY, SQL_REPLACE, SQL_SELECT, SQL_SELECT_ALL_FROM, SQL_SELECT_COUNT_ROWS, SQL_SET, SQL_UPDATE, SQL_WHERE
Constructor and Description |
---|
ParamDAO(java.sql.Connection connection) |
ParamDAO(java.sql.Connection con,
int userId) |
Modifier and Type | Method and Description |
---|---|
void |
deleteParameter(int id) |
java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.String>> |
getListCountParamValuesMap() |
java.util.Map<java.lang.Integer,java.util.List<IdTitle>> |
getListParamValuesMap() |
Parameter |
getParameter(int id) |
java.util.List<ParameterHistory> |
getParameterHistory(java.lang.String object,
Parameter parameter,
int id) |
java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> |
getParameterIdsByGroupIds() |
void |
getParameterList(SearchResult<Parameter> searchResult,
java.lang.String objectType,
java.lang.String titleOrCommentFilter,
int paramGroupId,
java.util.Set<java.lang.Integer> parameterIdList) |
java.util.List<Parameter> |
getParameterList(java.lang.String objectType,
int paramGroupId) |
java.util.List<Parameter> |
getParameterList(java.lang.String objectType,
int paramGroupId,
java.util.Set<java.lang.Integer> parameterIdList) |
java.util.Map<java.lang.String,java.util.List<Parameter>> |
getParameterMapByObjectType() |
java.util.Map<java.lang.Integer,IdTitleTree> |
getTreeParamValuesMap() |
void |
updateParameter(Parameter parameter) |
addLikeSql, convertDateToSqlDate, convertDateToTimestamp, deleteById, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePattern, getMySQLLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, updateColumn, updateIds, updateIds
public static final java.lang.String DIRECTORY_TYPE_PARAMETER
public ParamDAO(java.sql.Connection connection)
public ParamDAO(java.sql.Connection con, int userId)
public Parameter getParameter(int id) throws java.sql.SQLException
java.sql.SQLException
public java.util.Map<java.lang.Integer,IdTitleTree> getTreeParamValuesMap() throws java.sql.SQLException
java.sql.SQLException
public void updateParameter(Parameter parameter) throws java.sql.SQLException
java.sql.SQLException
public void deleteParameter(int id) throws BGException
BGException
public java.util.Map<java.lang.String,java.util.List<Parameter>> getParameterMapByObjectType() throws java.sql.SQLException
java.sql.SQLException
public java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> getParameterIdsByGroupIds() throws java.sql.SQLException
java.sql.SQLException
public java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.String>> getListCountParamValuesMap() throws java.sql.SQLException
java.sql.SQLException
public java.util.Map<java.lang.Integer,java.util.List<IdTitle>> getListParamValuesMap() throws java.sql.SQLException
java.sql.SQLException
public java.util.List<Parameter> getParameterList(java.lang.String objectType, int paramGroupId) throws java.sql.SQLException
java.sql.SQLException
public void getParameterList(SearchResult<Parameter> searchResult, java.lang.String objectType, java.lang.String titleOrCommentFilter, int paramGroupId, java.util.Set<java.lang.Integer> parameterIdList) throws BGException
BGException
public java.util.List<Parameter> getParameterList(java.lang.String objectType, int paramGroupId, java.util.Set<java.lang.Integer> parameterIdList) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<ParameterHistory> getParameterHistory(java.lang.String object, Parameter parameter, int id) throws java.sql.SQLException
java.sql.SQLException