Package io.surati.gap.payment.base.db
Class DbPaginedPaymentOrders
- java.lang.Object
-
- io.surati.gap.payment.base.db.DbPaginedPaymentOrders
-
- All Implemented Interfaces:
PaymentOrders
public final class DbPaginedPaymentOrders extends Object implements PaymentOrders
Pagined payment orders from Database.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description DbPaginedPaymentOrders(DataSource source)
Ctor.DbPaginedPaymentOrders(DataSource source, io.surati.gap.commons.utils.time.Period opperiod, io.surati.gap.commons.utils.time.Period refdocperiod, PaymentOrderStatus status)
Ctor.DbPaginedPaymentOrders(DataSource source, PaymentOrderStatus status)
Ctor.DbPaginedPaymentOrders(DataSource source, Long nbperpage, Long page, String filter, io.surati.gap.commons.utils.time.Period opperiod, io.surati.gap.commons.utils.time.Period refdocperiod, PaymentOrderStatus status)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
count()
PaymentOrder
get(Long id)
PaymentOrder
get(String reference)
boolean
has(String reference)
Iterable<PaymentOrder>
iterate()
void
remove(PaymentOrder item)
Double
totalAmount()
-
-
-
Constructor Detail
-
DbPaginedPaymentOrders
public DbPaginedPaymentOrders(DataSource source)
Ctor.- Parameters:
source
-
-
DbPaginedPaymentOrders
public DbPaginedPaymentOrders(DataSource source, PaymentOrderStatus status)
Ctor.- Parameters:
source
-
-
DbPaginedPaymentOrders
public DbPaginedPaymentOrders(DataSource source, io.surati.gap.commons.utils.time.Period opperiod, io.surati.gap.commons.utils.time.Period refdocperiod, PaymentOrderStatus status)
Ctor.- Parameters:
source
-
-
DbPaginedPaymentOrders
public DbPaginedPaymentOrders(DataSource source, Long nbperpage, Long page, String filter, io.surati.gap.commons.utils.time.Period opperiod, io.surati.gap.commons.utils.time.Period refdocperiod, PaymentOrderStatus status)
Ctor.- Parameters:
source
-
-
-
Method Detail
-
iterate
public Iterable<PaymentOrder> iterate()
- Specified by:
iterate
in interfacePaymentOrders
-
get
public PaymentOrder get(Long id)
- Specified by:
get
in interfacePaymentOrders
-
remove
public void remove(PaymentOrder item)
- Specified by:
remove
in interfacePaymentOrders
-
count
public Long count()
- Specified by:
count
in interfacePaymentOrders
-
has
public boolean has(String reference)
- Specified by:
has
in interfacePaymentOrders
-
totalAmount
public Double totalAmount()
- Specified by:
totalAmount
in interfacePaymentOrders
-
get
public PaymentOrder get(String reference)
- Specified by:
get
in interfacePaymentOrders
-
-