@Component
@Scope(value="prototype")
public class ConfigAppPropertiesComponent
extends java.lang.Object
Constructor and Description |
---|
ConfigAppPropertiesComponent() |
Modifier and Type | Method and Description |
---|---|
ConfigAppPropertiesDO |
executeRepositoryQuery(java.lang.String key,
java.lang.String filter)
Execute the query using JPA Repository
|
TxnTransferObj |
findByBusinessKey(TxnTransferObj txnTransferObj)
This method search the database table CONFIG_APP_PROPERTIES 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 ConfigAppPropertiesDO 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 ConfigAppPropertiesDO 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 ConfigAppPropertiesDO 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 ConfigAppPropertiesDO object is not present in the request or mandatory attributes business key is not presentpublic ConfigAppPropertiesDO executeRepositoryQuery(java.lang.String key, java.lang.String filter)
key
- key of type Stringfilter
- filter for inquiry having valid values as ACTIVE, INACTIVE or ALL