Class AbstractContractConfig
java.lang.Object
ru.bitel.common.dao.AbstarctDaoConstant
ru.bitel.bgbilling.kernel.contract.config.server.bean.AbstractContractConfig
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
ContractModuleConfigDao
,ContractPluginConfigDao
public abstract class AbstractContractConfig
extends ru.bitel.common.dao.AbstarctDaoConstant
implements AutoCloseable
-
Field Summary
Fields inherited from class ru.bitel.common.dao.AbstarctDaoConstant
ERROR, fields, SQL_CALC_FOUND_ROWS, SQL_DELETE, SQL_DISTINCT, SQL_EQ, SQL_EQCS, SQL_FROM, SQL_GROUP, SQL_IN, SQL_INSERT, SQL_LIMIT, SQL_ON_DUPLICATE_KEY_UPDATE, SQL_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_VALUES, SQL_WHERE
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractContractConfig
(String table, Connection con, int configId) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
void
deleteForContract
(int contractId) void
searchContractModuleConfig
(SearchResult<ContractModuleConfig> searchResult, String contractTitle, String[] keys) void
Methods inherited from class ru.bitel.common.dao.AbstarctDaoConstant
getLogger, getSQLOrder
-
Field Details
-
TABLE_CONTRACT_MODULE_CONFIG
- See Also:
-
TABLE_CONTRACT_PLUGIN_CONFIG
- See Also:
-
-
Constructor Details
-
AbstractContractConfig
-
-
Method Details
-
get
- Throws:
ru.bitel.bgbilling.common.BGException
-
get
public String get(int contractId, String key, String defaultValue) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
update
public void update(int contractId, String key, String value) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
delete
- Throws:
ru.bitel.bgbilling.common.BGException
-
deleteForContract
public void deleteForContract(int contractId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
searchContractModuleConfig
public void searchContractModuleConfig(SearchResult<ContractModuleConfig> searchResult, String contractTitle, String[] keys) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getKeyList
- Throws:
ru.bitel.bgbilling.common.BGException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-