public class InvoiceServiceImpl extends Object implements InvoiceService
InvoiceServiceImpl class.
NAME
Constructor and Description |
---|
InvoiceServiceImpl()
Constructor for InvoiceServiceImpl.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(Invoice invoice)
delete.
|
Invoice |
findByID(Integer iID)
findByID.
|
Invoice |
findBySWAccession(Integer swAccession)
findBySWAccession.
|
Integer |
insert(Invoice invoice)
Inserts a new Invoice and returns its sw_accession number.
|
Integer |
insert(Registration registration,
Invoice invoice)
insert.
|
List<Invoice> |
list()
list.
|
List<Invoice> |
list(Registration registration)
list.
|
List<Invoice> |
list(Registration registration,
InvoiceState state)
list.
|
void |
setInvoiceDAO(InvoiceDAO invoiceDAO)
setInvoiceDAO.
|
void |
update(Invoice invoice)
update.
|
void |
update(Registration registration,
Invoice invoice)
update.
|
Invoice |
updateDetached(Invoice invoice)
updateDetached.
|
Invoice |
updateDetached(Registration registration,
Invoice invoice)
updateDetached.
|
public InvoiceServiceImpl()
Constructor for InvoiceServiceImpl.
public void setInvoiceDAO(InvoiceDAO invoiceDAO)
setInvoiceDAO.
Sets a private member variable with an instance of an implementation of InvoiceDAO. This method is called by the Spring framework at run time.setInvoiceDAO
in interface InvoiceService
invoiceDAO
- a InvoiceDAO
object.InvoiceDAO
public Integer insert(Invoice invoice)
insert
in interface InvoiceService
invoice
- Invoice to be inserted.public void update(Invoice invoice)
update.
update
in interface InvoiceService
invoice
- a Invoice
object.public void delete(Invoice invoice)
delete.
delete
in interface InvoiceService
invoice
- a Invoice
object.public List<Invoice> list()
list.
list
in interface InvoiceService
List
object.public List<Invoice> list(Registration registration)
list.
list
in interface InvoiceService
registration
- a Registration
object.List
object.public List<Invoice> list(Registration registration, InvoiceState state)
list.
list
in interface InvoiceService
registration
- a Registration
object.state
- a String
object.List
object.public Invoice findByID(Integer iID)
findByID.
findByID
in interface InvoiceService
iID
- a Integer
object.Invoice
object.public Invoice findBySWAccession(Integer swAccession)
findBySWAccession.
findBySWAccession
in interface InvoiceService
swAccession
- a Integer
object.Invoice
object.public Invoice updateDetached(Invoice invoice)
updateDetached.
updateDetached
in interface InvoiceService
invoice
- a Invoice
object.Invoice
object.public Integer insert(Registration registration, Invoice invoice)
insert.
insert
in interface InvoiceService
registration
- a Registration
object.invoice
- a Invoice
object.Integer
object.public Invoice updateDetached(Registration registration, Invoice invoice)
updateDetached.
updateDetached
in interface InvoiceService
registration
- a Registration
object.invoice
- a Invoice
object.Invoice
object.public void update(Registration registration, Invoice invoice)
update.
update
in interface InvoiceService
registration
- a Registration
object.invoice
- a Invoice
object.Copyright © 2015 SeqWare. All rights reserved.