Package net.caece.pri.hibernate

Examples of net.caece.pri.hibernate.Service


        sess = null;

        // show the service
        Combobox serviceCB = (Combobox) getFellow("service");
        for (int index = 0; index < ServiceList.size(); index++) {
            Service service = (Service) ServiceList.get(index);
            Comboitem item = new Comboitem();
            item.setLabel(service.getServiceName());
            item.setValue(service);
            item.setParent(serviceCB);
        }
    }
View Full Code Here




        Textbox FunPathTB = (Textbox) getFellow("FunPathTB");

        Service service = (Service) ServiceCB.getSelectedItem().getValue();
        var.setService(service);

        var.setFunName(FunNameTB.getText());
        var.setActiveFlag(ActiveFlag.getSelectedItem().getValue().toString());
        var.setBootFlag(BootFlag.getSelectedItem().getValue().toString());
View Full Code Here

            item.setParent(providerCB);
        }
    }

    public void add() {
        Service obj = (Service) viewToObj(null);
        ServiceDao dao = new ServiceDao();
        add(dao, obj);
    }
View Full Code Here

    public boolean validate() {
        return true;
    }

    public Object viewToObj(Object obj) {
        Service object = new Service();

        if (obj != null) {
            try {
                BeanUtils.copyProperties(object, obj);
            } catch (Exception iae) {
                iae.printStackTrace();
            }
        }

         object.setOperateBy(operateBy);

        Combobox providerCB = (Combobox) getFellow("provider");
        object.setProvider((Org) providerCB.getSelectedItem().getValue());

        Textbox serviceNameTB = (Textbox) getFellow("serviceName");
        Textbox serviceUrlTB = (Textbox) getFellow("serviceUrl");
        Textbox parameterDescriptionTB = (Textbox) getFellow("parameterDescription");
        Textbox serviceKeyTB = (Textbox) getFellow("serviceKey");

        object.setServiceName(serviceNameTB.getText());
        object.setServiceUrl(serviceUrlTB.getText());
        object.setParameterDescription(parameterDescriptionTB.getText());
        object.setServiceKey(serviceKeyTB.getText());


        Combobox connectFrequencyCB = (Combobox) getFellow("connectFrequency");
        object.setConnectFrequency(
                connectFrequencyCB.getSelectedItem().getValue().toString());

        Textbox serviceKeyPasswordTB = (Textbox) getFellow("serviceKeyPassword");
        object.setServiceKeyPassword(serviceKeyPasswordTB.getText());

        return object;
    }
View Full Code Here

TOP

Related Classes of net.caece.pri.hibernate.Service

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.