Class AccountServiceImpl<T extends Account,R extends tech.corefinance.common.repository.CommonResourceRepository<T,String>>
java.lang.Object
tech.corefinance.account.common.service.AccountServiceImpl<T,R>
- All Implemented Interfaces:
AccountService<T,,R> tech.corefinance.common.service.CommonService<String,T, R>
public abstract class AccountServiceImpl<T extends Account,R extends tech.corefinance.common.repository.CommonResourceRepository<T,String>>
extends Object
implements AccountService<T,R>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected tech.corefinance.common.jpa.repository.DbSequenceHandlingprotected intprotected Randomprotected org.springframework.core.task.TaskExecutor -
Constructor Summary
ConstructorsConstructorDescriptionAccountServiceImpl(int maxRandomIdCheck, org.springframework.core.task.TaskExecutor taskExecutor, tech.corefinance.common.jpa.repository.DbSequenceHandling dbSequenceHandling, org.springframework.kafka.core.KafkaTemplate<String, Object> kafkaTemplate, AccountKafkaConfig accountKafkaConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<CompletableFuture<?>>voidafterEntitySaved(T entity) voidafterItemDeleted(T item) copyAdditionalPropertiesFromDtoToEntity(D source, T dest) protected abstract ObjectgetCategoryObject(String categoryId) protected abstract ObjectgetProductObject(String productId) protected abstract Stringprotected abstract ObjectgetTypeObject(String typeId) mapProductToAccount(D source, Object productObject, T dest) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tech.corefinance.common.service.CommonService
beforeItemDeleted, createEntityObject, createOrUpdateEntity, customEntityValidation, deleteEntity, findEntityClass, getEntityDetails, getRepository, searchByTextAndPage, searchByTextAndSort, searchData
-
Field Details
-
random
-
maxRandomIdCheck
protected int maxRandomIdCheck -
taskExecutor
protected org.springframework.core.task.TaskExecutor taskExecutor -
dbSequenceHandling
protected tech.corefinance.common.jpa.repository.DbSequenceHandling dbSequenceHandling
-
-
Constructor Details
-
AccountServiceImpl
public AccountServiceImpl(int maxRandomIdCheck, org.springframework.core.task.TaskExecutor taskExecutor, tech.corefinance.common.jpa.repository.DbSequenceHandling dbSequenceHandling, org.springframework.kafka.core.KafkaTemplate<String, Object> kafkaTemplate, AccountKafkaConfig accountKafkaConfig)
-
-
Method Details
-
getCategoryObject
-
getTypeObject
-
getProductObject
-
getSequenceName
-
copyAdditionalPropertiesFromDtoToEntity
-
mapProductToAccount
-
addAsyncTaskCreateUpdateAccount
-
afterEntitySaved
-
afterItemDeleted
-