public abstract class AbstractContractConfig
extends ru.bitel.common.dao.AbstarctDaoConstant
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
fields |
protected static java.lang.String |
TABLE_CONTRACT_MODULE_CONFIG |
protected static java.lang.String |
TABLE_CONTRACT_PLUGIN_CONFIG |
Modifier | Constructor and Description |
---|---|
protected |
AbstractContractConfig(java.lang.String table,
java.sql.Connection con,
int configId) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
delete(int contractId,
int configId,
java.lang.String key) |
void |
delete(int contractId,
java.lang.String key) |
void |
deleteForContract(int contractId) |
java.lang.String |
get(int contractId,
int configId,
java.lang.String key,
java.lang.String defaultValue) |
java.lang.String |
get(int contractId,
java.lang.String key,
java.lang.String defaultValue) |
java.util.List<java.lang.String> |
getKeyList() |
void |
searchContractModuleConfig(SearchResult<ContractModuleConfig> searchResult,
java.lang.String contractTitle,
java.lang.String[] keys) |
void |
update(int contractId,
int configId,
java.lang.String key,
java.lang.String value) |
void |
update(int contractId,
java.lang.String key,
java.lang.String value) |
protected static final java.lang.String TABLE_CONTRACT_MODULE_CONFIG
protected static final java.lang.String TABLE_CONTRACT_PLUGIN_CONFIG
public java.util.Map<java.lang.String,java.lang.String> fields
protected AbstractContractConfig(java.lang.String table, java.sql.Connection con, int configId)
public java.lang.String get(int contractId, java.lang.String key, java.lang.String defaultValue) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.lang.String get(int contractId, int configId, java.lang.String key, java.lang.String defaultValue) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void update(int contractId, java.lang.String key, java.lang.String value) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void update(int contractId, int configId, java.lang.String key, java.lang.String value) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void delete(int contractId, java.lang.String key) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void delete(int contractId, int configId, java.lang.String key) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void deleteForContract(int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void searchContractModuleConfig(SearchResult<ContractModuleConfig> searchResult, java.lang.String contractTitle, java.lang.String[] keys) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<java.lang.String> getKeyList() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void close()
close
in interface java.lang.AutoCloseable