Examples of saveUpdate()


Examples of net.datacrow.core.objects.DcObject.saveUpdate()

                            other.setLastInLine(counter == items.size());
                            other.merge(item);
                            other.setChanged(DcObject._SYS_CREATED, false);
                            other.setChanged(DcObject._SYS_MODIFIED, false);
                            other.setValidate(false);
                            other.saveUpdate(true, false);
                        } else {
                            client.notifyMessage(DcResources.getText("msgItemNoExistsCreated", item.toString()));
                            item.setLastInLine(counter == items.size());
                            item.setValidate(false);
                            item.saveNew(true);
View Full Code Here

Examples of net.datacrow.core.objects.DcObject.saveUpdate()

         
            if (wo.isNew()) {
                dco.setIDs();
                dco.saveNew(false);
            } else {
                dco.saveUpdate(false);
            }
           
        } catch (ValidationException ve) {
            FacesContext fc = FacesContext.getCurrentInstance();
            fc.addMessage("saveError", new FacesMessage(ve.getMessage()));
View Full Code Here

Examples of net.datacrow.core.objects.DcObject.saveUpdate()

        DcWebObject wo = (DcWebObject) vr.resolveVariable(fc, "webObject");
        DcObject dco = wo.getDcObject();
        dco.setValue(wi.getFieldIdx(), new DcImageIcon(b));
       
        try {
            dco.saveUpdate(false);
            wi.setPicture((Picture) dco.getValue(wi.getFieldIdx()));
            wo.load();
       
            DcWebObjects objects = (DcWebObjects) vr.resolveVariable(fc, "webObjects");
            objects.update(wo);
View Full Code Here

Examples of net.datacrow.core.objects.DcObject.saveUpdate()

                      item.markAsUnchanged();
                      item.setValue(DcObject._ID, tblItems.getValueAt(row, colID, true));
                      item.setValue(field, tblItems.getValueAt(row, colValue, true));
                      try {
                            if (view.getType() == View._TYPE_SEARCH) {
                              item.saveUpdate(false, false);
                            } else if (view.getType() == View._TYPE_INSERT) {
                                view.updateItem(item.getID(), item);
                            }
                        } catch (Exception e) {
                            // warn the user of the event that occurred (for example an incorrect parent for a container)
View Full Code Here

Examples of net.datacrow.core.objects.DcObject.saveUpdate()

                                dco.setValueLowLevel(DcObject._ID, ID);
                                fldPersist = module.getPersistentField(fld.getIndex());
                                dco.setValue(fldPersist.getIndex(), referenceID);
                                dco.setUpdateGUI(false);
                                try {
                                    dco.saveUpdate(false, false);
                                } catch (Exception e) {
                                    logger.error(e, e);
                                }
                            }
                            rs2.close();
View Full Code Here

Examples of net.datacrow.core.objects.DcObject.saveUpdate()

        // is of no importance (!).
        try {
            if (other != null) {
                updated++;
                other.copy(item, true, false);
                other.saveUpdate(true, false);
            } else {
                created++;
                item.setValidate(false);
                item.saveNew(true);
            }
View Full Code Here

Examples of net.datacrow.core.objects.DcObject.saveUpdate()

                  item.copy(dco, true, false);
                 
                    if (item.isChanged()) {
                        try {
                            if (view.getType() == View._TYPE_SEARCH) {
                              item.saveUpdate(false, false);
                            } else if (view.getType() == View._TYPE_INSERT) {
                                view.updateItem(item.getID(), item);
                            }
                        } catch (Exception e) {
                            // warn the user of the event that occurred (for example an incorrect parent for a container)
View Full Code Here

Examples of net.datacrow.core.objects.Loan.saveUpdate()

                            else if (owner == null)
                                setLoanInformation(currentLoan);
                           
                            dco.setLoanInformation(currentLoan);

                            currentLoan.saveUpdate(false, false);
                            i++;
                        }
                       
                        try {
                            wait(10);
View Full Code Here

Examples of net.datacrow.core.objects.Loan.saveUpdate()

                            setLoanInformation(currentLoan);                       
       
                        o.setLoanInformation(currentLoan);
                       
                        if (currentLoan.getID() != null)
                          currentLoan.saveUpdate(true);
                        else
                            currentLoan.saveNew(true);
                       
                        try {
                            wait(100);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.