Class AcmeAccountServiceImpl
- java.lang.Object
-
- de.trustable.ca3s.core.service.impl.AcmeAccountServiceImpl
-
- All Implemented Interfaces:
AcmeAccountService
@Service @Transactional public class AcmeAccountServiceImpl extends Object implements AcmeAccountService
Service Implementation for managingAcmeAccount.
-
-
Constructor Summary
Constructors Constructor Description AcmeAccountServiceImpl(AcmeAccountRepository aCMEAccountRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(Long id)Delete the aCMEAccount by id.List<AcmeAccount>findAll()Get all the aCMEAccounts.Optional<AcmeAccount>findOne(Long id)Get one aCMEAccount by id.AcmeAccountsave(AcmeAccount aCMEAccount)Save a aCMEAccount.
-
-
-
Constructor Detail
-
AcmeAccountServiceImpl
public AcmeAccountServiceImpl(AcmeAccountRepository aCMEAccountRepository)
-
-
Method Detail
-
save
public AcmeAccount save(AcmeAccount aCMEAccount)
Save a aCMEAccount.- Specified by:
savein interfaceAcmeAccountService- Parameters:
aCMEAccount- the entity to save.- Returns:
- the persisted entity.
-
findAll
@Transactional(readOnly=true) public List<AcmeAccount> findAll()
Get all the aCMEAccounts.- Specified by:
findAllin interfaceAcmeAccountService- Returns:
- the list of entities.
-
findOne
@Transactional(readOnly=true) public Optional<AcmeAccount> findOne(Long id)
Get one aCMEAccount by id.- Specified by:
findOnein interfaceAcmeAccountService- Parameters:
id- the id of the entity.- Returns:
- the entity.
-
delete
public void delete(Long id)
Delete the aCMEAccount by id.- Specified by:
deletein interfaceAcmeAccountService- Parameters:
id- the id of the entity.
-
-