Package org.apache.ibatis.session

Examples of org.apache.ibatis.session.SqlSession


        initBuildingCombobox();
        refreshObjEntities();
    }

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


        Combobox buildingCB = (Combobox) getFellow("building");
        Iterator it = buildingList.iterator();
View Full Code Here


        refreshObjEntities();
    }

    private void initOrgIdCB() {
        Combobox orgIdCB = (Combobox) getFellow("orgId");
        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List keyValueList = sess.selectList("Org.getName_Id");
        sess = null;
        logger.debug("org CB size:" + keyValueList.size());

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

        }

    }

    private void refreshDataAuth(AuthForm selectedAuth) {
        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List allOrgObjList = sess.selectList("Org.getAll");
        List dataAuthObjList = sess.selectList("DataAuth.getByAuth", selectedAuth.getAuthId());
        sess = null;


// create a new list with funForm not in funAuth
        List orgObjList = new ArrayList();
View Full Code Here

    }

    private void refresheFunAuth(AuthForm selectedAuth) {
        // show all Fun, and funAuth By Auth
        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List allFunObjList = sess.selectList("Fun.getAll");
        List funAuthObjList = sess.selectList("FunAuth.getByAuth", selectedAuth.getAuthId());
        sess = null;

        // create a new list with funForm not in funAuth
        List funObjList = new ArrayList();
View Full Code Here

        refreshObjEntities();
    }

    private void initOrgIdCB() {
        Combobox orgIdCB = (Combobox) getFellow("OrgId");
        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List keyValueList = sess.selectList("Org.getName_Id");
        sess = null;
        logger.debug("org CB size:" + keyValueList.size());

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

            item = null;
            return;
        }

        // check slave table data !!
        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List dutyList = sess.selectList("Duty.getAll", obj.getUserId());
        sess = null;

        if (!dutyList.isEmpty()) {
            this.showMsg("刪除前要先刪除相關的職位", "必要的操作");
            return;
View Full Code Here

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


        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List userList = sess.selectList("User.getAll");
        System.out.println("!!!!!!!!!!!!!!!" + userList.size());
        sess = null;

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

    public void refreshObjEntities(Map para) {

        String orgName = (String) para.get("HashMap");
        System.out.println("AAAAAAAAAAAAAAAAAAAAAA" + orgName);
        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List userList = sess.selectList("User.findByOrgName", orgName);
        System.out.println("BBBBBBBBBBBBBBBBBBBBB" + orgName);
        sess = null;

        // show to the building listbox
        objListbox = (Listbox) getFellow("objListbox");
View Full Code Here

    public void refreshSubListbox(Object obj) {
        UserForm var = (UserForm) obj;
        subListbox = (Listbox) getFellow("subObjListbox");

        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        List buildingDocList = sess.selectList("Duty.getAll", var.getUserId());
        sess = null;

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

        //initFlagList();
    }

    private void initServiceList() {
        SqlSession sess = IBatisFactory.getInstance().getSqlSession();
        ServiceList = sess.selectList("Service.getServices");
        sess = null;

        // show the service
        Combobox serviceCB = (Combobox) getFellow("service");
        for (int index = 0; index < ServiceList.size(); index++) {
View Full Code Here

TOP

Related Classes of org.apache.ibatis.session.SqlSession

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.