Examples of SqlSession


Examples of org.apache.ibatis.session.SqlSession

            item = null;
            return;
        }

        // check slave table data !!
        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List buildingDocList = sess.selectList("Building.findByBuildingId", obj.getBuildingId());
        sess = null;

        if (buildingDocList.size() != 0) {
            this.showMsg("刪除前要先刪除相關的文件及模型", "必要的操作");
            return;
View Full Code Here

Examples of org.apache.ibatis.session.SqlSession

    public void refreshObjEntities() {
        objListbox = (Listbox) getFellow("buildingList");


        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List buildingList = sess.selectList("Building.getAll");
        sess = null;

        objListModel = new ListModelList(buildingList, true);
        objListbox.setModel(objListModel);
        objListbox.setItemRenderer(buildingListRenderer);
View Full Code Here

Examples of org.apache.ibatis.session.SqlSession

    public void refreshObjEntities(Map para) {

        String partBuildingName = (String) para.get("buildingName");

        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List buildingList = sess.selectList("Building.findByName", partBuildingName);
        sess = null;

        // show to the building listbox
        objListbox = (Listbox) getFellow("buildingList");
        objListModel = new ListModelList(buildingList, true);
View Full Code Here

Examples of org.apache.ibatis.session.SqlSession

    public void refreshSubListbox(Object obj) {
        Building var = (Building) obj;
        subListbox = (Listbox) getFellow("docListbox");

        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List buildingDocList = sess.selectList("Building.findByBuildingId", var.getBuildingId());
        sess = null;

        subListModel = new ListModelList(buildingDocList, true);
        subListbox.setModel(subListModel);
        subListbox.setItemRenderer(buildingDocListRenderer);
View Full Code Here

Examples of org.apache.ibatis.session.SqlSession

    }

    private void initCompanyCombobox() {
        Combobox companyCB = (Combobox) getFellow("company");

        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List keyValueList = sess.selectList("Org.getAllCompany");
        sess = null;

        Iterator it = keyValueList.iterator();

        while (it.hasNext()) {
View Full Code Here

Examples of org.apache.ibatis.session.SqlSession

    public void onCreate() {
        initBuildingListbox();
    }

    private void initBuildingListbox() {
        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List buildingList = sess.selectList("Building.getAll");
        sess = null;

        // show to the building listbox
        Listbox buildingListbox = (Listbox) getFellow("buildingListbox");
        ListModelList buildingListModel = new ListModelList(buildingList, true);
View Full Code Here

Examples of org.apache.ibatis.session.SqlSession

    }

    public void initEquipmentBySystem() {
        Combobox systemCB = (Combobox) getFellow("system");
        logger.debug("user select system  type: " + systemCB.getSelectedItem().getValue().toString());
        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List equipmentList = sess.selectList("Equipment.initEquipmentBySystem",
                systemCB.getSelectedItem().getValue().toString());
        sess = null;
        // remove all in equipment Combobox
        Combobox equipmentCB = (Combobox) getFellow("equipment");
        int itemCount = equipmentCB.getItemCount();
View Full Code Here

Examples of org.apache.ibatis.session.SqlSession

    public void refreshObjEntities(Map para) {
        Long buildingId = (Long) para.get("buildingId");

        objTree = (Tree) getFellow("objTree");

        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        objList = sess.selectList("Bom.findByBuildingId", buildingId);
        sess = null;

        logger.debug("record list size:" + objList.size());

View Full Code Here

Examples of org.apache.ibatis.session.SqlSession

        refreshObjEntities();
    }

    private void initSupplierIdCB() {
        Combobox supplierIdCB = (Combobox) getFellow("supplierId");
        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List keyValueList = sess.selectList("Supplier.getName_Id");
        sess = null;
        logger.debug("supplier CB size:" + keyValueList.size());

        Iterator it = keyValueList.iterator();
        while (it.hasNext()) {
View Full Code Here

Examples of org.apache.ibatis.session.SqlSession

            // getu the system type assigned
            String systemType = (String) systemCB.getSelectedItem().getValue();

            // query the maintainEventType by systemType
            SqlSession sess = IBatisFactory.getInstance().getSqlSession();
            List maintainEventTypeList = sess.selectList(
                    "MaintainEventType.selectMaintainEventTypeBySystem", systemType);
            sess = null;

            // show in the combobox
            if (maintainEventTypeList != null
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.