/** * Custom DML update/insert/delete logic here. * * @param i the operation type * @param e the transaction event */ protected void doDML(int i, TransactionEvent e) { if (i == DML_INSERT) { SequenceImpl si = new SequenceImpl("SEQ_BK_BARCODE_HISTORY_ID", getDBTransaction()); setArtId(new DBSequence(si.getSequenceNumber())); } super.doDML(i, e); }
/** * Custom DML update/insert/delete logic here. * * @param operation the operation type * @param e the transaction event */ protected void doDML(int operation, TransactionEvent e) { super.doDML(operation, e); }