Class DbThirdPartyBankAccounts

  • All Implemented Interfaces:
    BankAccounts

    public final class DbThirdPartyBankAccounts
    extends Object
    implements BankAccounts
    Bank accounts of a third party in Database.
    Since:
    3.0
    • Constructor Detail

      • DbThirdPartyBankAccounts

        public DbThirdPartyBankAccounts​(DataSource source,
                                        ThirdParty holder)
        Ctor.
        Parameters:
        source -
    • Method Detail

      • has

        public boolean has​(String fullnumber)
        Description copied from interface: BankAccounts
        Checks if account of full number (24 digits) exists.
        Specified by:
        has in interface BankAccounts
        Parameters:
        fullnumber - Full number
        Returns:
        boolean exits
      • get

        public BankAccount get​(String fullnumber)
        Description copied from interface: BankAccounts
        Get account by full number (24 digits).
        Specified by:
        get in interface BankAccounts
        Parameters:
        fullnumber - Full number
        Returns:
        Account
      • remove

        public void remove​(Long id)
        Description copied from interface: BankAccounts
        Remove an account.
        Specified by:
        remove in interface BankAccounts
        Parameters:
        id - Identifier