@Component
@Scope(value="prototype")
public class ConfigTxnRegistryComponent
extends java.lang.Object
Constructor and Description |
---|
ConfigTxnRegistryComponent() |
Modifier and Type | Method and Description |
---|---|
ConfigTxnRegistryDO |
executeRepositoryQuery(java.lang.String txnserviceName,
java.lang.String filter)
Execute the query using JPA Repository
|
TxnTransferObj |
findByBusinessKey(TxnTransferObj txnTransferObj)
This method search the database record 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 ConfigTxnRegistryDO 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 ConfigTxnRegistryDO 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 ConfigTxnRegistryDO object is not present in the request or mandatory attributes primary key is not presentpublic TxnTransferObj findByBusinessKey(TxnTransferObj txnTransferObj)
txnTransferObj
- Transfer Object TxnTransferObj instanceYugandharCommonException
- yugandhar common exception if ConfigTxnRegistryDO object is not present in the request or mandatory attributes business key is not presentpublic ConfigTxnRegistryDO executeRepositoryQuery(java.lang.String txnserviceName, java.lang.String filter)
txnserviceName
- transaction service namefilter
- Filter can be of type ACTIVE, INACTIVE or ALL