@Component
@Scope(value="prototype")
public class ConfigErrorcodeRegistryComponent
extends java.lang.Object
Constructor and Description |
---|
ConfigErrorcodeRegistryComponent() |
Modifier and Type | Method and Description |
---|---|
ConfigErrorcodeRegistryDO |
executeRepositoryQuery(java.lang.String configLanguageCodeKey,
java.lang.String errorCode,
java.lang.String filter)
Execute the query using JPA Repository
|
TxnTransferObj |
findAllRecordsByLanguageCode(TxnTransferObj txnTransferObj)
Returns all the records from the for ConfigErrorcodeRegistryDO entity based on language code and maximum of records as configuration in properties
|
java.util.List<ConfigErrorcodeRegistryDO> |
findAllRecordsByLanguageCodeFromRepository(java.lang.String configLanguageCodeKey,
java.lang.String filter) |
TxnTransferObj |
findByBusinessKey(TxnTransferObj txnTransferObj)
This method search the database table CONFIG_ERRORCODE_REGISTRY records based on business key (e.g.LanguageCode and Key)
|
TxnTransferObj |
findById(TxnTransferObj txnTransferObj)
This method search the database record based on primary key.
|
TxnTransferObj |
merge(TxnTransferObj txnTransferObj)
This service updates the record in database.
|
TxnTransferObj |
persist(TxnTransferObj txnTransferObj)
This method creates a record in database.
|
public TxnTransferObj persist(TxnTransferObj txnTransferObj) throws YugandharCommonException
txnTransferObj
- Transfer Object TxnTransferObj instanceYugandharCommonException
- yugandhar common exception if ConfigErrorcodeRegistryDO object is not present in the request or other mandatory attributes not presentpublic TxnTransferObj merge(TxnTransferObj txnTransferObj)
txnTransferObj
- Transfer Object TxnTransferObj instanceYugandharCommonException
- yugandhar common exception if ConfigErrorcodeRegistryDO object is not present in the request or mandatory attributes primary key is not presentpublic TxnTransferObj findById(TxnTransferObj txnTransferObj)
txnTransferObj
- Transfer Object TxnTransferObj instanceYugandharCommonException
- yugandhar common exception if ConfigErrorcodeRegistryDO object is not present in the request or mandatory attributes primary key is not present@Transactional(propagation=NOT_SUPPORTED) public TxnTransferObj findAllRecordsByLanguageCode(TxnTransferObj txnTransferObj)
txnTransferObj
- Transfer Object TxnTransferObj instanceYugandharCommonException
- yugandhar common exception if ConfigErrorcodeRegistryDO object is not present in the request or mandatory attributes business key is not presentpublic java.util.List<ConfigErrorcodeRegistryDO> findAllRecordsByLanguageCodeFromRepository(java.lang.String configLanguageCodeKey, java.lang.String filter)
@Transactional(propagation=NOT_SUPPORTED) public TxnTransferObj findByBusinessKey(TxnTransferObj txnTransferObj)
txnTransferObj
- Transfer Object TxnTransferObj instanceYugandharCommonException
- yugandhar common exception if ConfigErrorcodeRegistryDO object is not present in the request or mandatory attributes business key is not presentpublic ConfigErrorcodeRegistryDO executeRepositoryQuery(java.lang.String configLanguageCodeKey, java.lang.String errorCode, java.lang.String filter)
configLanguageCodeKey
- config language code keyerrorCode
- error Codefilter
- filter for inquiry having valid values as ACTIVE, INACTIVE or ALL