Interface AccountService

All Known Implementing Classes:
AccountServiceImpl

public interface AccountService
A AccountService.
Author:
Heiko Scherrer
  • Method Details

    • findAll

      @NotNull @NotNull List<Account> findAll()
      Find and return a list of all existing Accounts.
      Returns:
      A list, never null
    • findByPKey

      @NotNull @NotNull Account findByPKey(@NotBlank @NotBlank String pKey)
      Find and return a single Account instance identified by its persistent key.
      Parameters:
      pKey - The persistent key
      Returns:
      The Account instance
    • findByIdentifier

      Optional<Account> findByIdentifier(@NotBlank @NotBlank String identifier)
      Find and return the Account.
      Parameters:
      identifier - The Account's identifier
      Returns:
      The Account instance
    • findByName

      Optional<Account> findByName(@NotBlank @NotBlank String name)
      Find and return the Account.
      Parameters:
      name - The Account's name
      Returns:
      The Account instance
    • findDefault

      Optional<Account> findDefault()
      Returns: