Package framework.beans

Examples of framework.beans.ModificationInfo


            }, auditDocList);
        AuditDoc<CommitteeDirection> auditDoc = new AuditDoc<CommitteeDirection>(direct, getCollaborator());
        removeEntity(direct);
        auditDoc.check(null);
        auditDocList.add(auditDoc);
        return new ModificationInfo(id, persistAudit(auditDocList));
    }
View Full Code Here


        resolution.setCollaborator(findEntity(Collaborator.class, details.collaboratorID));
        resolution.setDescription(details.description);
        resolution.setMkb10(details.mkb10 != 0 ? findEntity(Mkb10.class, details.mkb10) : null);
        resolution.setRendered(details.rendered);
        int id = saveEntity(resolution);
        return new ModificationInfo(id, persistAudit(auditDoc));
    }
View Full Code Here

        AuditDoc<CommitteeResolution> auditDoc = new AuditDoc<CommitteeResolution>(resolution, getCollaborator());
        removeEntity(resolution);
        auditDoc.check(resolution);
        auditDocList.add(auditDoc);
        return new ModificationInfo(id, persistAudit(auditDocList));

    }   
View Full Code Here

        inability.setDesc(details.desc);
        inability.setLevelIn(details.levelIn);
        inability.setLevelOut(details.levelOut);
        int id = saveEntity(inability);
        auditDoc.check(inability);
        return new ModificationInfo(id, persistAudit(auditDoc));
    }    
View Full Code Here

        prescriptionItem.setVidal(findEntity(Vidal.class, details.vidalID));
        prescriptionItem.setTakeDrug(findEntity(TakeDrug.class, details.takeDrugID));
        prescriptionItem.setDescription(details.description);
        int id = saveEntity(prescriptionItem);
        auditDoc.check(prescriptionItem);
        return new ModificationInfo(id, persistAudit(auditDoc));
    }
View Full Code Here

        Inability inability = findEntity(Inability.class, id);
        AuditDoc<Inability> auditDoc = new AuditDoc<Inability>(inability, getCollaborator());
        checkTheSame(inability.getCommitteeResolution().getDirection().getCommittee());
        manager.remove(inability);
        auditDoc.check(null);
        return new ModificationInfo(persistAudit(auditDoc));
    }
View Full Code Here

        PrescriptionItem prescriptionItem = findEntity(PrescriptionItem.class, id);
        checkTheSame(prescriptionItem.getPrescription());
        AuditDoc<PrescriptionItem> auditDoc = new AuditDoc<PrescriptionItem>(prescriptionItem, getCollaborator());
        manager.remove(prescriptionItem);
        auditDoc.check(null);
        return new ModificationInfo(persistAudit(auditDoc));
    }
View Full Code Here

                AuditDetails details = persistAudit(auditCheckup);
                auditDetList.add(details);
            }
        }

        return new ModificationInfo(chunk.diseaseID, auditDetList);
    }
View Full Code Here

            auditSerren.check(entity);
            AuditDetails details = persistAudit(auditSerren);
            auditDetList.add(details);
        }

        return new ModificationInfo(0, auditDetList);
       
    }
View Full Code Here

        manager.persist(serren);
        manager.flush();
        manager.refresh(serren);
        auditDoc.check(serren);
        AuditDetails auditDetails = persistAudit(auditDoc);
        ModificationInfo mi = new ModificationInfo(auditDetails);
        return new SerrenMod(serren, mi);
    }
View Full Code Here

TOP

Related Classes of framework.beans.ModificationInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.