Package io.surati.gap.payment.base.db
Class DbBanks
- java.lang.Object
-
- io.surati.gap.payment.base.db.DbBanks
-
-
Constructor Summary
Constructors Constructor Description DbBanks(DataSource source)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bank
add(String code, String name, String abbreviated)
Add a newBank
.Long
count()
Numbers of items foundBank
get(Long id)
GetBank
.Bank
get(String code)
GetBank
.boolean
has(String code)
Checks if aBank
with code exists.Iterable<Bank>
iterate()
Iterate all banks.void
remove(Long id)
Remove aBank
.
-
-
-
Constructor Detail
-
DbBanks
public DbBanks(DataSource source)
Ctor.- Parameters:
source
-
-
-
Method Detail
-
add
public Bank add(String code, String name, String abbreviated)
Description copied from interface:Banks
Add a newBank
.
-
has
public boolean has(String code)
Description copied from interface:Banks
Checks if aBank
with code exists.
-
-