Package com.rosivanyshyn.service

# Interface AccountService

All Known Implementing Classes:
  `AccountServiceImpl`

public interface AccountService
Account Service interface.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Boolean`
  `createAccount(Account account)`
  Create new account
  `Boolean`
  `deleteAccount(Account account)`
  Delete account
  `Account`
  `findAccountByField(String field, Object value)`
  Find account by field
  `Boolean`
  `isAccountExist(Account account)`
  Check if account exist
  `Boolean`
  `updateAccount(Account account)`
  Update account

- ## Method Details

  - ### createAccount

    Boolean createAccount(Account account)
    Create new account
    Parameters:
      `account` - the account to be added
    Returns:
      operation result

  - ### isAccountExist

    Boolean isAccountExist(Account account)
    Check if account exist
    Parameters:
      `account` - the account to be checked
    Returns:
      operation result

  - ### findAccountByField

    Account findAccountByField(String field, Object value)
    Find account by field
    Parameters:
      `field` - field name
      `value` - unique field value
    Returns:
      found account

  - ### updateAccount

    Boolean updateAccount(Account account)
    Update account
    Parameters:
      `account` - account to update
    Returns:
      operation result

  - ### deleteAccount

    Boolean deleteAccount(Account account)
    Delete account
    Parameters:
      `account` - account to delete
    Returns:
      operation result