/** * Delete the record that matches the primary key values. * * @returns int The number of records deleted. */ public int delete(int invoiceNr, int sequence) throws RimuDBException { KeyList keylist = new KeyList(); keylist.add(InvoiceLineDO.F_INVOICE_NR, new Integer(invoiceNr)); keylist.add(InvoiceLineDO.F_SEQUENCE, new Integer(sequence)); return deleteByPrimaryKey(keylist); }
/** * Return a InvoiceLineDO for the given primary key value(s). If the key value doesn't exist, the * method returns null. * * @return InvoiceLineDO */ public InvoiceLineDO find(int invoiceNr, int sequence, Lock lockType) throws RimuDBException { KeyList keylist = new KeyList(); keylist.add(InvoiceLineDO.F_INVOICE_NR, new Integer(invoiceNr)); keylist.add(InvoiceLineDO.F_SEQUENCE, new Integer(sequence)); return (InvoiceLineDO) find(keylist, lockType); }