Package com.rosivanyshyn.service
Interface AccountService
- All Known Implementing Classes:
AccountServiceImpl
public interface AccountService
Account Service interface.
-
Method Summary
Modifier and TypeMethodDescriptioncreateAccount(Account account) Create new accountdeleteAccount(Account account) Delete accountfindAccountByField(String field, Object value) Find account by fieldisAccountExist(Account account) Check if account existupdateAccount(Account account) Update account
-
Method Details
-
createAccount
Create new account- Parameters:
account- the account to be added- Returns:
- operation result
-
isAccountExist
Check if account exist- Parameters:
account- the account to be checked- Returns:
- operation result
-
findAccountByField
Find account by field- Parameters:
field- field namevalue- unique field value- Returns:
- found account
-
updateAccount
Update account- Parameters:
account- account to update- Returns:
- operation result
-
deleteAccount
Delete account- Parameters:
account- account to delete- Returns:
- operation result
-