public class InvoiceDAOHibernate extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements InvoiceDAO
InvoiceDAOHibernate class.
Constructor and Description |
---|
InvoiceDAOHibernate()
Constructor for InvoiceDAOHibernate.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(Invoice invoice)
delete.
|
Invoice |
findByID(Integer wfID)
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 |
update(Invoice invoice)
update.
|
void |
update(Registration registration,
Invoice invoice)
update.
|
Invoice |
updateDetached(Invoice invoice)
updateDetached.
|
Invoice |
updateDetached(Registration registration,
Invoice invoice)
updateDetached.
|
public InvoiceDAOHibernate()
Constructor for InvoiceDAOHibernate.
public Integer insert(Invoice invoice)
insert
in interface InvoiceDAO
invoice
- Invoice to be inserted.public void update(Invoice invoice)
update.
update
in interface InvoiceDAO
invoice
- a Invoice
object.public void delete(Invoice invoice)
delete.
delete
in interface InvoiceDAO
invoice
- a Invoice
object.public List<Invoice> list()
list.
list
in interface InvoiceDAO
List
object.public List<Invoice> list(Registration registration)
list.
list
in interface InvoiceDAO
registration
- a Registration
object.List
object.public List<Invoice> list(Registration registration, InvoiceState state)
list.
list
in interface InvoiceDAO
registration
- a Registration
object.state
- a String
object.List
object.public Invoice findByID(Integer wfID)
findByID.
findByID
in interface InvoiceDAO
wfID
- a Integer
object.Invoice
object.public Invoice findBySWAccession(Integer swAccession)
findBySWAccession.
findBySWAccession
in interface InvoiceDAO
swAccession
- a Integer
object.Invoice
object.public Invoice updateDetached(Invoice invoice)
updateDetached.
updateDetached
in interface InvoiceDAO
invoice
- a Invoice
object.Invoice
object.public void update(Registration registration, Invoice invoice)
update.
update
in interface InvoiceDAO
registration
- a Registration
object.invoice
- a Invoice
object.public Integer insert(Registration registration, Invoice invoice)
insert.
insert
in interface InvoiceDAO
registration
- a Registration
object.invoice
- a Invoice
object.Integer
object.public Invoice updateDetached(Registration registration, Invoice invoice)
updateDetached.
updateDetached
in interface InvoiceDAO
registration
- a Registration
object.invoice
- a Invoice
object.Invoice
object.Copyright © 2015 SeqWare. All rights reserved.