@Scope(value="prototype")
@Component
public class RefCurrencyComponent
extends java.lang.Object
Constructor and Description |
---|
RefCurrencyComponent() |
Modifier and Type | Method and Description |
---|---|
RefCurrencyDO |
executeRepositoryQuery(java.lang.String configLanguageCodeKey,
java.lang.String key,
java.lang.String filter)
Execute the query using JPA Repository
|
TxnTransferObj |
findAllRecordsByLanguageCode(TxnTransferObj txnTransferObj)
Returns all the records from the for RefCurrencyDO entity based on
language code and maximum of records as configuration in properties
|
org.springframework.data.domain.Page<RefCurrencyDO> |
findAllRecordsByLanguageCodeFromRepository(java.lang.String configLanguageCodeKey,
java.lang.String filter,
java.lang.Integer requestedPageNumber,
java.lang.Integer requestedPageSize,
TxnTransferObj txnTransferObj) |
TxnTransferObj |
findByBusinessKey(TxnTransferObj txnTransferObj)
This method search the database table REF_CURRENCY 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
- if RefCurrencyDO object is not present in the request or
other mandatory attributes not presentpublic TxnTransferObj merge(TxnTransferObj txnTransferObj)
txnTransferObj
- Transfer Object TxnTransferObj instanceYugandharCommonException
- if RefCurrencyDO object is not present in the request or
mandatory attributes primary key is not presentpublic TxnTransferObj findById(TxnTransferObj txnTransferObj)
txnTransferObj
- Transfer Object TxnTransferObj instanceYugandharCommonException
- if RefCurrencyDO object is not present in the request or
mandatory attributes primary key is not presentpublic TxnTransferObj findAllRecordsByLanguageCode(TxnTransferObj txnTransferObj)
txnTransferObj
- Transfer Object TxnTransferObj instanceYugandharCommonException
- if RefCurrencyDO object is not present in the request or
mandatory attributes business key is not presentpublic org.springframework.data.domain.Page<RefCurrencyDO> findAllRecordsByLanguageCodeFromRepository(java.lang.String configLanguageCodeKey, java.lang.String filter, java.lang.Integer requestedPageNumber, java.lang.Integer requestedPageSize, TxnTransferObj txnTransferObj)
public TxnTransferObj findByBusinessKey(TxnTransferObj txnTransferObj)
txnTransferObj
- Transfer Object TxnTransferObj instanceYugandharCommonException
- if RefCurrencyDO object is not present in the request or
mandatory attributes business key is not presentpublic RefCurrencyDO executeRepositoryQuery(java.lang.String configLanguageCodeKey, java.lang.String key, java.lang.String filter)
configLanguageCodeKey
- config language codekey
- keyfilter
- Filter can be of type ACTIVE, INACTIVE or ALL