Package ru.bgcrm.dao
Class ConfigDAO
java.lang.Object
ru.bgcrm.dao.CommonDAO
ru.bgcrm.dao.ConfigDAO
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bgcrm.dao.CommonDAO
CommonDAO.ObjectExtractor<T>, CommonDAO.RecordUpdater<T extends Id> -
Field Summary
FieldsFields inherited from class ru.bgcrm.dao.CommonDAO
con, dateFormat_DDMMYYYY, dateFormat_DDMMYYYY_HHMM, log, SQL_AND, SQL_DELETE, SQL_DESC, SQL_FROM, SQL_GROUP_BY, SQL_INNER_JOIN, SQL_INSERT, SQL_INSERT_IGNORE, SQL_LEFT_JOIN, SQL_LEFT_OUTER_JOIN, SQL_LIMIT, SQL_ON_DUP_KEY_UPDATE, SQL_OR, SQL_ORDER_BY, SQL_REPLACE, SQL_SELECT, SQL_SELECT_ALL_FROM, SQL_SELECT_COUNT_ROWS, SQL_SET, SQL_UPDATE, SQL_WHERE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteGlobalConfig(int id) getConfigRecordList(String tableId, int recordId) getConfigRecordMap(String tableId, int recordId) getGlobalConfig(int id) voidsearchGlobalConfigList(SearchResult<Config> searchResult, Set<Integer> allowedConfigIds, int configId, String filterLike) voidsetActiveGlobalConfig(int id) voidupdateConfigForRecord(String tableId, int recordId, List<ConfigRecord> config) voidupdateConfigForRecord(String tableId, int recordId, Map<String, String> config) voidupdateGlobalConfig(Config config) Methods inherited from class ru.bgcrm.dao.CommonDAO
buildPlaceholders, deleteById, execute, execute, execute, executeBatch, executeInsert, executeUpdate, getById, getFoundRows, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePattern, getLikePatternEnd, getLikePatternStart, getLikePatternSub, getMySQLLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, update, updateColumn, updateIds, updateIds
-
Field Details
-
TABLE_CONFIG
- See Also:
-
TABLE_CONFIG_GLOBAL
- See Also:
-
-
Constructor Details
-
ConfigDAO
-
ConfigDAO
-
-
Method Details
-
searchGlobalConfigList
public void searchGlobalConfigList(SearchResult<Config> searchResult, Set<Integer> allowedConfigIds, int configId, String filterLike) throws SQLException - Throws:
SQLException
-
getGlobalConfig
- Throws:
SQLException
-
getActiveGlobalConfig
- Throws:
SQLException
-
setActiveGlobalConfig
- Throws:
SQLException
-
updateGlobalConfig
- Throws:
SQLException
-
deleteGlobalConfig
- Throws:
SQLException
-
getConfigRecordList
- Throws:
SQLException
-
getConfigRecordMap
- Throws:
SQLException
-
updateConfigForRecord
public void updateConfigForRecord(String tableId, int recordId, Map<String, String> config) throws SQLException- Throws:
SQLException
-
updateConfigForRecord
public void updateConfigForRecord(String tableId, int recordId, List<ConfigRecord> config) throws SQLException - Throws:
SQLException
-