public PendingTransfersVo saveTransfer(PendingTransfersVo voTransfer) throws DomainInterfaceException, StaleObjectException { if (!voTransfer.isValidated()) throw new CodingRuntimeException("Transfer Record has not been validated"); if(voTransfer == null) throw new CodingRuntimeException("Cannot save null PendingTransfersVo"); DomainFactory factory = getDomainFactory(); PendingTransfers doTrans = PendingTransfersVoAssembler.extractPendingTransfers(factory, voTransfer); factory.save(doTrans); return (PendingTransfersVoAssembler.create(doTrans)); }
public PendingTransfersVo saveTransfer(PendingTransfersVo voTransfer) throws DomainInterfaceException, StaleObjectException { if(voTransfer == null) throw new CodingRuntimeException("Cannot save null PendingTransfersVo"); if (!voTransfer.isValidated()) throw new CodingRuntimeException("Transfer Record has not been validated"); DomainFactory factory = getDomainFactory(); PendingTransfers doTrans = PendingTransfersVoAssembler.extractPendingTransfers(factory, voTransfer); factory.save(doTrans); return (PendingTransfersVoAssembler.create(doTrans)); }
public PendingTransfersVo getCurrentTransferRecord(PendingTransfersRefVo transferRefVo) { DomainFactory factory = getDomainFactory(); return PendingTransfersVoAssembler.create((PendingTransfers) factory.getDomainObject(PendingTransfers.class, transferRefVo.getID_PendingTransfers())); }